(0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 16ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 17ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 01:57:21.070830"], ["updated_at", "2017-06-26 01:57:21.070830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 01:57:21.072442"], ["updated_at", "2017-06-26 01:57:21.072442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.108510"], ["updated_at", "2017-06-26 01:57:21.108510"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 01:57:21.125235"], ["updated_at", "2017-06-26 01:57:21.125235"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 9], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.175280"], ["updated_at", "2017-06-26 01:57:21.175280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.182054"], ["updated_at", "2017-06-26 01:57:21.182054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.186124"], ["updated_at", "2017-06-26 01:57:21.186124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.214708"], ["updated_at", "2017-06-26 01:57:21.214708"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.215737"], ["updated_at", "2017-06-26 01:57:21.215737"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 01:57:21.222687"], ["updated_at", "2017-06-26 01:57:21.222687"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 01:57:21.228324"], ["updated_at", "2017-06-26 01:57:21.228324"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 01:57:21.230266"], ["updated_at", "2017-06-26 01:57:21.230266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 01:57:21.233741"], ["updated_at", "2017-06-26 01:57:21.233741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 01:57:21.235020"], ["updated_at", "2017-06-26 01:57:21.235020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 01:57:21.243235"], ["updated_at", "2017-06-26 01:57:21.243235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.257678"], ["updated_at", "2017-06-26 01:57:21.257678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.258663"], ["updated_at", "2017-06-26 01:57:21.258663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.266171"], ["updated_at", "2017-06-26 01:57:21.266171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.272319"], ["updated_at", "2017-06-26 01:57:21.272319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.273385"], ["updated_at", "2017-06-26 01:57:21.273385"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.275927"], ["updated_at", "2017-06-26 01:57:21.275927"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.276867"], ["updated_at", "2017-06-26 01:57:21.276867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.282674"], ["updated_at", "2017-06-26 01:57:21.282674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.283661"], ["updated_at", "2017-06-26 01:57:21.283661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.284620"], ["updated_at", "2017-06-26 01:57:21.284620"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.288185"], ["updated_at", "2017-06-26 01:57:21.288185"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.290567"], ["updated_at", "2017-06-26 01:57:21.290567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.293230"], ["updated_at", "2017-06-26 01:57:21.293230"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.295665"], ["updated_at", "2017-06-26 01:57:21.295665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.300321"], ["updated_at", "2017-06-26 01:57:21.300321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.301379"], ["updated_at", "2017-06-26 01:57:21.301379"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.305512"], ["updated_at", "2017-06-26 01:57:21.305512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.311953"], ["updated_at", "2017-06-26 01:57:21.311953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.314436"], ["updated_at", "2017-06-26 01:57:21.314436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.330282"], ["updated_at", "2017-06-26 01:57:21.330282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.337061"], ["updated_at", "2017-06-26 01:57:21.337061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.344211"], ["updated_at", "2017-06-26 01:57:21.344211"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 01:57:21.345275"], ["updated_at", "2017-06-26 01:57:21.345275"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.348687"], ["updated_at", "2017-06-26 01:57:21.348687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.349697"], ["updated_at", "2017-06-26 01:57:21.349697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.350607"], ["updated_at", "2017-06-26 01:57:21.350607"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.353989"], ["updated_at", "2017-06-26 01:57:21.353989"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.354948"], ["updated_at", "2017-06-26 01:57:21.354948"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.360337"], ["updated_at", "2017-06-26 01:57:21.360337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.367014"], ["updated_at", "2017-06-26 01:57:21.367014"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.368427"], ["updated_at", "2017-06-26 01:57:21.368427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 01:57:21.379695"], ["updated_at", "2017-06-26 01:57:21.379695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 01:57:21.382497"], ["updated_at", "2017-06-26 01:57:21.382497"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.394375"], ["updated_at", "2017-06-26 01:57:21.394375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.395555"], ["updated_at", "2017-06-26 01:57:21.395555"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.397894"], ["updated_at", "2017-06-26 01:57:21.397894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.398811"], ["updated_at", "2017-06-26 01:57:21.398811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 01:57:21.410424"], ["updated_at", "2017-06-26 01:57:21.410424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 01:57:21.411582"], ["updated_at", "2017-06-26 01:57:21.411582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.412551"], ["updated_at", "2017-06-26 01:57:21.412551"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.414925"], ["updated_at", "2017-06-26 01:57:21.414925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.417537"], ["updated_at", "2017-06-26 01:57:21.417537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.421509"], ["updated_at", "2017-06-26 01:57:21.421509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.428520"], ["updated_at", "2017-06-26 01:57:21.428520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.429874"], ["updated_at", "2017-06-26 01:57:21.429874"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 01:57:21.461946"], ["updated_at", "2017-06-26 01:57:21.461946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 01:57:21.463296"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 01:57:21.464402"], ["updated_at", "2017-06-26 01:57:21.464402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 01:57:21.465297"], ["updated_at", "2017-06-26 01:57:21.465297"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.472957"], ["updated_at", "2017-06-26 01:57:21.472957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.480242"], ["updated_at", "2017-06-26 01:57:21.480242"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.481279"], ["updated_at", "2017-06-26 01:57:21.481279"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.484557"], ["updated_at", "2017-06-26 01:57:21.484557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.485682"], ["updated_at", "2017-06-26 01:57:21.485682"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 01:57:21.488920"], ["updated_at", "2017-06-26 01:57:21.488920"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 01:57:21.490032"], ["updated_at", "2017-06-26 01:57:21.490032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 01:57:21.492107"], ["updated_at", "2017-06-26 01:57:21.492107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 01:57:21.493042"], ["updated_at", "2017-06-26 01:57:21.493042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.501789"], ["updated_at", "2017-06-26 01:57:21.501789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.502813"], ["updated_at", "2017-06-26 01:57:21.502813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.505163"], ["updated_at", "2017-06-26 01:57:21.505163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.509927"], ["updated_at", "2017-06-26 01:57:21.509927"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.510902"], ["updated_at", "2017-06-26 01:57:21.510902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.513166"], ["updated_at", "2017-06-26 01:57:21.513166"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.517142"], ["updated_at", "2017-06-26 01:57:21.517142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.520308"], ["updated_at", "2017-06-26 01:57:21.520308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.527624"], ["updated_at", "2017-06-26 01:57:21.527624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.532568"], ["updated_at", "2017-06-26 01:57:21.532568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:57:21.538217"], ["updated_at", "2017-06-26 01:57:21.538217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.677457"], ["updated_at", "2017-06-26 01:58:32.677457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 01:58:32.718034"], ["updated_at", "2017-06-26 01:58:32.718034"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 01:58:32.730255"], ["updated_at", "2017-06-26 01:58:32.730255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 01:58:32.731450"], ["updated_at", "2017-06-26 01:58:32.731450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.767590"], ["updated_at", "2017-06-26 01:58:32.767590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.773342"], ["updated_at", "2017-06-26 01:58:32.773342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.776704"], ["updated_at", "2017-06-26 01:58:32.776704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.829148"], ["updated_at", "2017-06-26 01:58:32.829148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.830479"], ["updated_at", "2017-06-26 01:58:32.830479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.839874"], ["updated_at", "2017-06-26 01:58:32.839874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.840944"], ["updated_at", "2017-06-26 01:58:32.840944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.851941"], ["updated_at", "2017-06-26 01:58:32.851941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.857021"], ["updated_at", "2017-06-26 01:58:32.857021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.862790"], ["updated_at", "2017-06-26 01:58:32.862790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.869510"], ["updated_at", "2017-06-26 01:58:32.869510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.883985"], ["updated_at", "2017-06-26 01:58:32.883985"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.884843"], ["updated_at", "2017-06-26 01:58:32.884843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.885569"], ["updated_at", "2017-06-26 01:58:32.885569"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.887945"], ["updated_at", "2017-06-26 01:58:32.887945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.892846"], ["updated_at", "2017-06-26 01:58:32.892846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.898929"], ["updated_at", "2017-06-26 01:58:32.898929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 01:58:32.899819"], ["updated_at", "2017-06-26 01:58:32.899819"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.905287"], ["updated_at", "2017-06-26 01:58:32.905287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.906019"], ["updated_at", "2017-06-26 01:58:32.906019"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.908207"], ["updated_at", "2017-06-26 01:58:32.908207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.908939"], ["updated_at", "2017-06-26 01:58:32.908939"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.914200"], ["updated_at", "2017-06-26 01:58:32.914200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.917288"], ["updated_at", "2017-06-26 01:58:32.917288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.921079"], ["updated_at", "2017-06-26 01:58:32.921079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.925702"], ["updated_at", "2017-06-26 01:58:32.925702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.928888"], ["updated_at", "2017-06-26 01:58:32.928888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.933463"], ["updated_at", "2017-06-26 01:58:32.933463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.938928"], ["updated_at", "2017-06-26 01:58:32.938928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.939708"], ["updated_at", "2017-06-26 01:58:32.939708"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.941456"], ["updated_at", "2017-06-26 01:58:32.941456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.946204"], ["updated_at", "2017-06-26 01:58:32.946204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.947399"], ["updated_at", "2017-06-26 01:58:32.947399"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 01:58:32.952593"], ["updated_at", "2017-06-26 01:58:32.952593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 01:58:32.954706"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 01:58:32.955635"], ["updated_at", "2017-06-26 01:58:32.955635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 01:58:32.956371"], ["updated_at", "2017-06-26 01:58:32.956371"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.959876"], ["updated_at", "2017-06-26 01:58:32.959876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.960811"], ["updated_at", "2017-06-26 01:58:32.960811"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 01:58:32.966210"], ["updated_at", "2017-06-26 01:58:32.966210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.971947"], ["updated_at", "2017-06-26 01:58:32.971947"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.974252"], ["updated_at", "2017-06-26 01:58:32.974252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.976995"], ["updated_at", "2017-06-26 01:58:32.976995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 01:58:32.983552"], ["updated_at", "2017-06-26 01:58:32.983552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 01:58:32.984453"], ["updated_at", "2017-06-26 01:58:32.984453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 01:58:32.985993"], ["updated_at", "2017-06-26 01:58:32.985993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 01:58:32.986769"], ["updated_at", "2017-06-26 01:58:32.986769"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.993031"], ["updated_at", "2017-06-26 01:58:32.993031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.993832"], ["updated_at", "2017-06-26 01:58:32.993832"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.995979"], ["updated_at", "2017-06-26 01:58:32.995979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:32.996810"], ["updated_at", "2017-06-26 01:58:32.996810"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 01:58:32.998910"], ["updated_at", "2017-06-26 01:58:32.998910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 01:58:32.999779"], ["updated_at", "2017-06-26 01:58:32.999779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.000551"], ["updated_at", "2017-06-26 01:58:33.000551"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.002554"], ["updated_at", "2017-06-26 01:58:33.002554"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.003344"], ["updated_at", "2017-06-26 01:58:33.003344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.012954"], ["updated_at", "2017-06-26 01:58:33.012954"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 01:58:33.014863"], ["updated_at", "2017-06-26 01:58:33.014863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 01:58:33.015640"], ["updated_at", "2017-06-26 01:58:33.015640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 01:58:33.017423"], ["updated_at", "2017-06-26 01:58:33.017423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 01:58:33.018334"], ["updated_at", "2017-06-26 01:58:33.018334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.021665"], ["updated_at", "2017-06-26 01:58:33.021665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.022506"], ["updated_at", "2017-06-26 01:58:33.022506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.023250"], ["updated_at", "2017-06-26 01:58:33.023250"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.026253"], ["updated_at", "2017-06-26 01:58:33.026253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.031300"], ["updated_at", "2017-06-26 01:58:33.031300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.032200"], ["updated_at", "2017-06-26 01:58:33.032200"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.034923"], ["updated_at", "2017-06-26 01:58:33.034923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.035740"], ["updated_at", "2017-06-26 01:58:33.035740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 01:58:33.042222"], ["updated_at", "2017-06-26 01:58:33.042222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.078551"], ["updated_at", "2017-06-26 01:58:33.078551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.079357"], ["updated_at", "2017-06-26 01:58:33.079357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.081449"], ["updated_at", "2017-06-26 01:58:33.081449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.086613"], ["updated_at", "2017-06-26 01:58:33.086613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 01:58:33.090932"], ["updated_at", "2017-06-26 01:58:33.090932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 01:58:33.093831"], ["updated_at", "2017-06-26 01:58:33.093831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.102366"], ["updated_at", "2017-06-26 01:58:33.102366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.103144"], ["updated_at", "2017-06-26 01:58:33.103144"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.105234"], ["updated_at", "2017-06-26 01:58:33.105234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 01:58:33.107686"], ["updated_at", "2017-06-26 01:58:33.107686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.550680"], ["updated_at", "2017-06-26 02:09:56.550680"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.579096"], ["updated_at", "2017-06-26 02:09:56.579096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.582155"], ["updated_at", "2017-06-26 02:09:56.582155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 02:09:56.644839"], ["updated_at", "2017-06-26 02:09:56.644839"]]  (0.2ms) commit transaction SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 02:09:56.649047"], ["updated_at", "2017-06-26 02:09:56.649047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 02:09:56.650323"], ["updated_at", "2017-06-26 02:09:56.650323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.2ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.676771"], ["updated_at", "2017-06-26 02:09:56.676771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.759277"], ["updated_at", "2017-06-26 02:09:56.759277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.760354"], ["updated_at", "2017-06-26 02:09:56.760354"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.762919"], ["updated_at", "2017-06-26 02:09:56.762919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.768477"], ["updated_at", "2017-06-26 02:09:56.768477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.770661"], ["updated_at", "2017-06-26 02:09:56.770661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:09:56.774064"], ["updated_at", "2017-06-26 02:09:56.774064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:09:56.774849"], ["updated_at", "2017-06-26 02:09:56.774849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:09:56.776537"], ["updated_at", "2017-06-26 02:09:56.776537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:09:56.777223"], ["updated_at", "2017-06-26 02:09:56.777223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.780257"], ["updated_at", "2017-06-26 02:09:56.780257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.783576"], ["updated_at", "2017-06-26 02:09:56.783576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.784484"], ["updated_at", "2017-06-26 02:09:56.784484"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.786335"], ["updated_at", "2017-06-26 02:09:56.786335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.787073"], ["updated_at", "2017-06-26 02:09:56.787073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.789299"], ["updated_at", "2017-06-26 02:09:56.789299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.792202"], ["updated_at", "2017-06-26 02:09:56.792202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 02:09:56.792880"], ["updated_at", "2017-06-26 02:09:56.792880"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 02:09:56.797033"], ["updated_at", "2017-06-26 02:09:56.797033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 02:09:56.798886"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:09:56.799794"], ["updated_at", "2017-06-26 02:09:56.799794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 02:09:56.800500"], ["updated_at", "2017-06-26 02:09:56.800500"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:09:56.804025"], ["updated_at", "2017-06-26 02:09:56.804025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:09:56.804842"], ["updated_at", "2017-06-26 02:09:56.804842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.805603"], ["updated_at", "2017-06-26 02:09:56.805603"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.807771"], ["updated_at", "2017-06-26 02:09:56.807771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.812425"], ["updated_at", "2017-06-26 02:09:56.812425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.817755"], ["updated_at", "2017-06-26 02:09:56.817755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.818517"], ["updated_at", "2017-06-26 02:09:56.818517"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.820856"], ["updated_at", "2017-06-26 02:09:56.820856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.825668"], ["updated_at", "2017-06-26 02:09:56.825668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.826338"], ["updated_at", "2017-06-26 02:09:56.826338"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 02:09:56.828071"], ["updated_at", "2017-06-26 02:09:56.828071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 02:09:56.830165"], ["updated_at", "2017-06-26 02:09:56.830165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:09:56.840811"], ["updated_at", "2017-06-26 02:09:56.840811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.844265"], ["updated_at", "2017-06-26 02:09:56.844265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.844962"], ["updated_at", "2017-06-26 02:09:56.844962"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.847046"], ["updated_at", "2017-06-26 02:09:56.847046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.851353"], ["updated_at", "2017-06-26 02:09:56.851353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.852097"], ["updated_at", "2017-06-26 02:09:56.852097"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.860808"], ["updated_at", "2017-06-26 02:09:56.860808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.861532"], ["updated_at", "2017-06-26 02:09:56.861532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.863419"], ["updated_at", "2017-06-26 02:09:56.863419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:09:56.866445"], ["updated_at", "2017-06-26 02:09:56.866445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:09:56.867141"], ["updated_at", "2017-06-26 02:09:56.867141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:09:56.868750"], ["updated_at", "2017-06-26 02:09:56.868750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:09:56.869663"], ["updated_at", "2017-06-26 02:09:56.869663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.875898"], ["updated_at", "2017-06-26 02:09:56.875898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.880297"], ["updated_at", "2017-06-26 02:09:56.880297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.880992"], ["updated_at", "2017-06-26 02:09:56.880992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.886202"], ["updated_at", "2017-06-26 02:09:56.886202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.886984"], ["updated_at", "2017-06-26 02:09:56.886984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.887679"], ["updated_at", "2017-06-26 02:09:56.887679"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.889734"], ["updated_at", "2017-06-26 02:09:56.889734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.890438"], ["updated_at", "2017-06-26 02:09:56.890438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.898782"], ["updated_at", "2017-06-26 02:09:56.898782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.899512"], ["updated_at", "2017-06-26 02:09:56.899512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.908126"], ["updated_at", "2017-06-26 02:09:56.908126"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.911028"], ["updated_at", "2017-06-26 02:09:56.911028"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.914397"], ["updated_at", "2017-06-26 02:09:56.914397"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.916297"], ["updated_at", "2017-06-26 02:09:56.916297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.918363"], ["updated_at", "2017-06-26 02:09:56.918363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.921913"], ["updated_at", "2017-06-26 02:09:56.921913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.922648"], ["updated_at", "2017-06-26 02:09:56.922648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.923381"], ["updated_at", "2017-06-26 02:09:56.923381"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.925727"], ["updated_at", "2017-06-26 02:09:56.925727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.926469"], ["updated_at", "2017-06-26 02:09:56.926469"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 02:09:56.937137"], ["updated_at", "2017-06-26 02:09:56.937137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.946860"], ["updated_at", "2017-06-26 02:09:56.946860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.947660"], ["updated_at", "2017-06-26 02:09:56.947660"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.949849"], ["updated_at", "2017-06-26 02:09:56.949849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.951871"], ["updated_at", "2017-06-26 02:09:56.951871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.953954"], ["updated_at", "2017-06-26 02:09:56.953954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.970207"], ["updated_at", "2017-06-26 02:09:56.970207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.974111"], ["updated_at", "2017-06-26 02:09:56.974111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.978031"], ["updated_at", "2017-06-26 02:09:56.978031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.982924"], ["updated_at", "2017-06-26 02:09:56.982924"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:09:56.983833"], ["updated_at", "2017-06-26 02:09:56.983833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.143356"], ["updated_at", "2017-06-26 02:43:28.143356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.171535"], ["updated_at", "2017-06-26 02:43:28.171535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.172462"], ["updated_at", "2017-06-26 02:43:28.172462"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.9ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.177408"], ["updated_at", "2017-06-26 02:43:28.177408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.179375"], ["updated_at", "2017-06-26 02:43:28.179375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.183217"], ["updated_at", "2017-06-26 02:43:28.183217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.190820"], ["updated_at", "2017-06-26 02:43:28.190820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.191610"], ["updated_at", "2017-06-26 02:43:28.191610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.193258"], ["updated_at", "2017-06-26 02:43:28.193258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:43:28.210516"], ["updated_at", "2017-06-26 02:43:28.210516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:43:28.211378"], ["updated_at", "2017-06-26 02:43:28.211378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:43:28.212891"], ["updated_at", "2017-06-26 02:43:28.212891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:43:28.213585"], ["updated_at", "2017-06-26 02:43:28.213585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.222655"], ["updated_at", "2017-06-26 02:43:28.222655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.223541"], ["updated_at", "2017-06-26 02:43:28.223541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.227748"], ["updated_at", "2017-06-26 02:43:28.227748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.228455"], ["updated_at", "2017-06-26 02:43:28.228455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.230198"], ["updated_at", "2017-06-26 02:43:28.230198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:43:28.233514"], ["updated_at", "2017-06-26 02:43:28.233514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:43:28.234369"], ["updated_at", "2017-06-26 02:43:28.234369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.235049"], ["updated_at", "2017-06-26 02:43:28.235049"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.236838"], ["updated_at", "2017-06-26 02:43:28.236838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.241456"], ["updated_at", "2017-06-26 02:43:28.241456"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.243021"], ["updated_at", "2017-06-26 02:43:28.243021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.243677"], ["updated_at", "2017-06-26 02:43:28.243677"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 02:43:28.245859"], ["updated_at", "2017-06-26 02:43:28.245859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 02:43:28.247682"], ["updated_at", "2017-06-26 02:43:28.247682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.260921"], ["updated_at", "2017-06-26 02:43:28.260921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.261777"], ["updated_at", "2017-06-26 02:43:28.261777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.272240"], ["updated_at", "2017-06-26 02:43:28.272240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.274242"], ["updated_at", "2017-06-26 02:43:28.274242"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.275940"], ["updated_at", "2017-06-26 02:43:28.275940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.278944"], ["updated_at", "2017-06-26 02:43:28.278944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.284140"], ["updated_at", "2017-06-26 02:43:28.284140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.291532"], ["updated_at", "2017-06-26 02:43:28.291532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 02:43:28.300548"], ["updated_at", "2017-06-26 02:43:28.300548"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.311513"], ["updated_at", "2017-06-26 02:43:28.311513"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.314176"], ["updated_at", "2017-06-26 02:43:28.314176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.317592"], ["updated_at", "2017-06-26 02:43:28.317592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.322532"], ["updated_at", "2017-06-26 02:43:28.322532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.324207"], ["updated_at", "2017-06-26 02:43:28.324207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.325130"], ["updated_at", "2017-06-26 02:43:28.325130"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.328306"], ["updated_at", "2017-06-26 02:43:28.328306"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.329224"], ["updated_at", "2017-06-26 02:43:28.329224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.342536"], ["updated_at", "2017-06-26 02:43:28.342536"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.343649"], ["updated_at", "2017-06-26 02:43:28.343649"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.346350"], ["updated_at", "2017-06-26 02:43:28.346350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:43:28.354592"], ["updated_at", "2017-06-26 02:43:28.354592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.369933"], ["updated_at", "2017-06-26 02:43:28.369933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.375228"], ["updated_at", "2017-06-26 02:43:28.375228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.376048"], ["updated_at", "2017-06-26 02:43:28.376048"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.378331"], ["updated_at", "2017-06-26 02:43:28.378331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.380961"], ["updated_at", "2017-06-26 02:43:28.380961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.385565"], ["updated_at", "2017-06-26 02:43:28.385565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.386542"], ["updated_at", "2017-06-26 02:43:28.386542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.399185"], ["updated_at", "2017-06-26 02:43:28.399185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.400174"], ["updated_at", "2017-06-26 02:43:28.400174"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.407754"], ["updated_at", "2017-06-26 02:43:28.407754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.411809"], ["updated_at", "2017-06-26 02:43:28.411809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.412749"], ["updated_at", "2017-06-26 02:43:28.412749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 02:43:28.419725"], ["updated_at", "2017-06-26 02:43:28.419725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 02:43:28.421534"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:43:28.423163"], ["updated_at", "2017-06-26 02:43:28.423163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 02:43:28.424337"], ["updated_at", "2017-06-26 02:43:28.424337"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.429295"], ["updated_at", "2017-06-26 02:43:28.429295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.436595"], ["updated_at", "2017-06-26 02:43:28.436595"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:43:28.438880"], ["updated_at", "2017-06-26 02:43:28.438880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:43:28.439599"], ["updated_at", "2017-06-26 02:43:28.439599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:43:28.441525"], ["updated_at", "2017-06-26 02:43:28.441525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:43:28.442290"], ["updated_at", "2017-06-26 02:43:28.442290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.445217"], ["updated_at", "2017-06-26 02:43:28.445217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.446005"], ["updated_at", "2017-06-26 02:43:28.446005"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.447926"], ["updated_at", "2017-06-26 02:43:28.447926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 02:43:28.448690"], ["updated_at", "2017-06-26 02:43:28.448690"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.451479"], ["updated_at", "2017-06-26 02:43:28.451479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.452350"], ["updated_at", "2017-06-26 02:43:28.452350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.453174"], ["updated_at", "2017-06-26 02:43:28.453174"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.523628"], ["updated_at", "2017-06-26 02:43:28.523628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.529068"], ["updated_at", "2017-06-26 02:43:28.529068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.531585"], ["updated_at", "2017-06-26 02:43:28.531585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 02:43:28.566452"], ["updated_at", "2017-06-26 02:43:28.566452"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 02:43:28.569092"], ["updated_at", "2017-06-26 02:43:28.569092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 02:43:28.569900"], ["updated_at", "2017-06-26 02:43:28.569900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:43:28.589226"], ["updated_at", "2017-06-26 02:43:28.589226"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"params"=>{"strong_resource"=>{"id"=>"1"}}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.841756"], ["updated_at", "2017-06-26 02:45:35.841756"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.869627"], ["updated_at", "2017-06-26 02:45:35.869627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.881329"], ["updated_at", "2017-06-26 02:45:35.881329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:45:35.890871"], ["updated_at", "2017-06-26 02:45:35.890871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.918246"], ["updated_at", "2017-06-26 02:45:35.918246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.920513"], ["updated_at", "2017-06-26 02:45:35.920513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.923586"], ["updated_at", "2017-06-26 02:45:35.923586"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.925404"], ["updated_at", "2017-06-26 02:45:35.925404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.926141"], ["updated_at", "2017-06-26 02:45:35.926141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.926928"], ["updated_at", "2017-06-26 02:45:35.926928"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.936187"], ["updated_at", "2017-06-26 02:45:35.936187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.937057"], ["updated_at", "2017-06-26 02:45:35.937057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.943346"], ["updated_at", "2017-06-26 02:45:35.943346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.947865"], ["updated_at", "2017-06-26 02:45:35.947865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.948638"], ["updated_at", "2017-06-26 02:45:35.948638"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.950864"], ["updated_at", "2017-06-26 02:45:35.950864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.951585"], ["updated_at", "2017-06-26 02:45:35.951585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:45:35.967005"], ["updated_at", "2017-06-26 02:45:35.967005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:45:35.968104"], ["updated_at", "2017-06-26 02:45:35.968104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:45:35.970455"], ["updated_at", "2017-06-26 02:45:35.970455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:45:35.971479"], ["updated_at", "2017-06-26 02:45:35.971479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.975661"], ["updated_at", "2017-06-26 02:45:35.975661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.981961"], ["updated_at", "2017-06-26 02:45:35.981961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:45:35.985629"], ["updated_at", "2017-06-26 02:45:35.985629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:45:35.986478"], ["updated_at", "2017-06-26 02:45:35.986478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:45:35.988132"], ["updated_at", "2017-06-26 02:45:35.988132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:45:35.989064"], ["updated_at", "2017-06-26 02:45:35.989064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:35.998915"], ["updated_at", "2017-06-26 02:45:35.998915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.001816"], ["updated_at", "2017-06-26 02:45:36.001816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.006321"], ["updated_at", "2017-06-26 02:45:36.006321"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.007128"], ["updated_at", "2017-06-26 02:45:36.007128"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.009189"], ["updated_at", "2017-06-26 02:45:36.009189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.012466"], ["updated_at", "2017-06-26 02:45:36.012466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.013307"], ["updated_at", "2017-06-26 02:45:36.013307"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.016001"], ["updated_at", "2017-06-26 02:45:36.016001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.016878"], ["updated_at", "2017-06-26 02:45:36.016878"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 02:45:36.019681"], ["updated_at", "2017-06-26 02:45:36.019681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 02:45:36.022418"], ["updated_at", "2017-06-26 02:45:36.022418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.033321"], ["updated_at", "2017-06-26 02:45:36.033321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.034387"], ["updated_at", "2017-06-26 02:45:36.034387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 02:45:36.046355"], ["updated_at", "2017-06-26 02:45:36.046355"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.057016"], ["updated_at", "2017-06-26 02:45:36.057016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.062440"], ["updated_at", "2017-06-26 02:45:36.062440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:45:36.067639"], ["updated_at", "2017-06-26 02:45:36.067639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:45:36.068733"], ["updated_at", "2017-06-26 02:45:36.068733"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.069552"], ["updated_at", "2017-06-26 02:45:36.069552"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.071917"], ["updated_at", "2017-06-26 02:45:36.071917"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.072808"], ["updated_at", "2017-06-26 02:45:36.072808"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.075532"], ["updated_at", "2017-06-26 02:45:36.075532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.076394"], ["updated_at", "2017-06-26 02:45:36.076394"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.079273"], ["updated_at", "2017-06-26 02:45:36.079273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.080475"], ["updated_at", "2017-06-26 02:45:36.080475"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.082863"], ["updated_at", "2017-06-26 02:45:36.082863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.083705"], ["updated_at", "2017-06-26 02:45:36.083705"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.086031"], ["updated_at", "2017-06-26 02:45:36.086031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.092416"], ["updated_at", "2017-06-26 02:45:36.092416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.093273"], ["updated_at", "2017-06-26 02:45:36.093273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.115022"], ["updated_at", "2017-06-26 02:45:36.115022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.116091"], ["updated_at", "2017-06-26 02:45:36.116091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.118398"], ["updated_at", "2017-06-26 02:45:36.118398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.122220"], ["updated_at", "2017-06-26 02:45:36.122220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.123162"], ["updated_at", "2017-06-26 02:45:36.123162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.137153"], ["updated_at", "2017-06-26 02:45:36.137153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 02:45:36.137957"], ["updated_at", "2017-06-26 02:45:36.137957"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.141286"], ["updated_at", "2017-06-26 02:45:36.141286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.150121"], ["updated_at", "2017-06-26 02:45:36.150121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.157707"], ["updated_at", "2017-06-26 02:45:36.157707"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 02:45:36.164897"], ["updated_at", "2017-06-26 02:45:36.164897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 02:45:36.166752"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:45:36.168422"], ["updated_at", "2017-06-26 02:45:36.168422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 02:45:36.169454"], ["updated_at", "2017-06-26 02:45:36.169454"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.173732"], ["updated_at", "2017-06-26 02:45:36.173732"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.174601"], ["updated_at", "2017-06-26 02:45:36.174601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.175487"], ["updated_at", "2017-06-26 02:45:36.175487"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.178721"], ["updated_at", "2017-06-26 02:45:36.178721"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.181854"], ["updated_at", "2017-06-26 02:45:36.181854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.191284"], ["updated_at", "2017-06-26 02:45:36.191284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 02:45:36.194713"], ["updated_at", "2017-06-26 02:45:36.194713"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.198128"], ["updated_at", "2017-06-26 02:45:36.198128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.230658"], ["updated_at", "2017-06-26 02:45:36.230658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.235742"], ["updated_at", "2017-06-26 02:45:36.235742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:36.238534"], ["updated_at", "2017-06-26 02:45:36.238534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 02:45:36.254808"], ["updated_at", "2017-06-26 02:45:36.254808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 02:45:36.255780"], ["updated_at", "2017-06-26 02:45:36.255780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.026758"], ["updated_at", "2017-06-26 02:45:50.026758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.027830"], ["updated_at", "2017-06-26 02:45:50.027830"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:45:50.029935"], ["updated_at", "2017-06-26 02:45:50.029935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:45:50.030808"], ["updated_at", "2017-06-26 02:45:50.030808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:45:50.035573"], ["updated_at", "2017-06-26 02:45:50.035573"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:45:50.036466"], ["updated_at", "2017-06-26 02:45:50.036466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.045155"], ["updated_at", "2017-06-26 02:45:50.045155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.046121"], ["updated_at", "2017-06-26 02:45:50.046121"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.048927"], ["updated_at", "2017-06-26 02:45:50.048927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.057073"], ["updated_at", "2017-06-26 02:45:50.057073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.084068"], ["updated_at", "2017-06-26 02:45:50.084068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.085252"], ["updated_at", "2017-06-26 02:45:50.085252"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.087618"], ["updated_at", "2017-06-26 02:45:50.087618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.094064"], ["updated_at", "2017-06-26 02:45:50.094064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.095435"], ["updated_at", "2017-06-26 02:45:50.095435"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.098015"], ["updated_at", "2017-06-26 02:45:50.098015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.098909"], ["updated_at", "2017-06-26 02:45:50.098909"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.101628"], ["updated_at", "2017-06-26 02:45:50.101628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.106810"], ["updated_at", "2017-06-26 02:45:50.106810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.118156"], ["updated_at", "2017-06-26 02:45:50.118156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.126325"], ["updated_at", "2017-06-26 02:45:50.126325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.127320"], ["updated_at", "2017-06-26 02:45:50.127320"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.129990"], ["updated_at", "2017-06-26 02:45:50.129990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.130837"], ["updated_at", "2017-06-26 02:45:50.130837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.140071"], ["updated_at", "2017-06-26 02:45:50.140071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.140978"], ["updated_at", "2017-06-26 02:45:50.140978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.141983"], ["updated_at", "2017-06-26 02:45:50.141983"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:45:50.156895"], ["updated_at", "2017-06-26 02:45:50.156895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.162219"], ["updated_at", "2017-06-26 02:45:50.162219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.168326"], ["updated_at", "2017-06-26 02:45:50.168326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.170789"], ["updated_at", "2017-06-26 02:45:50.170789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.173014"], ["updated_at", "2017-06-26 02:45:50.173014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.176685"], ["updated_at", "2017-06-26 02:45:50.176685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.181967"], ["updated_at", "2017-06-26 02:45:50.181967"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.183683"], ["updated_at", "2017-06-26 02:45:50.183683"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.187926"], ["updated_at", "2017-06-26 02:45:50.187926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.188983"], ["updated_at", "2017-06-26 02:45:50.188983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.191923"], ["updated_at", "2017-06-26 02:45:50.191923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.195821"], ["updated_at", "2017-06-26 02:45:50.195821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.197991"], ["updated_at", "2017-06-26 02:45:50.197991"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.201760"], ["updated_at", "2017-06-26 02:45:50.201760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.206927"], ["updated_at", "2017-06-26 02:45:50.206927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.212601"], ["updated_at", "2017-06-26 02:45:50.212601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.218554"], ["updated_at", "2017-06-26 02:45:50.218554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.220676"], ["updated_at", "2017-06-26 02:45:50.220676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.234580"], ["updated_at", "2017-06-26 02:45:50.234580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.238580"], ["updated_at", "2017-06-26 02:45:50.238580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.239426"], ["updated_at", "2017-06-26 02:45:50.239426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.253337"], ["updated_at", "2017-06-26 02:45:50.253337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.254163"], ["updated_at", "2017-06-26 02:45:50.254163"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.260337"], ["updated_at", "2017-06-26 02:45:50.260337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 02:45:50.261259"], ["updated_at", "2017-06-26 02:45:50.261259"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:45:50.263632"], ["updated_at", "2017-06-26 02:45:50.263632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:45:50.264416"], ["updated_at", "2017-06-26 02:45:50.264416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.265115"], ["updated_at", "2017-06-26 02:45:50.265115"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 02:45:50.271590"], ["updated_at", "2017-06-26 02:45:50.271590"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.281214"], ["updated_at", "2017-06-26 02:45:50.281214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.282021"], ["updated_at", "2017-06-26 02:45:50.282021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:45:50.291320"], ["updated_at", "2017-06-26 02:45:50.291320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:45:50.292158"], ["updated_at", "2017-06-26 02:45:50.292158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:45:50.294041"], ["updated_at", "2017-06-26 02:45:50.294041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:45:50.294954"], ["updated_at", "2017-06-26 02:45:50.294954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.301500"], ["updated_at", "2017-06-26 02:45:50.301500"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.303128"], ["updated_at", "2017-06-26 02:45:50.303128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.303884"], ["updated_at", "2017-06-26 02:45:50.303884"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.304537"], ["updated_at", "2017-06-26 02:45:50.304537"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.306631"], ["updated_at", "2017-06-26 02:45:50.306631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.307515"], ["updated_at", "2017-06-26 02:45:50.307515"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.310070"], ["updated_at", "2017-06-26 02:45:50.310070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.314732"], ["updated_at", "2017-06-26 02:45:50.314732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.315750"], ["updated_at", "2017-06-26 02:45:50.315750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 02:45:50.321455"], ["updated_at", "2017-06-26 02:45:50.321455"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 02:45:50.325214"], ["updated_at", "2017-06-26 02:45:50.325214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 02:45:50.336015"], ["updated_at", "2017-06-26 02:45:50.336015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 02:45:50.337594"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:45:50.339057"], ["updated_at", "2017-06-26 02:45:50.339057"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 02:45:50.339861"], ["updated_at", "2017-06-26 02:45:50.339861"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 02:45:50.389797"], ["updated_at", "2017-06-26 02:45:50.389797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 02:45:50.391128"], ["updated_at", "2017-06-26 02:45:50.391128"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 02:45:50.404039"], ["updated_at", "2017-06-26 02:45:50.404039"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.435356"], ["updated_at", "2017-06-26 02:45:50.435356"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.440303"], ["updated_at", "2017-06-26 02:45:50.440303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.445072"], ["updated_at", "2017-06-26 02:45:50.445072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:50.447706"], ["updated_at", "2017-06-26 02:45:50.447706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 02:45:59.273564"], ["updated_at", "2017-06-26 02:45:59.273564"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 02:45:59.302178"], ["updated_at", "2017-06-26 02:45:59.302178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 02:45:59.303020"], ["updated_at", "2017-06-26 02:45:59.303020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.323743"], ["updated_at", "2017-06-26 02:45:59.323743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.329300"], ["updated_at", "2017-06-26 02:45:59.329300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.332060"], ["updated_at", "2017-06-26 02:45:59.332060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.349509"], ["updated_at", "2017-06-26 02:45:59.349509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"params"=>{"strong_resource"=>{"id"=>"1"}}} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.555557"], ["updated_at", "2017-06-26 02:45:59.555557"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.557195"], ["updated_at", "2017-06-26 02:45:59.557195"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.560720"], ["updated_at", "2017-06-26 02:45:59.560720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.561834"], ["updated_at", "2017-06-26 02:45:59.561834"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.564295"], ["updated_at", "2017-06-26 02:45:59.564295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.569578"], ["updated_at", "2017-06-26 02:45:59.569578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.570540"], ["updated_at", "2017-06-26 02:45:59.570540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.571403"], ["updated_at", "2017-06-26 02:45:59.571403"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.574568"], ["updated_at", "2017-06-26 02:45:59.574568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.575431"], ["updated_at", "2017-06-26 02:45:59.575431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.583813"], ["updated_at", "2017-06-26 02:45:59.583813"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.586167"], ["updated_at", "2017-06-26 02:45:59.586167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.586836"], ["updated_at", "2017-06-26 02:45:59.586836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.591662"], ["updated_at", "2017-06-26 02:45:59.591662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.593429"], ["updated_at", "2017-06-26 02:45:59.593429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.596113"], ["updated_at", "2017-06-26 02:45:59.596113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.596831"], ["updated_at", "2017-06-26 02:45:59.596831"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:45:59.601204"], ["updated_at", "2017-06-26 02:45:59.601204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.617468"], ["updated_at", "2017-06-26 02:45:59.617468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.618279"], ["updated_at", "2017-06-26 02:45:59.618279"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.620280"], ["updated_at", "2017-06-26 02:45:59.620280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 02:45:59.621222"], ["updated_at", "2017-06-26 02:45:59.621222"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 02:45:59.625677"], ["updated_at", "2017-06-26 02:45:59.625677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.637102"], ["updated_at", "2017-06-26 02:45:59.637102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.637875"], ["updated_at", "2017-06-26 02:45:59.637875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.639624"], ["updated_at", "2017-06-26 02:45:59.639624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.642374"], ["updated_at", "2017-06-26 02:45:59.642374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.643101"], ["updated_at", "2017-06-26 02:45:59.643101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.647472"], ["updated_at", "2017-06-26 02:45:59.647472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 02:45:59.651358"], ["updated_at", "2017-06-26 02:45:59.651358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 02:45:59.652674"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:45:59.653721"], ["updated_at", "2017-06-26 02:45:59.653721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 02:45:59.654587"], ["updated_at", "2017-06-26 02:45:59.654587"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.657954"], ["updated_at", "2017-06-26 02:45:59.657954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.659792"], ["updated_at", "2017-06-26 02:45:59.659792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.662594"], ["updated_at", "2017-06-26 02:45:59.662594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.663391"], ["updated_at", "2017-06-26 02:45:59.663391"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.665828"], ["updated_at", "2017-06-26 02:45:59.665828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.669147"], ["updated_at", "2017-06-26 02:45:59.669147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:45:59.675552"], ["updated_at", "2017-06-26 02:45:59.675552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:45:59.676326"], ["updated_at", "2017-06-26 02:45:59.676326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:45:59.677960"], ["updated_at", "2017-06-26 02:45:59.677960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:45:59.678689"], ["updated_at", "2017-06-26 02:45:59.678689"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 02:45:59.685841"], ["updated_at", "2017-06-26 02:45:59.685841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 02:45:59.688222"], ["updated_at", "2017-06-26 02:45:59.688222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.695910"], ["updated_at", "2017-06-26 02:45:59.695910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.696814"], ["updated_at", "2017-06-26 02:45:59.696814"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.699659"], ["updated_at", "2017-06-26 02:45:59.699659"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.701567"], ["updated_at", "2017-06-26 02:45:59.701567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.702336"], ["updated_at", "2017-06-26 02:45:59.702336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.715473"], ["updated_at", "2017-06-26 02:45:59.715473"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.720107"], ["updated_at", "2017-06-26 02:45:59.720107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.721947"], ["updated_at", "2017-06-26 02:45:59.721947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.724636"], ["updated_at", "2017-06-26 02:45:59.724636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.726379"], ["updated_at", "2017-06-26 02:45:59.726379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.728056"], ["updated_at", "2017-06-26 02:45:59.728056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.731248"], ["updated_at", "2017-06-26 02:45:59.731248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.738020"], ["updated_at", "2017-06-26 02:45:59.738020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:45:59.744551"], ["updated_at", "2017-06-26 02:45:59.744551"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:45:59.745385"], ["updated_at", "2017-06-26 02:45:59.745385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:45:59.747115"], ["updated_at", "2017-06-26 02:45:59.747115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:45:59.747982"], ["updated_at", "2017-06-26 02:45:59.747982"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.751277"], ["updated_at", "2017-06-26 02:45:59.751277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.751984"], ["updated_at", "2017-06-26 02:45:59.751984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.753746"], ["updated_at", "2017-06-26 02:45:59.753746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.756588"], ["updated_at", "2017-06-26 02:45:59.756588"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.760887"], ["updated_at", "2017-06-26 02:45:59.760887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.761578"], ["updated_at", "2017-06-26 02:45:59.761578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:45:59.769957"], ["updated_at", "2017-06-26 02:45:59.769957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:45:59.770780"], ["updated_at", "2017-06-26 02:45:59.770780"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.771455"], ["updated_at", "2017-06-26 02:45:59.771455"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.772976"], ["updated_at", "2017-06-26 02:45:59.772976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.773647"], ["updated_at", "2017-06-26 02:45:59.773647"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.782682"], ["updated_at", "2017-06-26 02:45:59.782682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.786740"], ["updated_at", "2017-06-26 02:45:59.786740"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.788240"], ["updated_at", "2017-06-26 02:45:59.788240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:45:59.796973"], ["updated_at", "2017-06-26 02:45:59.796973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 02:46:17.530108"], ["updated_at", "2017-06-26 02:46:17.530108"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.616112"], ["updated_at", "2017-06-26 02:46:17.616112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 02:46:17.622512"], ["updated_at", "2017-06-26 02:46:17.622512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 02:46:17.623549"], ["updated_at", "2017-06-26 02:46:17.623549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.644285"], ["updated_at", "2017-06-26 02:46:17.644285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.650705"], ["updated_at", "2017-06-26 02:46:17.650705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.654425"], ["updated_at", "2017-06-26 02:46:17.654425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.665450"], ["updated_at", "2017-06-26 02:46:17.665450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:46:17.670795"], ["updated_at", "2017-06-26 02:46:17.670795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:46:17.672016"], ["updated_at", "2017-06-26 02:46:17.672016"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:46:17.674524"], ["updated_at", "2017-06-26 02:46:17.674524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:46:17.675389"], ["updated_at", "2017-06-26 02:46:17.675389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.683203"], ["updated_at", "2017-06-26 02:46:17.683203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.688428"], ["updated_at", "2017-06-26 02:46:17.688428"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.697727"], ["updated_at", "2017-06-26 02:46:17.697727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.698634"], ["updated_at", "2017-06-26 02:46:17.698634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.706644"], ["updated_at", "2017-06-26 02:46:17.706644"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.707585"], ["updated_at", "2017-06-26 02:46:17.707585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.708460"], ["updated_at", "2017-06-26 02:46:17.708460"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.711243"], ["updated_at", "2017-06-26 02:46:17.711243"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 02:46:17.716348"], ["updated_at", "2017-06-26 02:46:17.716348"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 02:46:17.718659"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:46:17.719784"], ["updated_at", "2017-06-26 02:46:17.719784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 02:46:17.720744"], ["updated_at", "2017-06-26 02:46:17.720744"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.728160"], ["updated_at", "2017-06-26 02:46:17.728160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.731238"], ["updated_at", "2017-06-26 02:46:17.731238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.735003"], ["updated_at", "2017-06-26 02:46:17.735003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.753792"], ["updated_at", "2017-06-26 02:46:17.753792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.754732"], ["updated_at", "2017-06-26 02:46:17.754732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.774037"], ["updated_at", "2017-06-26 02:46:17.774037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.774949"], ["updated_at", "2017-06-26 02:46:17.774949"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.786319"], ["updated_at", "2017-06-26 02:46:17.786319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.792228"], ["updated_at", "2017-06-26 02:46:17.792228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.793147"], ["updated_at", "2017-06-26 02:46:17.793147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.794035"], ["updated_at", "2017-06-26 02:46:17.794035"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.796432"], ["updated_at", "2017-06-26 02:46:17.796432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.797158"], ["updated_at", "2017-06-26 02:46:17.797158"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 02:46:17.801069"], ["updated_at", "2017-06-26 02:46:17.801069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.811692"], ["updated_at", "2017-06-26 02:46:17.811692"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.812791"], ["updated_at", "2017-06-26 02:46:17.812791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.818085"], ["updated_at", "2017-06-26 02:46:17.818085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.818937"], ["updated_at", "2017-06-26 02:46:17.818937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.821200"], ["updated_at", "2017-06-26 02:46:17.821200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.825256"], ["updated_at", "2017-06-26 02:46:17.825256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.826149"], ["updated_at", "2017-06-26 02:46:17.826149"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.829139"], ["updated_at", "2017-06-26 02:46:17.829139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 02:46:17.829964"], ["updated_at", "2017-06-26 02:46:17.829964"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.832673"], ["updated_at", "2017-06-26 02:46:17.832673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.834986"], ["updated_at", "2017-06-26 02:46:17.834986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:46:17.842431"], ["updated_at", "2017-06-26 02:46:17.842431"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 02:46:17.847889"], ["updated_at", "2017-06-26 02:46:17.847889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 02:46:17.850548"], ["updated_at", "2017-06-26 02:46:17.850548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.860325"], ["updated_at", "2017-06-26 02:46:17.860325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.865401"], ["updated_at", "2017-06-26 02:46:17.865401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.866237"], ["updated_at", "2017-06-26 02:46:17.866237"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:46:17.868487"], ["updated_at", "2017-06-26 02:46:17.868487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:46:17.869248"], ["updated_at", "2017-06-26 02:46:17.869248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:46:17.870977"], ["updated_at", "2017-06-26 02:46:17.870977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:46:17.871763"], ["updated_at", "2017-06-26 02:46:17.871763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.874792"], ["updated_at", "2017-06-26 02:46:17.874792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.877321"], ["updated_at", "2017-06-26 02:46:17.877321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.880641"], ["updated_at", "2017-06-26 02:46:17.880641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.881397"], ["updated_at", "2017-06-26 02:46:17.881397"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.883654"], ["updated_at", "2017-06-26 02:46:17.883654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.889009"], ["updated_at", "2017-06-26 02:46:17.889009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.895629"], ["updated_at", "2017-06-26 02:46:17.895629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.896491"], ["updated_at", "2017-06-26 02:46:17.896491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:46:17.904395"], ["updated_at", "2017-06-26 02:46:17.904395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:46:17.905312"], ["updated_at", "2017-06-26 02:46:17.905312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.906141"], ["updated_at", "2017-06-26 02:46:17.906141"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.908084"], ["updated_at", "2017-06-26 02:46:17.908084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.913541"], ["updated_at", "2017-06-26 02:46:17.913541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.914276"], ["updated_at", "2017-06-26 02:46:17.914276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.916494"], ["updated_at", "2017-06-26 02:46:17.916494"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.919620"], ["updated_at", "2017-06-26 02:46:17.919620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.920333"], ["updated_at", "2017-06-26 02:46:17.920333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.933405"], ["updated_at", "2017-06-26 02:46:17.933405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.938480"], ["updated_at", "2017-06-26 02:46:17.938480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.939336"], ["updated_at", "2017-06-26 02:46:17.939336"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.941460"], ["updated_at", "2017-06-26 02:46:17.941460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.942195"], ["updated_at", "2017-06-26 02:46:17.942195"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.944024"], ["updated_at", "2017-06-26 02:46:17.944024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.946397"], ["updated_at", "2017-06-26 02:46:17.946397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:17.948429"], ["updated_at", "2017-06-26 02:46:17.948429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.147318"], ["updated_at", "2017-06-26 02:46:29.147318"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.148375"], ["updated_at", "2017-06-26 02:46:29.148375"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.177702"], ["updated_at", "2017-06-26 02:46:29.177702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 02:46:29.178606"], ["updated_at", "2017-06-26 02:46:29.178606"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:46:29.184046"], ["updated_at", "2017-06-26 02:46:29.184046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.187994"], ["updated_at", "2017-06-26 02:46:29.187994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.194029"], ["updated_at", "2017-06-26 02:46:29.194029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.199909"], ["updated_at", "2017-06-26 02:46:29.199909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.200666"], ["updated_at", "2017-06-26 02:46:29.200666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.208439"], ["updated_at", "2017-06-26 02:46:29.208439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.209166"], ["updated_at", "2017-06-26 02:46:29.209166"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 02:46:29.213768"], ["updated_at", "2017-06-26 02:46:29.213768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.236000"], ["updated_at", "2017-06-26 02:46:29.236000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.241479"], ["updated_at", "2017-06-26 02:46:29.241479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.243416"], ["updated_at", "2017-06-26 02:46:29.243416"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.247541"], ["updated_at", "2017-06-26 02:46:29.247541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.248496"], ["updated_at", "2017-06-26 02:46:29.248496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.253648"], ["updated_at", "2017-06-26 02:46:29.253648"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.260243"], ["updated_at", "2017-06-26 02:46:29.260243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.261265"], ["updated_at", "2017-06-26 02:46:29.261265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.262205"], ["updated_at", "2017-06-26 02:46:29.262205"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.275526"], ["updated_at", "2017-06-26 02:46:29.275526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.277482"], ["updated_at", "2017-06-26 02:46:29.277482"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.280975"], ["updated_at", "2017-06-26 02:46:29.280975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.283495"], ["updated_at", "2017-06-26 02:46:29.283495"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.287329"], ["updated_at", "2017-06-26 02:46:29.287329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 02:46:29.292756"], ["updated_at", "2017-06-26 02:46:29.292756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 02:46:29.293900"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:46:29.295484"], ["updated_at", "2017-06-26 02:46:29.295484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 02:46:29.296468"], ["updated_at", "2017-06-26 02:46:29.296468"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.300562"], ["updated_at", "2017-06-26 02:46:29.300562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.301375"], ["updated_at", "2017-06-26 02:46:29.301375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.303313"], ["updated_at", "2017-06-26 02:46:29.303313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.306961"], ["updated_at", "2017-06-26 02:46:29.306961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.307952"], ["updated_at", "2017-06-26 02:46:29.307952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.314566"], ["updated_at", "2017-06-26 02:46:29.314566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.317443"], ["updated_at", "2017-06-26 02:46:29.317443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.319893"], ["updated_at", "2017-06-26 02:46:29.319893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:46:29.323699"], ["updated_at", "2017-06-26 02:46:29.323699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:46:29.324854"], ["updated_at", "2017-06-26 02:46:29.324854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:46:29.327167"], ["updated_at", "2017-06-26 02:46:29.327167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:46:29.328297"], ["updated_at", "2017-06-26 02:46:29.328297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.335676"], ["updated_at", "2017-06-26 02:46:29.335676"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.338046"], ["updated_at", "2017-06-26 02:46:29.338046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.338981"], ["updated_at", "2017-06-26 02:46:29.338981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.339843"], ["updated_at", "2017-06-26 02:46:29.339843"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.342677"], ["updated_at", "2017-06-26 02:46:29.342677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.352142"], ["updated_at", "2017-06-26 02:46:29.352142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.359497"], ["updated_at", "2017-06-26 02:46:29.359497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.361071"], ["updated_at", "2017-06-26 02:46:29.361071"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.364590"], ["updated_at", "2017-06-26 02:46:29.364590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.365635"], ["updated_at", "2017-06-26 02:46:29.365635"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:46:29.368849"], ["updated_at", "2017-06-26 02:46:29.368849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:46:29.369783"], ["updated_at", "2017-06-26 02:46:29.369783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:46:29.371780"], ["updated_at", "2017-06-26 02:46:29.371780"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:46:29.372928"], ["updated_at", "2017-06-26 02:46:29.372928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.384921"], ["updated_at", "2017-06-26 02:46:29.384921"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.385850"], ["updated_at", "2017-06-26 02:46:29.385850"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.388448"], ["updated_at", "2017-06-26 02:46:29.388448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.389307"], ["updated_at", "2017-06-26 02:46:29.389307"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.392002"], ["updated_at", "2017-06-26 02:46:29.392002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.402345"], ["updated_at", "2017-06-26 02:46:29.402345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 02:46:29.405797"], ["updated_at", "2017-06-26 02:46:29.405797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 02:46:29.407552"], ["updated_at", "2017-06-26 02:46:29.407552"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.415340"], ["updated_at", "2017-06-26 02:46:29.415340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.418893"], ["updated_at", "2017-06-26 02:46:29.418893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.419674"], ["updated_at", "2017-06-26 02:46:29.419674"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.421355"], ["updated_at", "2017-06-26 02:46:29.421355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.422044"], ["updated_at", "2017-06-26 02:46:29.422044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.427952"], ["updated_at", "2017-06-26 02:46:29.427952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.428784"], ["updated_at", "2017-06-26 02:46:29.428784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.430587"], ["updated_at", "2017-06-26 02:46:29.430587"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:46:29.434404"], ["updated_at", "2017-06-26 02:46:29.434404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:46:29.435307"], ["updated_at", "2017-06-26 02:46:29.435307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.436090"], ["updated_at", "2017-06-26 02:46:29.436090"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.446324"], ["updated_at", "2017-06-26 02:46:29.446324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.447535"], ["updated_at", "2017-06-26 02:46:29.447535"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"params"=>{"strong_resource"=>{"id"=>"1"}}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.562890"], ["updated_at", "2017-06-26 02:46:29.562890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.567999"], ["updated_at", "2017-06-26 02:46:29.567999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.570770"], ["updated_at", "2017-06-26 02:46:29.570770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:46:29.579092"], ["updated_at", "2017-06-26 02:46:29.579092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 02:46:29.601974"], ["updated_at", "2017-06-26 02:46:29.601974"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 02:46:29.606982"], ["updated_at", "2017-06-26 02:46:29.606982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 02:46:29.607735"], ["updated_at", "2017-06-26 02:46:29.607735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.396699"], ["updated_at", "2017-06-26 02:50:02.396699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 02:50:02.402996"], ["updated_at", "2017-06-26 02:50:02.402996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 02:50:02.404076"], ["updated_at", "2017-06-26 02:50:02.404076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 6], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 02:50:02.442481"], ["updated_at", "2017-06-26 02:50:02.442481"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.446633"], ["updated_at", "2017-06-26 02:50:02.446633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.456537"], ["updated_at", "2017-06-26 02:50:02.456537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.459463"], ["updated_at", "2017-06-26 02:50:02.459463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.527703"], ["updated_at", "2017-06-26 02:50:02.527703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.529958"], ["updated_at", "2017-06-26 02:50:02.529958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.531693"], ["updated_at", "2017-06-26 02:50:02.531693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.534883"], ["updated_at", "2017-06-26 02:50:02.534883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.539593"], ["updated_at", "2017-06-26 02:50:02.539593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.545201"], ["updated_at", "2017-06-26 02:50:02.545201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.550392"], ["updated_at", "2017-06-26 02:50:02.550392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.557611"], ["updated_at", "2017-06-26 02:50:02.557611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.560395"], ["updated_at", "2017-06-26 02:50:02.560395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.564341"], ["updated_at", "2017-06-26 02:50:02.564341"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.567171"], ["updated_at", "2017-06-26 02:50:02.567171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.568223"], ["updated_at", "2017-06-26 02:50:02.568223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.570701"], ["updated_at", "2017-06-26 02:50:02.570701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:50:02.575448"], ["updated_at", "2017-06-26 02:50:02.575448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:50:02.576824"], ["updated_at", "2017-06-26 02:50:02.576824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:50:02.579135"], ["updated_at", "2017-06-26 02:50:02.579135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:50:02.580113"], ["updated_at", "2017-06-26 02:50:02.580113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.594814"], ["updated_at", "2017-06-26 02:50:02.594814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.595720"], ["updated_at", "2017-06-26 02:50:02.595720"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 02:50:02.600819"], ["updated_at", "2017-06-26 02:50:02.600819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.614055"], ["updated_at", "2017-06-26 02:50:02.614055"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:50:02.619239"], ["updated_at", "2017-06-26 02:50:02.619239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:50:02.620418"], ["updated_at", "2017-06-26 02:50:02.620418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:50:02.622657"], ["updated_at", "2017-06-26 02:50:02.622657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:50:02.624017"], ["updated_at", "2017-06-26 02:50:02.624017"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.654598"], ["updated_at", "2017-06-26 02:50:02.654598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.655424"], ["updated_at", "2017-06-26 02:50:02.655424"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.660390"], ["updated_at", "2017-06-26 02:50:02.660390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.661303"], ["updated_at", "2017-06-26 02:50:02.661303"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:50:02.666303"], ["updated_at", "2017-06-26 02:50:02.666303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.670316"], ["updated_at", "2017-06-26 02:50:02.670316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.671103"], ["updated_at", "2017-06-26 02:50:02.671103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.678429"], ["updated_at", "2017-06-26 02:50:02.678429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.679229"], ["updated_at", "2017-06-26 02:50:02.679229"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.680769"], ["updated_at", "2017-06-26 02:50:02.680769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.681438"], ["updated_at", "2017-06-26 02:50:02.681438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.682231"], ["updated_at", "2017-06-26 02:50:02.682231"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.684461"], ["updated_at", "2017-06-26 02:50:02.684461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.685166"], ["updated_at", "2017-06-26 02:50:02.685166"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.687573"], ["updated_at", "2017-06-26 02:50:02.687573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.691410"], ["updated_at", "2017-06-26 02:50:02.691410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 02:50:02.696752"], ["updated_at", "2017-06-26 02:50:02.696752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 02:50:02.699438"], ["updated_at", "2017-06-26 02:50:02.699438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 02:50:02.709087"], ["updated_at", "2017-06-26 02:50:02.709087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 02:50:02.710449"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:50:02.711343"], ["updated_at", "2017-06-26 02:50:02.711343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 02:50:02.712172"], ["updated_at", "2017-06-26 02:50:02.712172"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.715270"], ["updated_at", "2017-06-26 02:50:02.715270"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.716084"], ["updated_at", "2017-06-26 02:50:02.716084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.716743"], ["updated_at", "2017-06-26 02:50:02.716743"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.718979"], ["updated_at", "2017-06-26 02:50:02.718979"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.721181"], ["updated_at", "2017-06-26 02:50:02.721181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.728044"], ["updated_at", "2017-06-26 02:50:02.728044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.728807"], ["updated_at", "2017-06-26 02:50:02.728807"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.730595"], ["updated_at", "2017-06-26 02:50:02.730595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.731287"], ["updated_at", "2017-06-26 02:50:02.731287"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.733440"], ["updated_at", "2017-06-26 02:50:02.733440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.734152"], ["updated_at", "2017-06-26 02:50:02.734152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.739093"], ["updated_at", "2017-06-26 02:50:02.739093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.744057"], ["updated_at", "2017-06-26 02:50:02.744057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.744870"], ["updated_at", "2017-06-26 02:50:02.744870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.746742"], ["updated_at", "2017-06-26 02:50:02.746742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.749722"], ["updated_at", "2017-06-26 02:50:02.749722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.750682"], ["updated_at", "2017-06-26 02:50:02.750682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.760325"], ["updated_at", "2017-06-26 02:50:02.760325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.762258"], ["updated_at", "2017-06-26 02:50:02.762258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.765417"], ["updated_at", "2017-06-26 02:50:02.765417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.769622"], ["updated_at", "2017-06-26 02:50:02.769622"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 02:50:02.770584"], ["updated_at", "2017-06-26 02:50:02.770584"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:50:02.773310"], ["updated_at", "2017-06-26 02:50:02.773310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:50:02.774247"], ["updated_at", "2017-06-26 02:50:02.774247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.775042"], ["updated_at", "2017-06-26 02:50:02.775042"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.776948"], ["updated_at", "2017-06-26 02:50:02.776948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.780258"], ["updated_at", "2017-06-26 02:50:02.780258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.781050"], ["updated_at", "2017-06-26 02:50:02.781050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.787105"], ["updated_at", "2017-06-26 02:50:02.787105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:50:02.787973"], ["updated_at", "2017-06-26 02:50:02.787973"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"params"=>{"strong_resource"=>{"id"=>"1"}}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:59:58.851829"], ["updated_at", "2017-06-26 02:59:58.851829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:59:58.854920"], ["updated_at", "2017-06-26 02:59:58.854920"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:59:58.866825"], ["updated_at", "2017-06-26 02:59:58.866825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:59:58.868185"], ["updated_at", "2017-06-26 02:59:58.868185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.892893"], ["updated_at", "2017-06-26 02:59:58.892893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.895342"], ["updated_at", "2017-06-26 02:59:58.895342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:59:58.905198"], ["updated_at", "2017-06-26 02:59:58.905198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.911077"], ["updated_at", "2017-06-26 02:59:58.911077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.918879"], ["updated_at", "2017-06-26 02:59:58.918879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.930175"], ["updated_at", "2017-06-26 02:59:58.930175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.933723"], ["updated_at", "2017-06-26 02:59:58.933723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.934634"], ["updated_at", "2017-06-26 02:59:58.934634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.936519"], ["updated_at", "2017-06-26 02:59:58.936519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.939598"], ["updated_at", "2017-06-26 02:59:58.939598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.940424"], ["updated_at", "2017-06-26 02:59:58.940424"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.951345"], ["updated_at", "2017-06-26 02:59:58.951345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.952195"], ["updated_at", "2017-06-26 02:59:58.952195"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.953984"], ["updated_at", "2017-06-26 02:59:58.953984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.955931"], ["updated_at", "2017-06-26 02:59:58.955931"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.975044"], ["updated_at", "2017-06-26 02:59:58.975044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.981053"], ["updated_at", "2017-06-26 02:59:58.981053"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.982276"], ["updated_at", "2017-06-26 02:59:58.982276"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.983281"], ["updated_at", "2017-06-26 02:59:58.983281"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.985891"], ["updated_at", "2017-06-26 02:59:58.985891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.987950"], ["updated_at", "2017-06-26 02:59:58.987950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.990850"], ["updated_at", "2017-06-26 02:59:58.990850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.994597"], ["updated_at", "2017-06-26 02:59:58.994597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.996652"], ["updated_at", "2017-06-26 02:59:58.996652"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:58.999876"], ["updated_at", "2017-06-26 02:59:58.999876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.004278"], ["updated_at", "2017-06-26 02:59:59.004278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 02:59:59.005136"], ["updated_at", "2017-06-26 02:59:59.005136"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.007651"], ["updated_at", "2017-06-26 02:59:59.007651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.008372"], ["updated_at", "2017-06-26 02:59:59.008372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.018384"], ["updated_at", "2017-06-26 02:59:59.018384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.019419"], ["updated_at", "2017-06-26 02:59:59.019419"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.035153"], ["updated_at", "2017-06-26 02:59:59.035153"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.3ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.037633"], ["updated_at", "2017-06-26 02:59:59.037633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.043176"], ["updated_at", "2017-06-26 02:59:59.043176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.044202"], ["updated_at", "2017-06-26 02:59:59.044202"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 02:59:59.051842"], ["updated_at", "2017-06-26 02:59:59.051842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 02:59:59.065083"], ["updated_at", "2017-06-26 02:59:59.065083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 02:59:59.067833"], ["updated_at", "2017-06-26 02:59:59.067833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 02:59:59.077825"], ["updated_at", "2017-06-26 02:59:59.077825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 02:59:59.079168"], ["updated_at", "2017-06-26 02:59:59.079168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 02:59:59.081544"], ["updated_at", "2017-06-26 02:59:59.081544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 02:59:59.082605"], ["updated_at", "2017-06-26 02:59:59.082605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.086858"], ["updated_at", "2017-06-26 02:59:59.086858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.087576"], ["updated_at", "2017-06-26 02:59:59.087576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.095060"], ["updated_at", "2017-06-26 02:59:59.095060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.096424"], ["updated_at", "2017-06-26 02:59:59.096424"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.3ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.108688"], ["updated_at", "2017-06-26 02:59:59.108688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.114748"], ["updated_at", "2017-06-26 02:59:59.114748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.116159"], ["updated_at", "2017-06-26 02:59:59.116159"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:59:59.119261"], ["updated_at", "2017-06-26 02:59:59.119261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 02:59:59.126318"], ["updated_at", "2017-06-26 02:59:59.126318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.127053"], ["updated_at", "2017-06-26 02:59:59.127053"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.131591"], ["updated_at", "2017-06-26 02:59:59.131591"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.132427"], ["updated_at", "2017-06-26 02:59:59.132427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.133309"], ["updated_at", "2017-06-26 02:59:59.133309"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.135889"], ["updated_at", "2017-06-26 02:59:59.135889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.136668"], ["updated_at", "2017-06-26 02:59:59.136668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.141990"], ["updated_at", "2017-06-26 02:59:59.141990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.149350"], ["updated_at", "2017-06-26 02:59:59.149350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.153007"], ["updated_at", "2017-06-26 02:59:59.153007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.153806"], ["updated_at", "2017-06-26 02:59:59.153806"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.155727"], ["updated_at", "2017-06-26 02:59:59.155727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.159319"], ["updated_at", "2017-06-26 02:59:59.159319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.160098"], ["updated_at", "2017-06-26 02:59:59.160098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.162597"], ["updated_at", "2017-06-26 02:59:59.162597"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.166775"], ["updated_at", "2017-06-26 02:59:59.166775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.167861"], ["updated_at", "2017-06-26 02:59:59.167861"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.170152"], ["updated_at", "2017-06-26 02:59:59.170152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.170817"], ["updated_at", "2017-06-26 02:59:59.170817"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 02:59:59.174790"], ["updated_at", "2017-06-26 02:59:59.174790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 02:59:59.175877"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 02:59:59.177100"], ["updated_at", "2017-06-26 02:59:59.177100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 02:59:59.177981"], ["updated_at", "2017-06-26 02:59:59.177981"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"params"=>{"strong_resource"=>{"id"=>"1"}}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 02:59:59.333657"], ["updated_at", "2017-06-26 02:59:59.333657"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 02:59:59.342856"], ["updated_at", "2017-06-26 02:59:59.342856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 02:59:59.343741"], ["updated_at", "2017-06-26 02:59:59.343741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.376187"], ["updated_at", "2017-06-26 02:59:59.376187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.381118"], ["updated_at", "2017-06-26 02:59:59.381118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.383799"], ["updated_at", "2017-06-26 02:59:59.383799"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 02:59:59.396904"], ["updated_at", "2017-06-26 02:59:59.396904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.734430"], ["updated_at", "2017-06-26 03:00:38.734430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.757343"], ["updated_at", "2017-06-26 03:00:38.757343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.771846"], ["updated_at", "2017-06-26 03:00:38.771846"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.773852"], ["updated_at", "2017-06-26 03:00:38.773852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.774628"], ["updated_at", "2017-06-26 03:00:38.774628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.780463"], ["updated_at", "2017-06-26 03:00:38.780463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.781304"], ["updated_at", "2017-06-26 03:00:38.781304"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.783911"], ["updated_at", "2017-06-26 03:00:38.783911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.788697"], ["updated_at", "2017-06-26 03:00:38.788697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.789533"], ["updated_at", "2017-06-26 03:00:38.789533"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:00:38.795964"], ["updated_at", "2017-06-26 03:00:38.795964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:00:38.808932"], ["updated_at", "2017-06-26 03:00:38.808932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.831611"], ["updated_at", "2017-06-26 03:00:38.831611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.833680"], ["updated_at", "2017-06-26 03:00:38.833680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.836837"], ["updated_at", "2017-06-26 03:00:38.836837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.837675"], ["updated_at", "2017-06-26 03:00:38.837675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.843035"], ["updated_at", "2017-06-26 03:00:38.843035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.844266"], ["updated_at", "2017-06-26 03:00:38.844266"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.847525"], ["updated_at", "2017-06-26 03:00:38.847525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.848449"], ["updated_at", "2017-06-26 03:00:38.848449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:00:38.862854"], ["updated_at", "2017-06-26 03:00:38.862854"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:00:38.864222"], ["updated_at", "2017-06-26 03:00:38.864222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.865145"], ["updated_at", "2017-06-26 03:00:38.865145"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.880732"], ["updated_at", "2017-06-26 03:00:38.880732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:00:38.884192"], ["updated_at", "2017-06-26 03:00:38.884192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:00:38.885074"], ["updated_at", "2017-06-26 03:00:38.885074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:00:38.886745"], ["updated_at", "2017-06-26 03:00:38.886745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:00:38.887568"], ["updated_at", "2017-06-26 03:00:38.887568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.3ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.892142"], ["updated_at", "2017-06-26 03:00:38.892142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.893124"], ["updated_at", "2017-06-26 03:00:38.893124"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:00:38.898592"], ["updated_at", "2017-06-26 03:00:38.898592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:00:38.900990"], ["updated_at", "2017-06-26 03:00:38.900990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.910525"], ["updated_at", "2017-06-26 03:00:38.910525"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.911507"], ["updated_at", "2017-06-26 03:00:38.911507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.924678"], ["updated_at", "2017-06-26 03:00:38.924678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (6.9ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.937402"], ["updated_at", "2017-06-26 03:00:38.937402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.938217"], ["updated_at", "2017-06-26 03:00:38.938217"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.940501"], ["updated_at", "2017-06-26 03:00:38.940501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.941221"], ["updated_at", "2017-06-26 03:00:38.941221"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.943218"], ["updated_at", "2017-06-26 03:00:38.943218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.943889"], ["updated_at", "2017-06-26 03:00:38.943889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.944546"], ["updated_at", "2017-06-26 03:00:38.944546"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.946616"], ["updated_at", "2017-06-26 03:00:38.946616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.947257"], ["updated_at", "2017-06-26 03:00:38.947257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.952945"], ["updated_at", "2017-06-26 03:00:38.952945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.954710"], ["updated_at", "2017-06-26 03:00:38.954710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.958612"], ["updated_at", "2017-06-26 03:00:38.958612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:00:38.964229"], ["updated_at", "2017-06-26 03:00:38.964229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:00:38.965478"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:00:38.966779"], ["updated_at", "2017-06-26 03:00:38.966779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:00:38.967755"], ["updated_at", "2017-06-26 03:00:38.967755"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.974624"], ["updated_at", "2017-06-26 03:00:38.974624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.980187"], ["updated_at", "2017-06-26 03:00:38.980187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.986040"], ["updated_at", "2017-06-26 03:00:38.986040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.987911"], ["updated_at", "2017-06-26 03:00:38.987911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.989599"], ["updated_at", "2017-06-26 03:00:38.989599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.993029"], ["updated_at", "2017-06-26 03:00:38.993029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.996663"], ["updated_at", "2017-06-26 03:00:38.996663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.997483"], ["updated_at", "2017-06-26 03:00:38.997483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:38.998161"], ["updated_at", "2017-06-26 03:00:38.998161"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.000429"], ["updated_at", "2017-06-26 03:00:39.000429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.001172"], ["updated_at", "2017-06-26 03:00:39.001172"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.003612"], ["updated_at", "2017-06-26 03:00:39.003612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:00:39.004350"], ["updated_at", "2017-06-26 03:00:39.004350"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.006634"], ["updated_at", "2017-06-26 03:00:39.006634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.009854"], ["updated_at", "2017-06-26 03:00:39.009854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.011577"], ["updated_at", "2017-06-26 03:00:39.011577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:00:39.014452"], ["updated_at", "2017-06-26 03:00:39.014452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:00:39.015290"], ["updated_at", "2017-06-26 03:00:39.015290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:00:39.016816"], ["updated_at", "2017-06-26 03:00:39.016816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:00:39.017552"], ["updated_at", "2017-06-26 03:00:39.017552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.023871"], ["updated_at", "2017-06-26 03:00:39.023871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.024616"], ["updated_at", "2017-06-26 03:00:39.024616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.026339"], ["updated_at", "2017-06-26 03:00:39.026339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.029584"], ["updated_at", "2017-06-26 03:00:39.029584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.030546"], ["updated_at", "2017-06-26 03:00:39.030546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.032592"], ["updated_at", "2017-06-26 03:00:39.032592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.074297"], ["updated_at", "2017-06-26 03:00:39.074297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.080806"], ["updated_at", "2017-06-26 03:00:39.080806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.083786"], ["updated_at", "2017-06-26 03:00:39.083786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:00:39.097643"], ["updated_at", "2017-06-26 03:00:39.097643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:00:39.102288"], ["updated_at", "2017-06-26 03:00:39.102288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:00:39.103292"], ["updated_at", "2017-06-26 03:00:39.103292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 6], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:00:39.132744"], ["updated_at", "2017-06-26 03:00:39.132744"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.7ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:03:19.678679"], ["updated_at", "2017-06-26 03:03:19.678679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:03:19.681386"], ["updated_at", "2017-06-26 03:03:19.681386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.744132"], ["updated_at", "2017-06-26 03:03:19.744132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 8], ["id", 2]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:03:19.782037"], ["updated_at", "2017-06-26 03:03:19.782037"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.794373"], ["updated_at", "2017-06-26 03:03:19.794373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.799080"], ["updated_at", "2017-06-26 03:03:19.799080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.801599"], ["updated_at", "2017-06-26 03:03:19.801599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.806501"], ["updated_at", "2017-06-26 03:03:19.806501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:03:19.811692"], ["updated_at", "2017-06-26 03:03:19.811692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:03:19.813680"], ["updated_at", "2017-06-26 03:03:19.813680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.823317"], ["updated_at", "2017-06-26 03:03:19.823317"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.824185"], ["updated_at", "2017-06-26 03:03:19.824185"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.826542"], ["updated_at", "2017-06-26 03:03:19.826542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.827287"], ["updated_at", "2017-06-26 03:03:19.827287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.827998"], ["updated_at", "2017-06-26 03:03:19.827998"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.832489"], ["updated_at", "2017-06-26 03:03:19.832489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.836834"], ["updated_at", "2017-06-26 03:03:19.836834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.840721"], ["updated_at", "2017-06-26 03:03:19.840721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.845418"], ["updated_at", "2017-06-26 03:03:19.845418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:03:19.853173"], ["updated_at", "2017-06-26 03:03:19.853173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.863415"], ["updated_at", "2017-06-26 03:03:19.863415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.864183"], ["updated_at", "2017-06-26 03:03:19.864183"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:03:19.866633"], ["updated_at", "2017-06-26 03:03:19.866633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:03:19.867633"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:03:19.868562"], ["updated_at", "2017-06-26 03:03:19.868562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:03:19.869324"], ["updated_at", "2017-06-26 03:03:19.869324"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:03:19.873531"], ["updated_at", "2017-06-26 03:03:19.873531"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:03:19.874666"], ["updated_at", "2017-06-26 03:03:19.874666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:03:19.876597"], ["updated_at", "2017-06-26 03:03:19.876597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:03:19.877353"], ["updated_at", "2017-06-26 03:03:19.877353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.883677"], ["updated_at", "2017-06-26 03:03:19.883677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.888375"], ["updated_at", "2017-06-26 03:03:19.888375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.889132"], ["updated_at", "2017-06-26 03:03:19.889132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.891261"], ["updated_at", "2017-06-26 03:03:19.891261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.896831"], ["updated_at", "2017-06-26 03:03:19.896831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.897671"], ["updated_at", "2017-06-26 03:03:19.897671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.898426"], ["updated_at", "2017-06-26 03:03:19.898426"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.900748"], ["updated_at", "2017-06-26 03:03:19.900748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.901451"], ["updated_at", "2017-06-26 03:03:19.901451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.903231"], ["updated_at", "2017-06-26 03:03:19.903231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.906956"], ["updated_at", "2017-06-26 03:03:19.906956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:03:19.907852"], ["updated_at", "2017-06-26 03:03:19.907852"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.926065"], ["updated_at", "2017-06-26 03:03:19.926065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.930862"], ["updated_at", "2017-06-26 03:03:19.930862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.931725"], ["updated_at", "2017-06-26 03:03:19.931725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.937697"], ["updated_at", "2017-06-26 03:03:19.937697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.938550"], ["updated_at", "2017-06-26 03:03:19.938550"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.941098"], ["updated_at", "2017-06-26 03:03:19.941098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.943008"], ["updated_at", "2017-06-26 03:03:19.943008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.945776"], ["updated_at", "2017-06-26 03:03:19.945776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.946486"], ["updated_at", "2017-06-26 03:03:19.946486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.950883"], ["updated_at", "2017-06-26 03:03:19.950883"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.951767"], ["updated_at", "2017-06-26 03:03:19.951767"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.954545"], ["updated_at", "2017-06-26 03:03:19.954545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:03:19.961196"], ["updated_at", "2017-06-26 03:03:19.961196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.965022"], ["updated_at", "2017-06-26 03:03:19.965022"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.966840"], ["updated_at", "2017-06-26 03:03:19.966840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.971003"], ["updated_at", "2017-06-26 03:03:19.971003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.972918"], ["updated_at", "2017-06-26 03:03:19.972918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.974895"], ["updated_at", "2017-06-26 03:03:19.974895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.978643"], ["updated_at", "2017-06-26 03:03:19.978643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.983254"], ["updated_at", "2017-06-26 03:03:19.983254"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.985299"], ["updated_at", "2017-06-26 03:03:19.985299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.988017"], ["updated_at", "2017-06-26 03:03:19.988017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.988707"], ["updated_at", "2017-06-26 03:03:19.988707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:03:19.996780"], ["updated_at", "2017-06-26 03:03:19.996780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:03:19.997548"], ["updated_at", "2017-06-26 03:03:19.997548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:19.998246"], ["updated_at", "2017-06-26 03:03:19.998246"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.002065"], ["updated_at", "2017-06-26 03:03:20.002065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.002817"], ["updated_at", "2017-06-26 03:03:20.002817"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.005600"], ["updated_at", "2017-06-26 03:03:20.005600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.006506"], ["updated_at", "2017-06-26 03:03:20.006506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.017288"], ["updated_at", "2017-06-26 03:03:20.017288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.019062"], ["updated_at", "2017-06-26 03:03:20.019062"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.029599"], ["updated_at", "2017-06-26 03:03:20.029599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.030347"], ["updated_at", "2017-06-26 03:03:20.030347"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:03:20.031972"], ["updated_at", "2017-06-26 03:03:20.031972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:03:20.033069"], ["updated_at", "2017-06-26 03:03:20.033069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:03:20.034645"], ["updated_at", "2017-06-26 03:03:20.034645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:03:20.035470"], ["updated_at", "2017-06-26 03:03:20.035470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.038553"], ["updated_at", "2017-06-26 03:03:20.038553"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.040053"], ["updated_at", "2017-06-26 03:03:20.040053"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.042641"], ["updated_at", "2017-06-26 03:03:20.042641"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:03:20.043579"], ["updated_at", "2017-06-26 03:03:20.043579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.289967"], ["updated_at", "2017-06-26 03:05:37.289967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:05:37.313771"], ["updated_at", "2017-06-26 03:05:37.313771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:05:37.314966"], ["updated_at", "2017-06-26 03:05:37.314966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:05:37.318181"], ["updated_at", "2017-06-26 03:05:37.318181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:05:37.319021"], ["updated_at", "2017-06-26 03:05:37.319021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.322584"], ["updated_at", "2017-06-26 03:05:37.322584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.323447"], ["updated_at", "2017-06-26 03:05:37.323447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.338091"], ["updated_at", "2017-06-26 03:05:37.338091"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.342110"], ["updated_at", "2017-06-26 03:05:37.342110"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.346427"], ["updated_at", "2017-06-26 03:05:37.346427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.347334"], ["updated_at", "2017-06-26 03:05:37.347334"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.349830"], ["updated_at", "2017-06-26 03:05:37.349830"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.353400"], ["updated_at", "2017-06-26 03:05:37.353400"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.354131"], ["updated_at", "2017-06-26 03:05:37.354131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.364292"], ["updated_at", "2017-06-26 03:05:37.364292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.365388"], ["updated_at", "2017-06-26 03:05:37.365388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.372026"], ["updated_at", "2017-06-26 03:05:37.372026"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.374376"], ["updated_at", "2017-06-26 03:05:37.374376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.375307"], ["updated_at", "2017-06-26 03:05:37.375307"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.378348"], ["updated_at", "2017-06-26 03:05:37.378348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.385223"], ["updated_at", "2017-06-26 03:05:37.385223"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.390940"], ["updated_at", "2017-06-26 03:05:37.390940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.391846"], ["updated_at", "2017-06-26 03:05:37.391846"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.394787"], ["updated_at", "2017-06-26 03:05:37.394787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.395636"], ["updated_at", "2017-06-26 03:05:37.395636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.396381"], ["updated_at", "2017-06-26 03:05:37.396381"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.399247"], ["updated_at", "2017-06-26 03:05:37.399247"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.400009"], ["updated_at", "2017-06-26 03:05:37.400009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.401938"], ["updated_at", "2017-06-26 03:05:37.401938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.405055"], ["updated_at", "2017-06-26 03:05:37.405055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.409785"], ["updated_at", "2017-06-26 03:05:37.409785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.410681"], ["updated_at", "2017-06-26 03:05:37.410681"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.416817"], ["updated_at", "2017-06-26 03:05:37.416817"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.423099"], ["updated_at", "2017-06-26 03:05:37.423099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.424284"], ["updated_at", "2017-06-26 03:05:37.424284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.426468"], ["updated_at", "2017-06-26 03:05:37.426468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.431025"], ["updated_at", "2017-06-26 03:05:37.431025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.432145"], ["updated_at", "2017-06-26 03:05:37.432145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:05:37.438808"], ["updated_at", "2017-06-26 03:05:37.438808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:05:37.441369"], ["updated_at", "2017-06-26 03:05:37.441369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:05:37.455267"], ["updated_at", "2017-06-26 03:05:37.455267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:05:37.457194"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:05:37.458683"], ["updated_at", "2017-06-26 03:05:37.458683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:05:37.459715"], ["updated_at", "2017-06-26 03:05:37.459715"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:05:37.465405"], ["updated_at", "2017-06-26 03:05:37.465405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.487168"], ["updated_at", "2017-06-26 03:05:37.487168"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:05:37.493049"], ["updated_at", "2017-06-26 03:05:37.493049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:05:37.494380"], ["updated_at", "2017-06-26 03:05:37.494380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:05:37.496885"], ["updated_at", "2017-06-26 03:05:37.496885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:05:37.497907"], ["updated_at", "2017-06-26 03:05:37.497907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.506239"], ["updated_at", "2017-06-26 03:05:37.506239"]]  (6.4ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.513428"], ["updated_at", "2017-06-26 03:05:37.513428"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.516401"], ["updated_at", "2017-06-26 03:05:37.516401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.520852"], ["updated_at", "2017-06-26 03:05:37.520852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.521669"], ["updated_at", "2017-06-26 03:05:37.521669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:05:37.532537"], ["updated_at", "2017-06-26 03:05:37.532537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.538178"], ["updated_at", "2017-06-26 03:05:37.538178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.540040"], ["updated_at", "2017-06-26 03:05:37.540040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.541898"], ["updated_at", "2017-06-26 03:05:37.541898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.545215"], ["updated_at", "2017-06-26 03:05:37.545215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:05:37.546107"], ["updated_at", "2017-06-26 03:05:37.546107"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.548414"], ["updated_at", "2017-06-26 03:05:37.548414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.549104"], ["updated_at", "2017-06-26 03:05:37.549104"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.554069"], ["updated_at", "2017-06-26 03:05:37.554069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.554777"], ["updated_at", "2017-06-26 03:05:37.554777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.555452"], ["updated_at", "2017-06-26 03:05:37.555452"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.557514"], ["updated_at", "2017-06-26 03:05:37.557514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.559613"], ["updated_at", "2017-06-26 03:05:37.559613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.562762"], ["updated_at", "2017-06-26 03:05:37.562762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.563471"], ["updated_at", "2017-06-26 03:05:37.563471"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.574524"], ["updated_at", "2017-06-26 03:05:37.574524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.576365"], ["updated_at", "2017-06-26 03:05:37.576365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.585972"], ["updated_at", "2017-06-26 03:05:37.585972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.587658"], ["updated_at", "2017-06-26 03:05:37.587658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:05:37.593729"], ["updated_at", "2017-06-26 03:05:37.593729"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:05:37.594766"], ["updated_at", "2017-06-26 03:05:37.594766"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.595607"], ["updated_at", "2017-06-26 03:05:37.595607"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:05:37.704131"], ["updated_at", "2017-06-26 03:05:37.704131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:05:37.704990"], ["updated_at", "2017-06-26 03:05:37.704990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.720303"], ["updated_at", "2017-06-26 03:05:37.720303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.725194"], ["updated_at", "2017-06-26 03:05:37.725194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.727624"], ["updated_at", "2017-06-26 03:05:37.727624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:05:37.746384"], ["updated_at", "2017-06-26 03:05:37.746384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:05:37.750216"], ["updated_at", "2017-06-26 03:05:37.750216"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:41.910765"], ["updated_at", "2017-06-26 03:06:41.910765"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:41.920435"], ["updated_at", "2017-06-26 03:06:41.920435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:41.924305"], ["updated_at", "2017-06-26 03:06:41.924305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:06:41.934550"], ["updated_at", "2017-06-26 03:06:41.934550"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:06:41.938634"], ["updated_at", "2017-06-26 03:06:41.938634"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:06:41.939613"], ["updated_at", "2017-06-26 03:06:41.939613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.2ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:41.990744"], ["updated_at", "2017-06-26 03:06:41.990744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:06:42.000093"], ["updated_at", "2017-06-26 03:06:42.000093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:06:42.002921"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:06:42.004605"], ["updated_at", "2017-06-26 03:06:42.004605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:06:42.005642"], ["updated_at", "2017-06-26 03:06:42.005642"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.010571"], ["updated_at", "2017-06-26 03:06:42.010571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.011604"], ["updated_at", "2017-06-26 03:06:42.011604"]]  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.014675"], ["updated_at", "2017-06-26 03:06:42.014675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.017188"], ["updated_at", "2017-06-26 03:06:42.017188"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.019533"], ["updated_at", "2017-06-26 03:06:42.019533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.022932"], ["updated_at", "2017-06-26 03:06:42.022932"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.023756"], ["updated_at", "2017-06-26 03:06:42.023756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.024564"], ["updated_at", "2017-06-26 03:06:42.024564"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.027562"], ["updated_at", "2017-06-26 03:06:42.027562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.028536"], ["updated_at", "2017-06-26 03:06:42.028536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.034779"], ["updated_at", "2017-06-26 03:06:42.034779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.035738"], ["updated_at", "2017-06-26 03:06:42.035738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.047176"], ["updated_at", "2017-06-26 03:06:42.047176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.048122"], ["updated_at", "2017-06-26 03:06:42.048122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.055572"], ["updated_at", "2017-06-26 03:06:42.055572"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.065673"], ["updated_at", "2017-06-26 03:06:42.065673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.066549"], ["updated_at", "2017-06-26 03:06:42.066549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.068644"], ["updated_at", "2017-06-26 03:06:42.068644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.072672"], ["updated_at", "2017-06-26 03:06:42.072672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.077730"], ["updated_at", "2017-06-26 03:06:42.077730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.078593"], ["updated_at", "2017-06-26 03:06:42.078593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.080637"], ["updated_at", "2017-06-26 03:06:42.080637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.083836"], ["updated_at", "2017-06-26 03:06:42.083836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.084586"], ["updated_at", "2017-06-26 03:06:42.084586"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:06:42.087091"], ["updated_at", "2017-06-26 03:06:42.087091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:06:42.087887"], ["updated_at", "2017-06-26 03:06:42.087887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:06:42.089796"], ["updated_at", "2017-06-26 03:06:42.089796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:06:42.090566"], ["updated_at", "2017-06-26 03:06:42.090566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:06:42.094195"], ["updated_at", "2017-06-26 03:06:42.094195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:06:42.095076"], ["updated_at", "2017-06-26 03:06:42.095076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:06:42.096587"], ["updated_at", "2017-06-26 03:06:42.096587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:06:42.097447"], ["updated_at", "2017-06-26 03:06:42.097447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:06:42.119339"], ["updated_at", "2017-06-26 03:06:42.119339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:06:42.120793"], ["updated_at", "2017-06-26 03:06:42.120793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.121860"], ["updated_at", "2017-06-26 03:06:42.121860"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.124216"], ["updated_at", "2017-06-26 03:06:42.124216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.131177"], ["updated_at", "2017-06-26 03:06:42.131177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.133200"], ["updated_at", "2017-06-26 03:06:42.133200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.136191"], ["updated_at", "2017-06-26 03:06:42.136191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.136899"], ["updated_at", "2017-06-26 03:06:42.136899"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.139216"], ["updated_at", "2017-06-26 03:06:42.139216"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.141264"], ["updated_at", "2017-06-26 03:06:42.141264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.144468"], ["updated_at", "2017-06-26 03:06:42.144468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.145239"], ["updated_at", "2017-06-26 03:06:42.145239"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.147161"], ["updated_at", "2017-06-26 03:06:42.147161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:06:42.147934"], ["updated_at", "2017-06-26 03:06:42.147934"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.152203"], ["updated_at", "2017-06-26 03:06:42.152203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.152988"], ["updated_at", "2017-06-26 03:06:42.152988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.162695"], ["updated_at", "2017-06-26 03:06:42.162695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:06:42.168139"], ["updated_at", "2017-06-26 03:06:42.168139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:06:42.170802"], ["updated_at", "2017-06-26 03:06:42.170802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:06:42.183373"], ["updated_at", "2017-06-26 03:06:42.183373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.194886"], ["updated_at", "2017-06-26 03:06:42.194886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.195868"], ["updated_at", "2017-06-26 03:06:42.195868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.211874"], ["updated_at", "2017-06-26 03:06:42.211874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.214384"], ["updated_at", "2017-06-26 03:06:42.214384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.217921"], ["updated_at", "2017-06-26 03:06:42.217921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.218660"], ["updated_at", "2017-06-26 03:06:42.218660"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.220595"], ["updated_at", "2017-06-26 03:06:42.220595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.225477"], ["updated_at", "2017-06-26 03:06:42.225477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.233248"], ["updated_at", "2017-06-26 03:06:42.233248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.233994"], ["updated_at", "2017-06-26 03:06:42.233994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.234701"], ["updated_at", "2017-06-26 03:06:42.234701"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.237108"], ["updated_at", "2017-06-26 03:06:42.237108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.241263"], ["updated_at", "2017-06-26 03:06:42.241263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:06:42.248102"], ["updated_at", "2017-06-26 03:06:42.248102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.252611"], ["updated_at", "2017-06-26 03:06:42.252611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.258369"], ["updated_at", "2017-06-26 03:06:42.258369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.268304"], ["updated_at", "2017-06-26 03:06:42.268304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.272228"], ["updated_at", "2017-06-26 03:06:42.272228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.272992"], ["updated_at", "2017-06-26 03:06:42.272992"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.275403"], ["updated_at", "2017-06-26 03:06:42.275403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:06:42.276456"], ["updated_at", "2017-06-26 03:06:42.276456"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.3ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:02.529403"], ["updated_at", "2017-06-26 03:07:02.529403"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:07:02.550839"], ["updated_at", "2017-06-26 03:07:02.550839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:07:02.552477"], ["updated_at", "2017-06-26 03:07:02.552477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:02.599015"], ["updated_at", "2017-06-26 03:07:02.599015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:02.605311"], ["updated_at", "2017-06-26 03:07:02.605311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:02.608320"], ["updated_at", "2017-06-26 03:07:02.608320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:07:02.614687"], ["updated_at", "2017-06-26 03:07:02.614687"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:02.976032"], ["updated_at", "2017-06-26 03:07:02.976032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:02.977299"], ["updated_at", "2017-06-26 03:07:02.977299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 3)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:02.989150"], ["updated_at", "2017-06-26 03:07:02.989150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:02.990206"], ["updated_at", "2017-06-26 03:07:02.990206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:02.991191"], ["updated_at", "2017-06-26 03:07:02.991191"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:07:02.994068"], ["updated_at", "2017-06-26 03:07:02.994068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:07:02.995228"], ["updated_at", "2017-06-26 03:07:02.995228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:07:02.997514"], ["updated_at", "2017-06-26 03:07:02.997514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:07:02.998537"], ["updated_at", "2017-06-26 03:07:02.998537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:07:03.004982"], ["updated_at", "2017-06-26 03:07:03.004982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:07:03.006103"], ["updated_at", "2017-06-26 03:07:03.006103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.006781"], ["updated_at", "2017-06-26 03:07:03.006781"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.009396"], ["updated_at", "2017-06-26 03:07:03.009396"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.015315"], ["updated_at", "2017-06-26 03:07:03.015315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.021110"], ["updated_at", "2017-06-26 03:07:03.021110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.030086"], ["updated_at", "2017-06-26 03:07:03.030086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.040098"], ["updated_at", "2017-06-26 03:07:03.040098"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.043722"], ["updated_at", "2017-06-26 03:07:03.043722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:07:03.050609"], ["updated_at", "2017-06-26 03:07:03.050609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.054794"], ["updated_at", "2017-06-26 03:07:03.054794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.055688"], ["updated_at", "2017-06-26 03:07:03.055688"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.057622"], ["updated_at", "2017-06-26 03:07:03.057622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.062702"], ["updated_at", "2017-06-26 03:07:03.062702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.063429"], ["updated_at", "2017-06-26 03:07:03.063429"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.066118"], ["updated_at", "2017-06-26 03:07:03.066118"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:07:03.068116"], ["updated_at", "2017-06-26 03:07:03.068116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:07:03.068931"], ["updated_at", "2017-06-26 03:07:03.068931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:07:03.070613"], ["updated_at", "2017-06-26 03:07:03.070613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:07:03.071417"], ["updated_at", "2017-06-26 03:07:03.071417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:07:03.078524"], ["updated_at", "2017-06-26 03:07:03.078524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:07:03.080994"], ["updated_at", "2017-06-26 03:07:03.080994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.103386"], ["updated_at", "2017-06-26 03:07:03.103386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.104252"], ["updated_at", "2017-06-26 03:07:03.104252"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.106876"], ["updated_at", "2017-06-26 03:07:03.106876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.107695"], ["updated_at", "2017-06-26 03:07:03.107695"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.110089"], ["updated_at", "2017-06-26 03:07:03.110089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.113606"], ["updated_at", "2017-06-26 03:07:03.113606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.114442"], ["updated_at", "2017-06-26 03:07:03.114442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.120938"], ["updated_at", "2017-06-26 03:07:03.120938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.121712"], ["updated_at", "2017-06-26 03:07:03.121712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.126758"], ["updated_at", "2017-06-26 03:07:03.126758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.127535"], ["updated_at", "2017-06-26 03:07:03.127535"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.129753"], ["updated_at", "2017-06-26 03:07:03.129753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.133567"], ["updated_at", "2017-06-26 03:07:03.133567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.134387"], ["updated_at", "2017-06-26 03:07:03.134387"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.136367"], ["updated_at", "2017-06-26 03:07:03.136367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.137041"], ["updated_at", "2017-06-26 03:07:03.137041"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.141441"], ["updated_at", "2017-06-26 03:07:03.141441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.142220"], ["updated_at", "2017-06-26 03:07:03.142220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.150507"], ["updated_at", "2017-06-26 03:07:03.150507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:07:03.151448"], ["updated_at", "2017-06-26 03:07:03.151448"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:07:03.158071"], ["updated_at", "2017-06-26 03:07:03.158071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.168874"], ["updated_at", "2017-06-26 03:07:03.168874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.169733"], ["updated_at", "2017-06-26 03:07:03.169733"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.171684"], ["updated_at", "2017-06-26 03:07:03.171684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.172414"], ["updated_at", "2017-06-26 03:07:03.172414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.173130"], ["updated_at", "2017-06-26 03:07:03.173130"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.175657"], ["updated_at", "2017-06-26 03:07:03.175657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.180131"], ["updated_at", "2017-06-26 03:07:03.180131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.181077"], ["updated_at", "2017-06-26 03:07:03.181077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.190770"], ["updated_at", "2017-06-26 03:07:03.190770"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.197304"], ["updated_at", "2017-06-26 03:07:03.197304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.202567"], ["updated_at", "2017-06-26 03:07:03.202567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.211498"], ["updated_at", "2017-06-26 03:07:03.211498"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.225614"], ["updated_at", "2017-06-26 03:07:03.225614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.227902"], ["updated_at", "2017-06-26 03:07:03.227902"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.229921"], ["updated_at", "2017-06-26 03:07:03.229921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.233079"], ["updated_at", "2017-06-26 03:07:03.233079"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.233971"], ["updated_at", "2017-06-26 03:07:03.233971"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (3.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:07:03.240147"], ["updated_at", "2017-06-26 03:07:03.240147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:07:03.241382"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:07:03.242571"], ["updated_at", "2017-06-26 03:07:03.242571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:07:03.243381"], ["updated_at", "2017-06-26 03:07:03.243381"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.247047"], ["updated_at", "2017-06-26 03:07:03.247047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.249322"], ["updated_at", "2017-06-26 03:07:03.249322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.252771"], ["updated_at", "2017-06-26 03:07:03.252771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:03.254648"], ["updated_at", "2017-06-26 03:07:03.254648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:07:38.736764"], ["updated_at", "2017-06-26 03:07:38.736764"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:38.813315"], ["updated_at", "2017-06-26 03:07:38.813315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:07:38.819721"], ["updated_at", "2017-06-26 03:07:38.819721"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:07:38.820677"], ["updated_at", "2017-06-26 03:07:38.820677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:38.841719"], ["updated_at", "2017-06-26 03:07:38.841719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:38.848275"], ["updated_at", "2017-06-26 03:07:38.848275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:38.851843"], ["updated_at", "2017-06-26 03:07:38.851843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.015072"], ["updated_at", "2017-06-26 03:07:39.015072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.016072"], ["updated_at", "2017-06-26 03:07:39.016072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.016820"], ["updated_at", "2017-06-26 03:07:39.016820"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.020370"], ["updated_at", "2017-06-26 03:07:39.020370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.026389"], ["updated_at", "2017-06-26 03:07:39.026389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.032448"], ["updated_at", "2017-06-26 03:07:39.032448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.034534"], ["updated_at", "2017-06-26 03:07:39.034534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.037894"], ["updated_at", "2017-06-26 03:07:39.037894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.041578"], ["updated_at", "2017-06-26 03:07:39.041578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.042279"], ["updated_at", "2017-06-26 03:07:39.042279"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.044413"], ["updated_at", "2017-06-26 03:07:39.044413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.045101"], ["updated_at", "2017-06-26 03:07:39.045101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.053745"], ["updated_at", "2017-06-26 03:07:39.053745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.054483"], ["updated_at", "2017-06-26 03:07:39.054483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.060883"], ["updated_at", "2017-06-26 03:07:39.060883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:07:39.061798"], ["updated_at", "2017-06-26 03:07:39.061798"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.064169"], ["updated_at", "2017-06-26 03:07:39.064169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.064928"], ["updated_at", "2017-06-26 03:07:39.064928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.066901"], ["updated_at", "2017-06-26 03:07:39.066901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.069836"], ["updated_at", "2017-06-26 03:07:39.069836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.071610"], ["updated_at", "2017-06-26 03:07:39.071610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:07:39.078288"], ["updated_at", "2017-06-26 03:07:39.078288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:07:39.080468"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:07:39.081532"], ["updated_at", "2017-06-26 03:07:39.081532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:07:39.082313"], ["updated_at", "2017-06-26 03:07:39.082313"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.085568"], ["updated_at", "2017-06-26 03:07:39.085568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.090534"], ["updated_at", "2017-06-26 03:07:39.090534"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.096485"], ["updated_at", "2017-06-26 03:07:39.096485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.097571"], ["updated_at", "2017-06-26 03:07:39.097571"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:07:39.122396"], ["updated_at", "2017-06-26 03:07:39.122396"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:07:39.123248"], ["updated_at", "2017-06-26 03:07:39.123248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:07:39.124838"], ["updated_at", "2017-06-26 03:07:39.124838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:07:39.125653"], ["updated_at", "2017-06-26 03:07:39.125653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:07:39.129081"], ["updated_at", "2017-06-26 03:07:39.129081"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:07:39.130384"], ["updated_at", "2017-06-26 03:07:39.130384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:07:39.132159"], ["updated_at", "2017-06-26 03:07:39.132159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:07:39.132926"], ["updated_at", "2017-06-26 03:07:39.132926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.141036"], ["updated_at", "2017-06-26 03:07:39.141036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.141876"], ["updated_at", "2017-06-26 03:07:39.141876"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.143865"], ["updated_at", "2017-06-26 03:07:39.143865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.146012"], ["updated_at", "2017-06-26 03:07:39.146012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.148229"], ["updated_at", "2017-06-26 03:07:39.148229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.151679"], ["updated_at", "2017-06-26 03:07:39.151679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.153636"], ["updated_at", "2017-06-26 03:07:39.153636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:07:39.156722"], ["updated_at", "2017-06-26 03:07:39.156722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:07:39.157475"], ["updated_at", "2017-06-26 03:07:39.157475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.158167"], ["updated_at", "2017-06-26 03:07:39.158167"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:07:39.160326"], ["updated_at", "2017-06-26 03:07:39.160326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:07:39.162543"], ["updated_at", "2017-06-26 03:07:39.162543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.170340"], ["updated_at", "2017-06-26 03:07:39.170340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.171096"], ["updated_at", "2017-06-26 03:07:39.171096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.175345"], ["updated_at", "2017-06-26 03:07:39.175345"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.184304"], ["updated_at", "2017-06-26 03:07:39.184304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.192226"], ["updated_at", "2017-06-26 03:07:39.192226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.193136"], ["updated_at", "2017-06-26 03:07:39.193136"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.195621"], ["updated_at", "2017-06-26 03:07:39.195621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.196379"], ["updated_at", "2017-06-26 03:07:39.196379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.197045"], ["updated_at", "2017-06-26 03:07:39.197045"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.199324"], ["updated_at", "2017-06-26 03:07:39.199324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.200023"], ["updated_at", "2017-06-26 03:07:39.200023"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:07:39.204541"], ["updated_at", "2017-06-26 03:07:39.204541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:07:39.210193"], ["updated_at", "2017-06-26 03:07:39.210193"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.220207"], ["updated_at", "2017-06-26 03:07:39.220207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.226568"], ["updated_at", "2017-06-26 03:07:39.226568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.232087"], ["updated_at", "2017-06-26 03:07:39.232087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.232924"], ["updated_at", "2017-06-26 03:07:39.232924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.245100"], ["updated_at", "2017-06-26 03:07:39.245100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.246011"], ["updated_at", "2017-06-26 03:07:39.246011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.248089"], ["updated_at", "2017-06-26 03:07:39.248089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.251592"], ["updated_at", "2017-06-26 03:07:39.251592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.255376"], ["updated_at", "2017-06-26 03:07:39.255376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.256196"], ["updated_at", "2017-06-26 03:07:39.256196"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.258698"], ["updated_at", "2017-06-26 03:07:39.258698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.259611"], ["updated_at", "2017-06-26 03:07:39.259611"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.261903"], ["updated_at", "2017-06-26 03:07:39.261903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.262728"], ["updated_at", "2017-06-26 03:07:39.262728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:39.268754"], ["updated_at", "2017-06-26 03:07:39.268754"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.707838"], ["updated_at", "2017-06-26 03:07:43.707838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.772231"], ["updated_at", "2017-06-26 03:07:43.772231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.776992"], ["updated_at", "2017-06-26 03:07:43.776992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.779275"], ["updated_at", "2017-06-26 03:07:43.779275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:07:43.787760"], ["updated_at", "2017-06-26 03:07:43.787760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:07:43.788670"], ["updated_at", "2017-06-26 03:07:43.788670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:07:43.818763"], ["updated_at", "2017-06-26 03:07:43.818763"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:07:43.927883"], ["updated_at", "2017-06-26 03:07:43.927883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.941756"], ["updated_at", "2017-06-26 03:07:43.941756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.943027"], ["updated_at", "2017-06-26 03:07:43.943027"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:07:43.949450"], ["updated_at", "2017-06-26 03:07:43.949450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.4ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:07:43.954676"], ["updated_at", "2017-06-26 03:07:43.954676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:07:43.955469"], ["updated_at", "2017-06-26 03:07:43.955469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:07:43.957572"], ["updated_at", "2017-06-26 03:07:43.957572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:07:43.958388"], ["updated_at", "2017-06-26 03:07:43.958388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.962078"], ["updated_at", "2017-06-26 03:07:43.962078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.963075"], ["updated_at", "2017-06-26 03:07:43.963075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.965337"], ["updated_at", "2017-06-26 03:07:43.965337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.3ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.988303"], ["updated_at", "2017-06-26 03:07:43.988303"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.993479"], ["updated_at", "2017-06-26 03:07:43.993479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:43.994410"], ["updated_at", "2017-06-26 03:07:43.994410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:07:44.004518"], ["updated_at", "2017-06-26 03:07:44.004518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:07:44.006951"], ["updated_at", "2017-06-26 03:07:44.006951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.024194"], ["updated_at", "2017-06-26 03:07:44.024194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.025095"], ["updated_at", "2017-06-26 03:07:44.025095"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.026769"], ["updated_at", "2017-06-26 03:07:44.026769"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.029080"], ["updated_at", "2017-06-26 03:07:44.029080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.033320"], ["updated_at", "2017-06-26 03:07:44.033320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.034035"], ["updated_at", "2017-06-26 03:07:44.034035"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.042208"], ["updated_at", "2017-06-26 03:07:44.042208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.043947"], ["updated_at", "2017-06-26 03:07:44.043947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.046701"], ["updated_at", "2017-06-26 03:07:44.046701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.048752"], ["updated_at", "2017-06-26 03:07:44.048752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.052016"], ["updated_at", "2017-06-26 03:07:44.052016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.052712"], ["updated_at", "2017-06-26 03:07:44.052712"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.054312"], ["updated_at", "2017-06-26 03:07:44.054312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.054978"], ["updated_at", "2017-06-26 03:07:44.054978"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.058668"], ["updated_at", "2017-06-26 03:07:44.058668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:07:44.062669"], ["updated_at", "2017-06-26 03:07:44.062669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:07:44.063473"], ["updated_at", "2017-06-26 03:07:44.063473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.064195"], ["updated_at", "2017-06-26 03:07:44.064195"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.065921"], ["updated_at", "2017-06-26 03:07:44.065921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.066660"], ["updated_at", "2017-06-26 03:07:44.066660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.068642"], ["updated_at", "2017-06-26 03:07:44.068642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.071685"], ["updated_at", "2017-06-26 03:07:44.071685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.076128"], ["updated_at", "2017-06-26 03:07:44.076128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.079762"], ["updated_at", "2017-06-26 03:07:44.079762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.086067"], ["updated_at", "2017-06-26 03:07:44.086067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.086879"], ["updated_at", "2017-06-26 03:07:44.086879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.087583"], ["updated_at", "2017-06-26 03:07:44.087583"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:07:44.090632"], ["updated_at", "2017-06-26 03:07:44.090632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:07:44.091803"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:07:44.092732"], ["updated_at", "2017-06-26 03:07:44.092732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:07:44.093470"], ["updated_at", "2017-06-26 03:07:44.093470"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.097735"], ["updated_at", "2017-06-26 03:07:44.097735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.098592"], ["updated_at", "2017-06-26 03:07:44.098592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.103804"], ["updated_at", "2017-06-26 03:07:44.103804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.105555"], ["updated_at", "2017-06-26 03:07:44.105555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.108347"], ["updated_at", "2017-06-26 03:07:44.108347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.109017"], ["updated_at", "2017-06-26 03:07:44.109017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.113516"], ["updated_at", "2017-06-26 03:07:44.113516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.115411"], ["updated_at", "2017-06-26 03:07:44.115411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.117063"], ["updated_at", "2017-06-26 03:07:44.117063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.120424"], ["updated_at", "2017-06-26 03:07:44.120424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:07:44.121271"], ["updated_at", "2017-06-26 03:07:44.121271"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.124192"], ["updated_at", "2017-06-26 03:07:44.124192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.127973"], ["updated_at", "2017-06-26 03:07:44.127973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.128987"], ["updated_at", "2017-06-26 03:07:44.128987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.137184"], ["updated_at", "2017-06-26 03:07:44.137184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.137935"], ["updated_at", "2017-06-26 03:07:44.137935"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.142296"], ["updated_at", "2017-06-26 03:07:44.142296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.143052"], ["updated_at", "2017-06-26 03:07:44.143052"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.145121"], ["updated_at", "2017-06-26 03:07:44.145121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.150477"], ["updated_at", "2017-06-26 03:07:44.150477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.165901"], ["updated_at", "2017-06-26 03:07:44.165901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.166666"], ["updated_at", "2017-06-26 03:07:44.166666"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.169028"], ["updated_at", "2017-06-26 03:07:44.169028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.169731"], ["updated_at", "2017-06-26 03:07:44.169731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.170366"], ["updated_at", "2017-06-26 03:07:44.170366"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:07:44.172998"], ["updated_at", "2017-06-26 03:07:44.172998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:07:44.177866"], ["updated_at", "2017-06-26 03:07:44.177866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:07:44.178626"], ["updated_at", "2017-06-26 03:07:44.178626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:07:44.180362"], ["updated_at", "2017-06-26 03:07:44.180362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:07:44.181168"], ["updated_at", "2017-06-26 03:07:44.181168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.397363"], ["updated_at", "2017-06-26 03:10:19.397363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.400694"], ["updated_at", "2017-06-26 03:10:19.400694"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.425175"], ["updated_at", "2017-06-26 03:10:19.425175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.438321"], ["updated_at", "2017-06-26 03:10:19.438321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.442298"], ["updated_at", "2017-06-26 03:10:19.442298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.447990"], ["updated_at", "2017-06-26 03:10:19.447990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.450057"], ["updated_at", "2017-06-26 03:10:19.450057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.453682"], ["updated_at", "2017-06-26 03:10:19.453682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.458433"], ["updated_at", "2017-06-26 03:10:19.458433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.459426"], ["updated_at", "2017-06-26 03:10:19.459426"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:10:19.461802"], ["updated_at", "2017-06-26 03:10:19.461802"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:10:19.462885"], ["updated_at", "2017-06-26 03:10:19.462885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:10:19.465068"], ["updated_at", "2017-06-26 03:10:19.465068"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:10:19.465884"], ["updated_at", "2017-06-26 03:10:19.465884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:10:19.476961"], ["updated_at", "2017-06-26 03:10:19.476961"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.482927"], ["updated_at", "2017-06-26 03:10:19.482927"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.483988"], ["updated_at", "2017-06-26 03:10:19.483988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.497886"], ["updated_at", "2017-06-26 03:10:19.497886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.500184"], ["updated_at", "2017-06-26 03:10:19.500184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.503026"], ["updated_at", "2017-06-26 03:10:19.503026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.503730"], ["updated_at", "2017-06-26 03:10:19.503730"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.505997"], ["updated_at", "2017-06-26 03:10:19.505997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.506825"], ["updated_at", "2017-06-26 03:10:19.506825"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.4ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.520214"], ["updated_at", "2017-06-26 03:10:19.520214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:10:19.521191"], ["updated_at", "2017-06-26 03:10:19.521191"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.524458"], ["updated_at", "2017-06-26 03:10:19.524458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.533558"], ["updated_at", "2017-06-26 03:10:19.533558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.534878"], ["updated_at", "2017-06-26 03:10:19.534878"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.538899"], ["updated_at", "2017-06-26 03:10:19.538899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.546043"], ["updated_at", "2017-06-26 03:10:19.546043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.564615"], ["updated_at", "2017-06-26 03:10:19.564615"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.565563"], ["updated_at", "2017-06-26 03:10:19.565563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:10:19.579004"], ["updated_at", "2017-06-26 03:10:19.579004"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.594254"], ["updated_at", "2017-06-26 03:10:19.594254"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:10:19.600778"], ["updated_at", "2017-06-26 03:10:19.600778"]]  (0.0ms) commit transaction  (6.8ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:10:19.608789"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:10:19.610224"], ["updated_at", "2017-06-26 03:10:19.610224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:10:19.611189"], ["updated_at", "2017-06-26 03:10:19.611189"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.616223"], ["updated_at", "2017-06-26 03:10:19.616223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:10:19.621735"], ["updated_at", "2017-06-26 03:10:19.621735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:10:19.622653"], ["updated_at", "2017-06-26 03:10:19.622653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:10:19.624393"], ["updated_at", "2017-06-26 03:10:19.624393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:10:19.625206"], ["updated_at", "2017-06-26 03:10:19.625206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.641079"], ["updated_at", "2017-06-26 03:10:19.641079"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.644898"], ["updated_at", "2017-06-26 03:10:19.644898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.645618"], ["updated_at", "2017-06-26 03:10:19.645618"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:10:19.647436"], ["updated_at", "2017-06-26 03:10:19.647436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:10:19.648189"], ["updated_at", "2017-06-26 03:10:19.648189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.649118"], ["updated_at", "2017-06-26 03:10:19.649118"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.650755"], ["updated_at", "2017-06-26 03:10:19.650755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.652560"], ["updated_at", "2017-06-26 03:10:19.652560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.654165"], ["updated_at", "2017-06-26 03:10:19.654165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.657042"], ["updated_at", "2017-06-26 03:10:19.657042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.660691"], ["updated_at", "2017-06-26 03:10:19.660691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.661425"], ["updated_at", "2017-06-26 03:10:19.661425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.666367"], ["updated_at", "2017-06-26 03:10:19.666367"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.667239"], ["updated_at", "2017-06-26 03:10:19.667239"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.669465"], ["updated_at", "2017-06-26 03:10:19.669465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:10:19.672765"], ["updated_at", "2017-06-26 03:10:19.672765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:10:19.674627"], ["updated_at", "2017-06-26 03:10:19.674627"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.682684"], ["updated_at", "2017-06-26 03:10:19.682684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.683523"], ["updated_at", "2017-06-26 03:10:19.683523"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.685086"], ["updated_at", "2017-06-26 03:10:19.685086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.685789"], ["updated_at", "2017-06-26 03:10:19.685789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.686502"], ["updated_at", "2017-06-26 03:10:19.686502"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.688533"], ["updated_at", "2017-06-26 03:10:19.688533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.690376"], ["updated_at", "2017-06-26 03:10:19.690376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.693371"], ["updated_at", "2017-06-26 03:10:19.693371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.694110"], ["updated_at", "2017-06-26 03:10:19.694110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.694796"], ["updated_at", "2017-06-26 03:10:19.694796"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.697465"], ["updated_at", "2017-06-26 03:10:19.697465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.698150"], ["updated_at", "2017-06-26 03:10:19.698150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.699843"], ["updated_at", "2017-06-26 03:10:19.699843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.702640"], ["updated_at", "2017-06-26 03:10:19.702640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.703343"], ["updated_at", "2017-06-26 03:10:19.703343"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.704983"], ["updated_at", "2017-06-26 03:10:19.704983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.705691"], ["updated_at", "2017-06-26 03:10:19.705691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.725394"], ["updated_at", "2017-06-26 03:10:19.725394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:10:19.731284"], ["updated_at", "2017-06-26 03:10:19.731284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:10:19.732217"], ["updated_at", "2017-06-26 03:10:19.732217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:10:19.752388"], ["updated_at", "2017-06-26 03:10:19.752388"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.780524"], ["updated_at", "2017-06-26 03:10:19.780524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.785056"], ["updated_at", "2017-06-26 03:10:19.785056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:10:19.787442"], ["updated_at", "2017-06-26 03:10:19.787442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.055938"], ["updated_at", "2017-06-26 03:11:12.055938"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.085998"], ["updated_at", "2017-06-26 03:11:12.085998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.089388"], ["updated_at", "2017-06-26 03:11:12.089388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:11:12.106108"], ["updated_at", "2017-06-26 03:11:12.106108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:11:12.107183"], ["updated_at", "2017-06-26 03:11:12.107183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:11:12.157008"], ["updated_at", "2017-06-26 03:11:12.157008"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.161093"], ["updated_at", "2017-06-26 03:11:12.161093"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:11:12.188227"], ["updated_at", "2017-06-26 03:11:12.188227"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:11:12.199001"], ["updated_at", "2017-06-26 03:11:12.199001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:11:12.201026"], ["updated_at", "2017-06-26 03:11:12.201026"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:11:12.201802"], ["updated_at", "2017-06-26 03:11:12.201802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:11:12.205286"], ["updated_at", "2017-06-26 03:11:12.205286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:11:12.206078"], ["updated_at", "2017-06-26 03:11:12.206078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.206858"], ["updated_at", "2017-06-26 03:11:12.206858"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.208624"], ["updated_at", "2017-06-26 03:11:12.208624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.209379"], ["updated_at", "2017-06-26 03:11:12.209379"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.211537"], ["updated_at", "2017-06-26 03:11:12.211537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.214969"], ["updated_at", "2017-06-26 03:11:12.214969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:11:12.219452"], ["updated_at", "2017-06-26 03:11:12.219452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:11:12.221988"], ["updated_at", "2017-06-26 03:11:12.221988"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.232379"], ["updated_at", "2017-06-26 03:11:12.232379"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.233494"], ["updated_at", "2017-06-26 03:11:12.233494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.234392"], ["updated_at", "2017-06-26 03:11:12.234392"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.246827"], ["updated_at", "2017-06-26 03:11:12.246827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:11:12.255338"], ["updated_at", "2017-06-26 03:11:12.255338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:11:12.257498"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:11:12.258601"], ["updated_at", "2017-06-26 03:11:12.258601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:11:12.259444"], ["updated_at", "2017-06-26 03:11:12.259444"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.263835"], ["updated_at", "2017-06-26 03:11:12.263835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.264793"], ["updated_at", "2017-06-26 03:11:12.264793"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.266616"], ["updated_at", "2017-06-26 03:11:12.266616"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.267410"], ["updated_at", "2017-06-26 03:11:12.267410"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.270048"], ["updated_at", "2017-06-26 03:11:12.270048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.270843"], ["updated_at", "2017-06-26 03:11:12.270843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.271574"], ["updated_at", "2017-06-26 03:11:12.271574"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.276541"], ["updated_at", "2017-06-26 03:11:12.276541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.277475"], ["updated_at", "2017-06-26 03:11:12.277475"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.280684"], ["updated_at", "2017-06-26 03:11:12.280684"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.281877"], ["updated_at", "2017-06-26 03:11:12.281877"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.284196"], ["updated_at", "2017-06-26 03:11:12.284196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.285080"], ["updated_at", "2017-06-26 03:11:12.285080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.296928"], ["updated_at", "2017-06-26 03:11:12.296928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.299604"], ["updated_at", "2017-06-26 03:11:12.299604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.303007"], ["updated_at", "2017-06-26 03:11:12.303007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:11:12.304071"], ["updated_at", "2017-06-26 03:11:12.304071"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.306875"], ["updated_at", "2017-06-26 03:11:12.306875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.313022"], ["updated_at", "2017-06-26 03:11:12.313022"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.315634"], ["updated_at", "2017-06-26 03:11:12.315634"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.316577"], ["updated_at", "2017-06-26 03:11:12.316577"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.321745"], ["updated_at", "2017-06-26 03:11:12.321745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.328210"], ["updated_at", "2017-06-26 03:11:12.328210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.335458"], ["updated_at", "2017-06-26 03:11:12.335458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.342377"], ["updated_at", "2017-06-26 03:11:12.342377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.343193"], ["updated_at", "2017-06-26 03:11:12.343193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:11:12.352909"], ["updated_at", "2017-06-26 03:11:12.352909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.357810"], ["updated_at", "2017-06-26 03:11:12.357810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.364723"], ["updated_at", "2017-06-26 03:11:12.364723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.367408"], ["updated_at", "2017-06-26 03:11:12.367408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.369606"], ["updated_at", "2017-06-26 03:11:12.369606"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.373343"], ["updated_at", "2017-06-26 03:11:12.373343"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.374214"], ["updated_at", "2017-06-26 03:11:12.374214"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.376712"], ["updated_at", "2017-06-26 03:11:12.376712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.379094"], ["updated_at", "2017-06-26 03:11:12.379094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:11:12.384962"], ["updated_at", "2017-06-26 03:11:12.384962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.396345"], ["updated_at", "2017-06-26 03:11:12.396345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.397626"], ["updated_at", "2017-06-26 03:11:12.397626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:11:12.403907"], ["updated_at", "2017-06-26 03:11:12.403907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:11:12.404961"], ["updated_at", "2017-06-26 03:11:12.404961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:11:12.406731"], ["updated_at", "2017-06-26 03:11:12.406731"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:11:12.407693"], ["updated_at", "2017-06-26 03:11:12.407693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.415096"], ["updated_at", "2017-06-26 03:11:12.415096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.417454"], ["updated_at", "2017-06-26 03:11:12.417454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.427847"], ["updated_at", "2017-06-26 03:11:12.427847"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.432803"], ["updated_at", "2017-06-26 03:11:12.432803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.433615"], ["updated_at", "2017-06-26 03:11:12.433615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.443051"], ["updated_at", "2017-06-26 03:11:12.443051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.443893"], ["updated_at", "2017-06-26 03:11:12.443893"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.446350"], ["updated_at", "2017-06-26 03:11:12.446350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.453355"], ["updated_at", "2017-06-26 03:11:12.453355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.470325"], ["updated_at", "2017-06-26 03:11:12.470325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.471277"], ["updated_at", "2017-06-26 03:11:12.471277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.480070"], ["updated_at", "2017-06-26 03:11:12.480070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.481107"], ["updated_at", "2017-06-26 03:11:12.481107"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:11:12.484254"], ["updated_at", "2017-06-26 03:11:12.484254"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.659096"], ["updated_at", "2017-06-26 03:12:41.659096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.669726"], ["updated_at", "2017-06-26 03:12:41.669726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.712648"], ["updated_at", "2017-06-26 03:12:41.712648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.713571"], ["updated_at", "2017-06-26 03:12:41.713571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:12:41.723690"], ["updated_at", "2017-06-26 03:12:41.723690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:12:41.726066"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:12:41.727360"], ["updated_at", "2017-06-26 03:12:41.727360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:12:41.728190"], ["updated_at", "2017-06-26 03:12:41.728190"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.732468"], ["updated_at", "2017-06-26 03:12:41.732468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.733521"], ["updated_at", "2017-06-26 03:12:41.733521"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.736114"], ["updated_at", "2017-06-26 03:12:41.736114"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.740460"], ["updated_at", "2017-06-26 03:12:41.740460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.741589"], ["updated_at", "2017-06-26 03:12:41.741589"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:12:41.744810"], ["updated_at", "2017-06-26 03:12:41.744810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:12:41.745977"], ["updated_at", "2017-06-26 03:12:41.745977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.746928"], ["updated_at", "2017-06-26 03:12:41.746928"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.752083"], ["updated_at", "2017-06-26 03:12:41.752083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.761431"], ["updated_at", "2017-06-26 03:12:41.761431"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.763359"], ["updated_at", "2017-06-26 03:12:41.763359"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.764096"], ["updated_at", "2017-06-26 03:12:41.764096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.764757"], ["updated_at", "2017-06-26 03:12:41.764757"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.767016"], ["updated_at", "2017-06-26 03:12:41.767016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.772746"], ["updated_at", "2017-06-26 03:12:41.772746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.773694"], ["updated_at", "2017-06-26 03:12:41.773694"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.776333"], ["updated_at", "2017-06-26 03:12:41.776333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.778996"], ["updated_at", "2017-06-26 03:12:41.778996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.780999"], ["updated_at", "2017-06-26 03:12:41.780999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.784183"], ["updated_at", "2017-06-26 03:12:41.784183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.784979"], ["updated_at", "2017-06-26 03:12:41.784979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.785691"], ["updated_at", "2017-06-26 03:12:41.785691"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.805184"], ["updated_at", "2017-06-26 03:12:41.805184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.811151"], ["updated_at", "2017-06-26 03:12:41.811151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.818255"], ["updated_at", "2017-06-26 03:12:41.818255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:12:41.824047"], ["updated_at", "2017-06-26 03:12:41.824047"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:12:41.825107"], ["updated_at", "2017-06-26 03:12:41.825107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:12:41.827038"], ["updated_at", "2017-06-26 03:12:41.827038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:12:41.827788"], ["updated_at", "2017-06-26 03:12:41.827788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.841109"], ["updated_at", "2017-06-26 03:12:41.841109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.842168"], ["updated_at", "2017-06-26 03:12:41.842168"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.845080"], ["updated_at", "2017-06-26 03:12:41.845080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:12:41.846038"], ["updated_at", "2017-06-26 03:12:41.846038"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.849157"], ["updated_at", "2017-06-26 03:12:41.849157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.858718"], ["updated_at", "2017-06-26 03:12:41.858718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.884398"], ["updated_at", "2017-06-26 03:12:41.884398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.885321"], ["updated_at", "2017-06-26 03:12:41.885321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.892093"], ["updated_at", "2017-06-26 03:12:41.892093"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.894930"], ["updated_at", "2017-06-26 03:12:41.894930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.898959"], ["updated_at", "2017-06-26 03:12:41.898959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.903004"], ["updated_at", "2017-06-26 03:12:41.903004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.906447"], ["updated_at", "2017-06-26 03:12:41.906447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.910733"], ["updated_at", "2017-06-26 03:12:41.910733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.911670"], ["updated_at", "2017-06-26 03:12:41.911670"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.914327"], ["updated_at", "2017-06-26 03:12:41.914327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.916563"], ["updated_at", "2017-06-26 03:12:41.916563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:12:41.920909"], ["updated_at", "2017-06-26 03:12:41.920909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:12:41.923256"], ["updated_at", "2017-06-26 03:12:41.923256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.932628"], ["updated_at", "2017-06-26 03:12:41.932628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.933455"], ["updated_at", "2017-06-26 03:12:41.933455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.939368"], ["updated_at", "2017-06-26 03:12:41.939368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.944581"], ["updated_at", "2017-06-26 03:12:41.944581"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.946907"], ["updated_at", "2017-06-26 03:12:41.946907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.947875"], ["updated_at", "2017-06-26 03:12:41.947875"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:12:41.959126"], ["updated_at", "2017-06-26 03:12:41.959126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.963665"], ["updated_at", "2017-06-26 03:12:41.963665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.964472"], ["updated_at", "2017-06-26 03:12:41.964472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.974976"], ["updated_at", "2017-06-26 03:12:41.974976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.976070"], ["updated_at", "2017-06-26 03:12:41.976070"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.981088"], ["updated_at", "2017-06-26 03:12:41.981088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.994678"], ["updated_at", "2017-06-26 03:12:41.994678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.995539"], ["updated_at", "2017-06-26 03:12:41.995539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:41.997528"], ["updated_at", "2017-06-26 03:12:41.997528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:12:42.002537"], ["updated_at", "2017-06-26 03:12:42.002537"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:12:42.013107"], ["updated_at", "2017-06-26 03:12:42.013107"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:12:42.014095"], ["updated_at", "2017-06-26 03:12:42.014095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:12:42.015693"], ["updated_at", "2017-06-26 03:12:42.015693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:12:42.016570"], ["updated_at", "2017-06-26 03:12:42.016570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:42.020074"], ["updated_at", "2017-06-26 03:12:42.020074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:12:42.083081"], ["updated_at", "2017-06-26 03:12:42.083081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:12:42.084192"], ["updated_at", "2017-06-26 03:12:42.084192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:12:42.111229"], ["updated_at", "2017-06-26 03:12:42.111229"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:42.116243"], ["updated_at", "2017-06-26 03:12:42.116243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:42.122731"], ["updated_at", "2017-06-26 03:12:42.122731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:42.127891"], ["updated_at", "2017-06-26 03:12:42.127891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:42.130531"], ["updated_at", "2017-06-26 03:12:42.130531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:12:51.597648"], ["updated_at", "2017-06-26 03:12:51.597648"]]  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.600532"], ["updated_at", "2017-06-26 03:12:51.600532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.627112"], ["updated_at", "2017-06-26 03:12:51.627112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.631806"], ["updated_at", "2017-06-26 03:12:51.631806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.634098"], ["updated_at", "2017-06-26 03:12:51.634098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:12:51.655091"], ["updated_at", "2017-06-26 03:12:51.655091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:12:51.655984"], ["updated_at", "2017-06-26 03:12:51.655984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.3ms) Completed 200 OK in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.883011"], ["updated_at", "2017-06-26 03:12:51.883011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:12:51.890399"], ["updated_at", "2017-06-26 03:12:51.890399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:12:51.892084"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:12:51.892962"], ["updated_at", "2017-06-26 03:12:51.892962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:12:51.893738"], ["updated_at", "2017-06-26 03:12:51.893738"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.897194"], ["updated_at", "2017-06-26 03:12:51.897194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.898122"], ["updated_at", "2017-06-26 03:12:51.898122"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.902219"], ["updated_at", "2017-06-26 03:12:51.902219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.902979"], ["updated_at", "2017-06-26 03:12:51.902979"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.905129"], ["updated_at", "2017-06-26 03:12:51.905129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.910408"], ["updated_at", "2017-06-26 03:12:51.910408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.916318"], ["updated_at", "2017-06-26 03:12:51.916318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.918174"], ["updated_at", "2017-06-26 03:12:51.918174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.921269"], ["updated_at", "2017-06-26 03:12:51.921269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:12:51.922125"], ["updated_at", "2017-06-26 03:12:51.922125"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:12:51.924727"], ["updated_at", "2017-06-26 03:12:51.924727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:12:51.925564"], ["updated_at", "2017-06-26 03:12:51.925564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:12:51.927458"], ["updated_at", "2017-06-26 03:12:51.927458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:12:51.928545"], ["updated_at", "2017-06-26 03:12:51.928545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:12:51.936944"], ["updated_at", "2017-06-26 03:12:51.936944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.947123"], ["updated_at", "2017-06-26 03:12:51.947123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.947885"], ["updated_at", "2017-06-26 03:12:51.947885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.948581"], ["updated_at", "2017-06-26 03:12:51.948581"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:12:51.953234"], ["updated_at", "2017-06-26 03:12:51.953234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:12:51.954515"], ["updated_at", "2017-06-26 03:12:51.954515"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.955457"], ["updated_at", "2017-06-26 03:12:51.955457"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.957749"], ["updated_at", "2017-06-26 03:12:51.957749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.958637"], ["updated_at", "2017-06-26 03:12:51.958637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:12:51.963843"], ["updated_at", "2017-06-26 03:12:51.963843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:12:51.964656"], ["updated_at", "2017-06-26 03:12:51.964656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:12:51.966274"], ["updated_at", "2017-06-26 03:12:51.966274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:12:51.966991"], ["updated_at", "2017-06-26 03:12:51.966991"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.969874"], ["updated_at", "2017-06-26 03:12:51.969874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.970605"], ["updated_at", "2017-06-26 03:12:51.970605"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.972414"], ["updated_at", "2017-06-26 03:12:51.972414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:12:51.979947"], ["updated_at", "2017-06-26 03:12:51.979947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:12:51.983920"], ["updated_at", "2017-06-26 03:12:51.983920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:12:51.985828"], ["updated_at", "2017-06-26 03:12:51.985828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.993727"], ["updated_at", "2017-06-26 03:12:51.993727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.994525"], ["updated_at", "2017-06-26 03:12:51.994525"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.997090"], ["updated_at", "2017-06-26 03:12:51.997090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:51.999165"], ["updated_at", "2017-06-26 03:12:51.999165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.002401"], ["updated_at", "2017-06-26 03:12:52.002401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.003336"], ["updated_at", "2017-06-26 03:12:52.003336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.005794"], ["updated_at", "2017-06-26 03:12:52.005794"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.009875"], ["updated_at", "2017-06-26 03:12:52.009875"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.014244"], ["updated_at", "2017-06-26 03:12:52.014244"]]  (2.8ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.017736"], ["updated_at", "2017-06-26 03:12:52.017736"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.019478"], ["updated_at", "2017-06-26 03:12:52.019478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.023029"], ["updated_at", "2017-06-26 03:12:52.023029"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.028119"], ["updated_at", "2017-06-26 03:12:52.028119"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.029066"], ["updated_at", "2017-06-26 03:12:52.029066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.034816"], ["updated_at", "2017-06-26 03:12:52.034816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.035571"], ["updated_at", "2017-06-26 03:12:52.035571"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.037502"], ["updated_at", "2017-06-26 03:12:52.037502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.038191"], ["updated_at", "2017-06-26 03:12:52.038191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.042915"], ["updated_at", "2017-06-26 03:12:52.042915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.046254"], ["updated_at", "2017-06-26 03:12:52.046254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.047007"], ["updated_at", "2017-06-26 03:12:52.047007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.047662"], ["updated_at", "2017-06-26 03:12:52.047662"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.049824"], ["updated_at", "2017-06-26 03:12:52.049824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.050514"], ["updated_at", "2017-06-26 03:12:52.050514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.060860"], ["updated_at", "2017-06-26 03:12:52.060860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.061942"], ["updated_at", "2017-06-26 03:12:52.061942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.063783"], ["updated_at", "2017-06-26 03:12:52.063783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.066680"], ["updated_at", "2017-06-26 03:12:52.066680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.084195"], ["updated_at", "2017-06-26 03:12:52.084195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.089340"], ["updated_at", "2017-06-26 03:12:52.089340"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.101326"], ["updated_at", "2017-06-26 03:12:52.101326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.102067"], ["updated_at", "2017-06-26 03:12:52.102067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.110469"], ["updated_at", "2017-06-26 03:12:52.110469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.111311"], ["updated_at", "2017-06-26 03:12:52.111311"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.113651"], ["updated_at", "2017-06-26 03:12:52.113651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.115519"], ["updated_at", "2017-06-26 03:12:52.115519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.117262"], ["updated_at", "2017-06-26 03:12:52.117262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.120070"], ["updated_at", "2017-06-26 03:12:52.120070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:12:52.121878"], ["updated_at", "2017-06-26 03:12:52.121878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:13:54.416965"], ["updated_at", "2017-06-26 03:13:54.416965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:13:54.418222"], ["updated_at", "2017-06-26 03:13:54.418222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.447771"], ["updated_at", "2017-06-26 03:13:54.447771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.462230"], ["updated_at", "2017-06-26 03:13:54.462230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.470229"], ["updated_at", "2017-06-26 03:13:54.470229"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.473232"], ["updated_at", "2017-06-26 03:13:54.473232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:13:54.486618"], ["updated_at", "2017-06-26 03:13:54.486618"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 6], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.515114"], ["updated_at", "2017-06-26 03:13:54.515114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.517585"], ["updated_at", "2017-06-26 03:13:54.517585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.519735"], ["updated_at", "2017-06-26 03:13:54.519735"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.523789"], ["updated_at", "2017-06-26 03:13:54.523789"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.524790"], ["updated_at", "2017-06-26 03:13:54.524790"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.527484"], ["updated_at", "2017-06-26 03:13:54.527484"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.533211"], ["updated_at", "2017-06-26 03:13:54.533211"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:13:54.534517"], ["updated_at", "2017-06-26 03:13:54.534517"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.537574"], ["updated_at", "2017-06-26 03:13:54.537574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.538502"], ["updated_at", "2017-06-26 03:13:54.538502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:13:54.550493"], ["updated_at", "2017-06-26 03:13:54.550493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:13:54.551960"], ["updated_at", "2017-06-26 03:13:54.551960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:13:54.554423"], ["updated_at", "2017-06-26 03:13:54.554423"]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:13:54.555687"], ["updated_at", "2017-06-26 03:13:54.555687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.560471"], ["updated_at", "2017-06-26 03:13:54.560471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.566348"], ["updated_at", "2017-06-26 03:13:54.566348"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.579819"], ["updated_at", "2017-06-26 03:13:54.579819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.580756"], ["updated_at", "2017-06-26 03:13:54.580756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.581659"], ["updated_at", "2017-06-26 03:13:54.581659"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.584529"], ["updated_at", "2017-06-26 03:13:54.584529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.586497"], ["updated_at", "2017-06-26 03:13:54.586497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.589742"], ["updated_at", "2017-06-26 03:13:54.589742"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:13:54.595532"], ["updated_at", "2017-06-26 03:13:54.595532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.608971"], ["updated_at", "2017-06-26 03:13:54.608971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.610067"], ["updated_at", "2017-06-26 03:13:54.610067"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.613281"], ["updated_at", "2017-06-26 03:13:54.613281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.614245"], ["updated_at", "2017-06-26 03:13:54.614245"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.618676"], ["updated_at", "2017-06-26 03:13:54.618676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.634098"], ["updated_at", "2017-06-26 03:13:54.634098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.638349"], ["updated_at", "2017-06-26 03:13:54.638349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.646000"], ["updated_at", "2017-06-26 03:13:54.646000"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.648284"], ["updated_at", "2017-06-26 03:13:54.648284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.650198"], ["updated_at", "2017-06-26 03:13:54.650198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.653203"], ["updated_at", "2017-06-26 03:13:54.653203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.657082"], ["updated_at", "2017-06-26 03:13:54.657082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.661929"], ["updated_at", "2017-06-26 03:13:54.661929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.663674"], ["updated_at", "2017-06-26 03:13:54.663674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.666348"], ["updated_at", "2017-06-26 03:13:54.666348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.669698"], ["updated_at", "2017-06-26 03:13:54.669698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.670374"], ["updated_at", "2017-06-26 03:13:54.670374"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:13:54.674765"], ["updated_at", "2017-06-26 03:13:54.674765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.680223"], ["updated_at", "2017-06-26 03:13:54.680223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.680948"], ["updated_at", "2017-06-26 03:13:54.680948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:13:54.686830"], ["updated_at", "2017-06-26 03:13:54.686830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:13:54.687552"], ["updated_at", "2017-06-26 03:13:54.687552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:13:54.689292"], ["updated_at", "2017-06-26 03:13:54.689292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:13:54.690244"], ["updated_at", "2017-06-26 03:13:54.690244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.696113"], ["updated_at", "2017-06-26 03:13:54.696113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.696867"], ["updated_at", "2017-06-26 03:13:54.696867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.697548"], ["updated_at", "2017-06-26 03:13:54.697548"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.699727"], ["updated_at", "2017-06-26 03:13:54.699727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.700456"], ["updated_at", "2017-06-26 03:13:54.700456"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:13:54.704013"], ["updated_at", "2017-06-26 03:13:54.704013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:13:54.705004"], ["updated_at", "2017-06-26 03:13:54.705004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.705788"], ["updated_at", "2017-06-26 03:13:54.705788"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.707544"], ["updated_at", "2017-06-26 03:13:54.707544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.708229"], ["updated_at", "2017-06-26 03:13:54.708229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.716618"], ["updated_at", "2017-06-26 03:13:54.716618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.717612"], ["updated_at", "2017-06-26 03:13:54.717612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.719469"], ["updated_at", "2017-06-26 03:13:54.719469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.723342"], ["updated_at", "2017-06-26 03:13:54.723342"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.724288"], ["updated_at", "2017-06-26 03:13:54.724288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.726310"], ["updated_at", "2017-06-26 03:13:54.726310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.729397"], ["updated_at", "2017-06-26 03:13:54.729397"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.730067"], ["updated_at", "2017-06-26 03:13:54.730067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.734359"], ["updated_at", "2017-06-26 03:13:54.734359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.738218"], ["updated_at", "2017-06-26 03:13:54.738218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.743060"], ["updated_at", "2017-06-26 03:13:54.743060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.743823"], ["updated_at", "2017-06-26 03:13:54.743823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.747990"], ["updated_at", "2017-06-26 03:13:54.747990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:13:54.748704"], ["updated_at", "2017-06-26 03:13:54.748704"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:13:54.761813"], ["updated_at", "2017-06-26 03:13:54.761813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:13:54.762849"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:13:54.763644"], ["updated_at", "2017-06-26 03:13:54.763644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:13:54.764355"], ["updated_at", "2017-06-26 03:13:54.764355"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:13:54.769747"], ["updated_at", "2017-06-26 03:13:54.769747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:13:54.771657"], ["updated_at", "2017-06-26 03:13:54.771657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:15:11.580536"], ["updated_at", "2017-06-26 03:15:11.580536"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:15:11.610800"], ["updated_at", "2017-06-26 03:15:11.610800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.635328"], ["updated_at", "2017-06-26 03:15:11.635328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.641052"], ["updated_at", "2017-06-26 03:15:11.641052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.641913"], ["updated_at", "2017-06-26 03:15:11.641913"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.644522"], ["updated_at", "2017-06-26 03:15:11.644522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.655458"], ["updated_at", "2017-06-26 03:15:11.655458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:15:11.656433"], ["updated_at", "2017-06-26 03:15:11.656433"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.658952"], ["updated_at", "2017-06-26 03:15:11.658952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.659775"], ["updated_at", "2017-06-26 03:15:11.659775"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.661596"], ["updated_at", "2017-06-26 03:15:11.661596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.668268"], ["updated_at", "2017-06-26 03:15:11.668268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.669306"], ["updated_at", "2017-06-26 03:15:11.669306"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.672324"], ["updated_at", "2017-06-26 03:15:11.672324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.673202"], ["updated_at", "2017-06-26 03:15:11.673202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.675746"], ["updated_at", "2017-06-26 03:15:11.675746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.679700"], ["updated_at", "2017-06-26 03:15:11.679700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.680609"], ["updated_at", "2017-06-26 03:15:11.680609"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.683676"], ["updated_at", "2017-06-26 03:15:11.683676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.684751"], ["updated_at", "2017-06-26 03:15:11.684751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.687113"], ["updated_at", "2017-06-26 03:15:11.687113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.691555"], ["updated_at", "2017-06-26 03:15:11.691555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.694319"], ["updated_at", "2017-06-26 03:15:11.694319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:15:11.698240"], ["updated_at", "2017-06-26 03:15:11.698240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:15:11.699347"], ["updated_at", "2017-06-26 03:15:11.699347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:15:11.701735"], ["updated_at", "2017-06-26 03:15:11.701735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:15:11.702723"], ["updated_at", "2017-06-26 03:15:11.702723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.710210"], ["updated_at", "2017-06-26 03:15:11.710210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.712920"], ["updated_at", "2017-06-26 03:15:11.712920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.715519"], ["updated_at", "2017-06-26 03:15:11.715519"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.729333"], ["updated_at", "2017-06-26 03:15:11.729333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.733813"], ["updated_at", "2017-06-26 03:15:11.733813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.734642"], ["updated_at", "2017-06-26 03:15:11.734642"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.737859"], ["updated_at", "2017-06-26 03:15:11.737859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.747986"], ["updated_at", "2017-06-26 03:15:11.747986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:15:11.759145"], ["updated_at", "2017-06-26 03:15:11.759145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.779713"], ["updated_at", "2017-06-26 03:15:11.779713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.794328"], ["updated_at", "2017-06-26 03:15:11.794328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.800665"], ["updated_at", "2017-06-26 03:15:11.800665"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.801700"], ["updated_at", "2017-06-26 03:15:11.801700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:15:11.809314"], ["updated_at", "2017-06-26 03:15:11.809314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:15:11.810295"], ["updated_at", "2017-06-26 03:15:11.810295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.811414"], ["updated_at", "2017-06-26 03:15:11.811414"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.813400"], ["updated_at", "2017-06-26 03:15:11.813400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.814307"], ["updated_at", "2017-06-26 03:15:11.814307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.823680"], ["updated_at", "2017-06-26 03:15:11.823680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.824516"], ["updated_at", "2017-06-26 03:15:11.824516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.825287"], ["updated_at", "2017-06-26 03:15:11.825287"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.828762"], ["updated_at", "2017-06-26 03:15:11.828762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.829844"], ["updated_at", "2017-06-26 03:15:11.829844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.836272"], ["updated_at", "2017-06-26 03:15:11.836272"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.841632"], ["updated_at", "2017-06-26 03:15:11.841632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.842535"], ["updated_at", "2017-06-26 03:15:11.842535"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.844898"], ["updated_at", "2017-06-26 03:15:11.844898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.845808"], ["updated_at", "2017-06-26 03:15:11.845808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.858486"], ["updated_at", "2017-06-26 03:15:11.858486"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.860957"], ["updated_at", "2017-06-26 03:15:11.860957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.862240"], ["updated_at", "2017-06-26 03:15:11.862240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.868256"], ["updated_at", "2017-06-26 03:15:11.868256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.869105"], ["updated_at", "2017-06-26 03:15:11.869105"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.870802"], ["updated_at", "2017-06-26 03:15:11.870802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.871654"], ["updated_at", "2017-06-26 03:15:11.871654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.872410"], ["updated_at", "2017-06-26 03:15:11.872410"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.874894"], ["updated_at", "2017-06-26 03:15:11.874894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.877151"], ["updated_at", "2017-06-26 03:15:11.877151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.904831"], ["updated_at", "2017-06-26 03:15:11.904831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:15:11.909705"], ["updated_at", "2017-06-26 03:15:11.909705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:15:11.910691"], ["updated_at", "2017-06-26 03:15:11.910691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:15:11.912773"], ["updated_at", "2017-06-26 03:15:11.912773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:15:11.913849"], ["updated_at", "2017-06-26 03:15:11.913849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.918082"], ["updated_at", "2017-06-26 03:15:11.918082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.920805"], ["updated_at", "2017-06-26 03:15:11.920805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:15:11.925633"], ["updated_at", "2017-06-26 03:15:11.925633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:15:11.926828"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:15:11.928286"], ["updated_at", "2017-06-26 03:15:11.928286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:15:11.929060"], ["updated_at", "2017-06-26 03:15:11.929060"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:15:11.936674"], ["updated_at", "2017-06-26 03:15:11.936674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:11.995789"], ["updated_at", "2017-06-26 03:15:11.995789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:15:12.002533"], ["updated_at", "2017-06-26 03:15:12.002533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:15:12.003502"], ["updated_at", "2017-06-26 03:15:12.003502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:12.048092"], ["updated_at", "2017-06-26 03:15:12.048092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:12.053519"], ["updated_at", "2017-06-26 03:15:12.053519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:12.056114"], ["updated_at", "2017-06-26 03:15:12.056114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:15:12.064268"], ["updated_at", "2017-06-26 03:15:12.064268"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"params"=>{"strong_resource"=>{"id"=>"1"}}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 6], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.021634"], ["updated_at", "2017-06-26 03:15:16.021634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.036704"], ["updated_at", "2017-06-26 03:15:16.036704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.039949"], ["updated_at", "2017-06-26 03:15:16.039949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:15:16.052381"], ["updated_at", "2017-06-26 03:15:16.052381"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.060844"], ["updated_at", "2017-06-26 03:15:16.060844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:15:16.067521"], ["updated_at", "2017-06-26 03:15:16.067521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:15:16.068595"], ["updated_at", "2017-06-26 03:15:16.068595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Parameters: {"params"=>{}} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"params"=>{"parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"params"=>{"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2", "parent_mock_id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.161775"], ["updated_at", "2017-06-26 03:15:16.161775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.162840"], ["updated_at", "2017-06-26 03:15:16.162840"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.182638"], ["updated_at", "2017-06-26 03:15:16.182638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:15:16.189801"], ["updated_at", "2017-06-26 03:15:16.189801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:15:16.191271"], ["updated_at", "2017-06-26 03:15:16.191271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:15:16.193774"], ["updated_at", "2017-06-26 03:15:16.193774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:15:16.194965"], ["updated_at", "2017-06-26 03:15:16.194965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.199336"], ["updated_at", "2017-06-26 03:15:16.199336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.202037"], ["updated_at", "2017-06-26 03:15:16.202037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.206385"], ["updated_at", "2017-06-26 03:15:16.206385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.207955"], ["updated_at", "2017-06-26 03:15:16.207955"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.210376"], ["updated_at", "2017-06-26 03:15:16.210376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.211307"], ["updated_at", "2017-06-26 03:15:16.211307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.213333"], ["updated_at", "2017-06-26 03:15:16.213333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.225542"], ["updated_at", "2017-06-26 03:15:16.225542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.226343"], ["updated_at", "2017-06-26 03:15:16.226343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.227128"], ["updated_at", "2017-06-26 03:15:16.227128"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.230014"], ["updated_at", "2017-06-26 03:15:16.230014"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.235058"], ["updated_at", "2017-06-26 03:15:16.235058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.240947"], ["updated_at", "2017-06-26 03:15:16.240947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.244758"], ["updated_at", "2017-06-26 03:15:16.244758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.245623"], ["updated_at", "2017-06-26 03:15:16.245623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.252246"], ["updated_at", "2017-06-26 03:15:16.252246"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.253319"], ["updated_at", "2017-06-26 03:15:16.253319"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.255606"], ["updated_at", "2017-06-26 03:15:16.255606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.256461"], ["updated_at", "2017-06-26 03:15:16.256461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.265213"], ["updated_at", "2017-06-26 03:15:16.265213"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.270140"], ["updated_at", "2017-06-26 03:15:16.270140"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.275009"], ["updated_at", "2017-06-26 03:15:16.275009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.279520"], ["updated_at", "2017-06-26 03:15:16.279520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.283963"], ["updated_at", "2017-06-26 03:15:16.283963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.285826"], ["updated_at", "2017-06-26 03:15:16.285826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.287544"], ["updated_at", "2017-06-26 03:15:16.287544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:15:16.290327"], ["updated_at", "2017-06-26 03:15:16.290327"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:15:16.291791"], ["updated_at", "2017-06-26 03:15:16.291791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.293060"], ["updated_at", "2017-06-26 03:15:16.293060"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.303220"], ["updated_at", "2017-06-26 03:15:16.303220"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.305315"], ["updated_at", "2017-06-26 03:15:16.305315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.306030"], ["updated_at", "2017-06-26 03:15:16.306030"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.311034"], ["updated_at", "2017-06-26 03:15:16.311034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.314911"], ["updated_at", "2017-06-26 03:15:16.314911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.315598"], ["updated_at", "2017-06-26 03:15:16.315598"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.317590"], ["updated_at", "2017-06-26 03:15:16.317590"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.320927"], ["updated_at", "2017-06-26 03:15:16.320927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.321619"], ["updated_at", "2017-06-26 03:15:16.321619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.326221"], ["updated_at", "2017-06-26 03:15:16.326221"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.327022"], ["updated_at", "2017-06-26 03:15:16.327022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.328757"], ["updated_at", "2017-06-26 03:15:16.328757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.331742"], ["updated_at", "2017-06-26 03:15:16.331742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.332470"], ["updated_at", "2017-06-26 03:15:16.332470"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:15:16.337563"], ["updated_at", "2017-06-26 03:15:16.337563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:15:16.348617"], ["updated_at", "2017-06-26 03:15:16.348617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:15:16.350793"], ["updated_at", "2017-06-26 03:15:16.350793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.359699"], ["updated_at", "2017-06-26 03:15:16.359699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.365266"], ["updated_at", "2017-06-26 03:15:16.365266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.368388"], ["updated_at", "2017-06-26 03:15:16.368388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.370328"], ["updated_at", "2017-06-26 03:15:16.370328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.373145"], ["updated_at", "2017-06-26 03:15:16.373145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.373866"], ["updated_at", "2017-06-26 03:15:16.373866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.374849"], ["updated_at", "2017-06-26 03:15:16.374849"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:15:16.379270"], ["updated_at", "2017-06-26 03:15:16.379270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.382804"], ["updated_at", "2017-06-26 03:15:16.382804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.383553"], ["updated_at", "2017-06-26 03:15:16.383553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:15:16.391553"], ["updated_at", "2017-06-26 03:15:16.391553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:15:16.392404"], ["updated_at", "2017-06-26 03:15:16.392404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:15:16.394059"], ["updated_at", "2017-06-26 03:15:16.394059"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:15:16.395032"], ["updated_at", "2017-06-26 03:15:16.395032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.403115"], ["updated_at", "2017-06-26 03:15:16.403115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:15:16.404043"], ["updated_at", "2017-06-26 03:15:16.404043"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.406375"], ["updated_at", "2017-06-26 03:15:16.406375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.407129"], ["updated_at", "2017-06-26 03:15:16.407129"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.409773"], ["updated_at", "2017-06-26 03:15:16.409773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:16.410592"], ["updated_at", "2017-06-26 03:15:16.410592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:15:16.416644"], ["updated_at", "2017-06-26 03:15:16.416644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:15:16.418220"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:15:16.419182"], ["updated_at", "2017-06-26 03:15:16.419182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:15:16.420208"], ["updated_at", "2017-06-26 03:15:16.420208"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"params"=>{"basic_resource"=>{"id"=>"2"}}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"params"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Parameters: {"params"=>{}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.632850"], ["updated_at", "2017-06-26 03:15:27.632850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.639447"], ["updated_at", "2017-06-26 03:15:27.639447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.645772"], ["updated_at", "2017-06-26 03:15:27.645772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.648521"], ["updated_at", "2017-06-26 03:15:27.648521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:15:27.675838"], ["updated_at", "2017-06-26 03:15:27.675838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:15:27.677030"], ["updated_at", "2017-06-26 03:15:27.677030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:15:27.697893"], ["updated_at", "2017-06-26 03:15:27.697893"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:15:27.758726"], ["updated_at", "2017-06-26 03:15:27.758726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:15:27.760282"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:15:27.761164"], ["updated_at", "2017-06-26 03:15:27.761164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:15:27.761929"], ["updated_at", "2017-06-26 03:15:27.761929"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.765027"], ["updated_at", "2017-06-26 03:15:27.765027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.765891"], ["updated_at", "2017-06-26 03:15:27.765891"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.778573"], ["updated_at", "2017-06-26 03:15:27.778573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:15:27.783174"], ["updated_at", "2017-06-26 03:15:27.783174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:15:27.783946"], ["updated_at", "2017-06-26 03:15:27.783946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:15:27.785638"], ["updated_at", "2017-06-26 03:15:27.785638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:15:27.786615"], ["updated_at", "2017-06-26 03:15:27.786615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.789404"], ["updated_at", "2017-06-26 03:15:27.789404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.790089"], ["updated_at", "2017-06-26 03:15:27.790089"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.792456"], ["updated_at", "2017-06-26 03:15:27.792456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.793234"], ["updated_at", "2017-06-26 03:15:27.793234"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.794945"], ["updated_at", "2017-06-26 03:15:27.794945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.795982"], ["updated_at", "2017-06-26 03:15:27.795982"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.798871"], ["updated_at", "2017-06-26 03:15:27.798871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.799673"], ["updated_at", "2017-06-26 03:15:27.799673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.805792"], ["updated_at", "2017-06-26 03:15:27.805792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:15:27.806548"], ["updated_at", "2017-06-26 03:15:27.806548"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.808828"], ["updated_at", "2017-06-26 03:15:27.808828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.809585"], ["updated_at", "2017-06-26 03:15:27.809585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.813621"], ["updated_at", "2017-06-26 03:15:27.813621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.817339"], ["updated_at", "2017-06-26 03:15:27.817339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:15:27.821168"], ["updated_at", "2017-06-26 03:15:27.821168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:15:27.822072"], ["updated_at", "2017-06-26 03:15:27.822072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.822801"], ["updated_at", "2017-06-26 03:15:27.822801"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.825160"], ["updated_at", "2017-06-26 03:15:27.825160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.831263"], ["updated_at", "2017-06-26 03:15:27.831263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.834198"], ["updated_at", "2017-06-26 03:15:27.834198"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.835783"], ["updated_at", "2017-06-26 03:15:27.835783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.837533"], ["updated_at", "2017-06-26 03:15:27.837533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.840980"], ["updated_at", "2017-06-26 03:15:27.840980"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.847247"], ["updated_at", "2017-06-26 03:15:27.847247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.852660"], ["updated_at", "2017-06-26 03:15:27.852660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.853408"], ["updated_at", "2017-06-26 03:15:27.853408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.854082"], ["updated_at", "2017-06-26 03:15:27.854082"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.867121"], ["updated_at", "2017-06-26 03:15:27.867121"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.868010"], ["updated_at", "2017-06-26 03:15:27.868010"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.870549"], ["updated_at", "2017-06-26 03:15:27.870549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.871354"], ["updated_at", "2017-06-26 03:15:27.871354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.872046"], ["updated_at", "2017-06-26 03:15:27.872046"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.874201"], ["updated_at", "2017-06-26 03:15:27.874201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.876127"], ["updated_at", "2017-06-26 03:15:27.876127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.877901"], ["updated_at", "2017-06-26 03:15:27.877901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.881035"], ["updated_at", "2017-06-26 03:15:27.881035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.887754"], ["updated_at", "2017-06-26 03:15:27.887754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.888969"], ["updated_at", "2017-06-26 03:15:27.888969"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.892773"], ["updated_at", "2017-06-26 03:15:27.892773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.893783"], ["updated_at", "2017-06-26 03:15:27.893783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.898646"], ["updated_at", "2017-06-26 03:15:27.898646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.904199"], ["updated_at", "2017-06-26 03:15:27.904199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.906096"], ["updated_at", "2017-06-26 03:15:27.906096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:15:27.911668"], ["updated_at", "2017-06-26 03:15:27.911668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.916451"], ["updated_at", "2017-06-26 03:15:27.916451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.921511"], ["updated_at", "2017-06-26 03:15:27.921511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.926758"], ["updated_at", "2017-06-26 03:15:27.926758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.927618"], ["updated_at", "2017-06-26 03:15:27.927618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.937824"], ["updated_at", "2017-06-26 03:15:27.937824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.938715"], ["updated_at", "2017-06-26 03:15:27.938715"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.940656"], ["updated_at", "2017-06-26 03:15:27.940656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.944243"], ["updated_at", "2017-06-26 03:15:27.944243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.945035"], ["updated_at", "2017-06-26 03:15:27.945035"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:15:27.946916"], ["updated_at", "2017-06-26 03:15:27.946916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:15:27.947668"], ["updated_at", "2017-06-26 03:15:27.947668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:15:27.949324"], ["updated_at", "2017-06-26 03:15:27.949324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:15:27.950084"], ["updated_at", "2017-06-26 03:15:27.950084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.955909"], ["updated_at", "2017-06-26 03:15:27.955909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.961117"], ["updated_at", "2017-06-26 03:15:27.961117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.961908"], ["updated_at", "2017-06-26 03:15:27.961908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.969529"], ["updated_at", "2017-06-26 03:15:27.969529"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.970299"], ["updated_at", "2017-06-26 03:15:27.970299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:15:27.972032"], ["updated_at", "2017-06-26 03:15:27.972032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:15:27.975298"], ["updated_at", "2017-06-26 03:15:27.975298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:15:27.977578"], ["updated_at", "2017-06-26 03:15:27.977578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:15:27.988292"], ["updated_at", "2017-06-26 03:15:27.988292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.474963"], ["updated_at", "2017-06-26 03:16:29.474963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.478169"], ["updated_at", "2017-06-26 03:16:29.478169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.514985"], ["updated_at", "2017-06-26 03:16:29.514985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.515865"], ["updated_at", "2017-06-26 03:16:29.515865"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.518162"], ["updated_at", "2017-06-26 03:16:29.518162"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.536686"], ["updated_at", "2017-06-26 03:16:29.536686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.537439"], ["updated_at", "2017-06-26 03:16:29.537439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.539150"], ["updated_at", "2017-06-26 03:16:29.539150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.541905"], ["updated_at", "2017-06-26 03:16:29.541905"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.548860"], ["updated_at", "2017-06-26 03:16:29.548860"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.552753"], ["updated_at", "2017-06-26 03:16:29.552753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.553629"], ["updated_at", "2017-06-26 03:16:29.553629"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:16:29.555856"], ["updated_at", "2017-06-26 03:16:29.555856"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:16:29.556727"], ["updated_at", "2017-06-26 03:16:29.556727"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:16:29.558558"], ["updated_at", "2017-06-26 03:16:29.558558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:16:29.559452"], ["updated_at", "2017-06-26 03:16:29.559452"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:16:29.563247"], ["updated_at", "2017-06-26 03:16:29.563247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:16:29.565383"], ["updated_at", "2017-06-26 03:16:29.565383"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.584752"], ["updated_at", "2017-06-26 03:16:29.584752"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.601063"], ["updated_at", "2017-06-26 03:16:29.601063"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.607068"], ["updated_at", "2017-06-26 03:16:29.607068"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.612868"], ["updated_at", "2017-06-26 03:16:29.612868"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.620556"], ["updated_at", "2017-06-26 03:16:29.620556"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.622588"], ["updated_at", "2017-06-26 03:16:29.622588"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.624377"], ["updated_at", "2017-06-26 03:16:29.624377"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.630367"], ["updated_at", "2017-06-26 03:16:29.630367"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.632174"], ["updated_at", "2017-06-26 03:16:29.632174"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.636347"], ["updated_at", "2017-06-26 03:16:29.636347"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.642909"], ["updated_at", "2017-06-26 03:16:29.642909"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.644492"], ["updated_at", "2017-06-26 03:16:29.644492"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.654167"], ["updated_at", "2017-06-26 03:16:29.654167"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.655836"], ["updated_at", "2017-06-26 03:16:29.655836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.689342"], ["updated_at", "2017-06-26 03:16:29.689342"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.691028"], ["updated_at", "2017-06-26 03:16:29.691028"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.703403"], ["updated_at", "2017-06-26 03:16:29.703403"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.707177"], ["updated_at", "2017-06-26 03:16:29.707177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.712888"], ["updated_at", "2017-06-26 03:16:29.712888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.719941"], ["updated_at", "2017-06-26 03:16:29.719941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.726854"], ["updated_at", "2017-06-26 03:16:29.726854"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.728224"], ["updated_at", "2017-06-26 03:16:29.728224"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.732202"], ["updated_at", "2017-06-26 03:16:29.732202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:16:29.737679"], ["updated_at", "2017-06-26 03:16:29.737679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:16:29.738928"], ["updated_at", "2017-06-26 03:16:29.738928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.739942"], ["updated_at", "2017-06-26 03:16:29.739942"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:16:29.742614"], ["updated_at", "2017-06-26 03:16:29.742614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:16:29.743724"], ["updated_at", "2017-06-26 03:16:29.743724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:16:29.746013"], ["updated_at", "2017-06-26 03:16:29.746013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:16:29.747009"], ["updated_at", "2017-06-26 03:16:29.747009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.756615"], ["updated_at", "2017-06-26 03:16:29.756615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.761647"], ["updated_at", "2017-06-26 03:16:29.761647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.762711"], ["updated_at", "2017-06-26 03:16:29.762711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.774898"], ["updated_at", "2017-06-26 03:16:29.774898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.784198"], ["updated_at", "2017-06-26 03:16:29.784198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:16:29.798205"], ["updated_at", "2017-06-26 03:16:29.798205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:16:29.805007"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:16:29.806220"], ["updated_at", "2017-06-26 03:16:29.806220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:16:29.807240"], ["updated_at", "2017-06-26 03:16:29.807240"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.810813"], ["updated_at", "2017-06-26 03:16:29.810813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.811581"], ["updated_at", "2017-06-26 03:16:29.811581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.812302"], ["updated_at", "2017-06-26 03:16:29.812302"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.814590"], ["updated_at", "2017-06-26 03:16:29.814590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.815304"], ["updated_at", "2017-06-26 03:16:29.815304"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:16:29.819347"], ["updated_at", "2017-06-26 03:16:29.819347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:16:29.823960"], ["updated_at", "2017-06-26 03:16:29.823960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.832622"], ["updated_at", "2017-06-26 03:16:29.832622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.834553"], ["updated_at", "2017-06-26 03:16:29.834553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.837382"], ["updated_at", "2017-06-26 03:16:29.837382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.838123"], ["updated_at", "2017-06-26 03:16:29.838123"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.840376"], ["updated_at", "2017-06-26 03:16:29.840376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:16:29.841389"], ["updated_at", "2017-06-26 03:16:29.841389"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.843615"], ["updated_at", "2017-06-26 03:16:29.843615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.844296"], ["updated_at", "2017-06-26 03:16:29.844296"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.846424"], ["updated_at", "2017-06-26 03:16:29.846424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.847087"], ["updated_at", "2017-06-26 03:16:29.847087"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.848715"], ["updated_at", "2017-06-26 03:16:29.848715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.853435"], ["updated_at", "2017-06-26 03:16:29.853435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.858595"], ["updated_at", "2017-06-26 03:16:29.858595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.973186"], ["updated_at", "2017-06-26 03:16:29.973186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.978485"], ["updated_at", "2017-06-26 03:16:29.978485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:29.981042"], ["updated_at", "2017-06-26 03:16:29.981042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:16:29.987681"], ["updated_at", "2017-06-26 03:16:29.987681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:16:29.988617"], ["updated_at", "2017-06-26 03:16:29.988617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:16:30.012623"], ["updated_at", "2017-06-26 03:16:30.012623"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:16:30.029123"], ["updated_at", "2017-06-26 03:16:30.029123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.666941"], ["updated_at", "2017-06-26 03:17:08.666941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.669090"], ["updated_at", "2017-06-26 03:17:08.669090"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:17:08.675303"], ["updated_at", "2017-06-26 03:17:08.675303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:17:08.682140"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:17:08.684916"], ["updated_at", "2017-06-26 03:17:08.684916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:17:08.685796"], ["updated_at", "2017-06-26 03:17:08.685796"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.689298"], ["updated_at", "2017-06-26 03:17:08.689298"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.691012"], ["updated_at", "2017-06-26 03:17:08.691012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.691718"], ["updated_at", "2017-06-26 03:17:08.691718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.708089"], ["updated_at", "2017-06-26 03:17:08.708089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.708873"], ["updated_at", "2017-06-26 03:17:08.708873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.710591"], ["updated_at", "2017-06-26 03:17:08.710591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.713263"], ["updated_at", "2017-06-26 03:17:08.713263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.713957"], ["updated_at", "2017-06-26 03:17:08.713957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.715576"], ["updated_at", "2017-06-26 03:17:08.715576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.719182"], ["updated_at", "2017-06-26 03:17:08.719182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.725730"], ["updated_at", "2017-06-26 03:17:08.725730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.735682"], ["updated_at", "2017-06-26 03:17:08.735682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.740442"], ["updated_at", "2017-06-26 03:17:08.740442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.741344"], ["updated_at", "2017-06-26 03:17:08.741344"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.747668"], ["updated_at", "2017-06-26 03:17:08.747668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.751341"], ["updated_at", "2017-06-26 03:17:08.751341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.753348"], ["updated_at", "2017-06-26 03:17:08.753348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.755189"], ["updated_at", "2017-06-26 03:17:08.755189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.758420"], ["updated_at", "2017-06-26 03:17:08.758420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:17:08.764090"], ["updated_at", "2017-06-26 03:17:08.764090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.779418"], ["updated_at", "2017-06-26 03:17:08.779418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:17:08.780393"], ["updated_at", "2017-06-26 03:17:08.780393"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.782962"], ["updated_at", "2017-06-26 03:17:08.782962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.783756"], ["updated_at", "2017-06-26 03:17:08.783756"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.790373"], ["updated_at", "2017-06-26 03:17:08.790373"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.791344"], ["updated_at", "2017-06-26 03:17:08.791344"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.795872"], ["updated_at", "2017-06-26 03:17:08.795872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.797646"], ["updated_at", "2017-06-26 03:17:08.797646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:17:08.801397"], ["updated_at", "2017-06-26 03:17:08.801397"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:17:08.803592"], ["updated_at", "2017-06-26 03:17:08.803592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.819790"], ["updated_at", "2017-06-26 03:17:08.819790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.821036"], ["updated_at", "2017-06-26 03:17:08.821036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.831343"], ["updated_at", "2017-06-26 03:17:08.831343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.832267"], ["updated_at", "2017-06-26 03:17:08.832267"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.835178"], ["updated_at", "2017-06-26 03:17:08.835178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.836199"], ["updated_at", "2017-06-26 03:17:08.836199"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:17:08.839385"], ["updated_at", "2017-06-26 03:17:08.839385"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:17:08.841039"], ["updated_at", "2017-06-26 03:17:08.841039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:17:08.843814"], ["updated_at", "2017-06-26 03:17:08.843814"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:17:08.845062"], ["updated_at", "2017-06-26 03:17:08.845062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:17:08.851970"], ["updated_at", "2017-06-26 03:17:08.851970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.857107"], ["updated_at", "2017-06-26 03:17:08.857107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.866627"], ["updated_at", "2017-06-26 03:17:08.866627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.867680"], ["updated_at", "2017-06-26 03:17:08.867680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.887941"], ["updated_at", "2017-06-26 03:17:08.887941"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.894422"], ["updated_at", "2017-06-26 03:17:08.894422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:17:08.898932"], ["updated_at", "2017-06-26 03:17:08.898932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:17:08.899879"], ["updated_at", "2017-06-26 03:17:08.899879"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.909179"], ["updated_at", "2017-06-26 03:17:08.909179"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.915170"], ["updated_at", "2017-06-26 03:17:08.915170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.918020"], ["updated_at", "2017-06-26 03:17:08.918020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.923211"], ["updated_at", "2017-06-26 03:17:08.923211"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.926498"], ["updated_at", "2017-06-26 03:17:08.926498"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.949778"], ["updated_at", "2017-06-26 03:17:08.949778"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.951171"], ["updated_at", "2017-06-26 03:17:08.951171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.952039"], ["updated_at", "2017-06-26 03:17:08.952039"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.954786"], ["updated_at", "2017-06-26 03:17:08.954786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.957189"], ["updated_at", "2017-06-26 03:17:08.957189"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.960465"], ["updated_at", "2017-06-26 03:17:08.960465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.961348"], ["updated_at", "2017-06-26 03:17:08.961348"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.963513"], ["updated_at", "2017-06-26 03:17:08.963513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.964435"], ["updated_at", "2017-06-26 03:17:08.964435"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:17:08.967276"], ["updated_at", "2017-06-26 03:17:08.967276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:17:08.968188"], ["updated_at", "2017-06-26 03:17:08.968188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:17:08.970173"], ["updated_at", "2017-06-26 03:17:08.970173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:17:08.970997"], ["updated_at", "2017-06-26 03:17:08.970997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.977780"], ["updated_at", "2017-06-26 03:17:08.977780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.981102"], ["updated_at", "2017-06-26 03:17:08.981102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.981832"], ["updated_at", "2017-06-26 03:17:08.981832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.982528"], ["updated_at", "2017-06-26 03:17:08.982528"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:08.985571"], ["updated_at", "2017-06-26 03:17:08.985571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:09.052765"], ["updated_at", "2017-06-26 03:17:09.052765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:09.072059"], ["updated_at", "2017-06-26 03:17:09.072059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:09.077220"], ["updated_at", "2017-06-26 03:17:09.077220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:09.080081"], ["updated_at", "2017-06-26 03:17:09.080081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:17:09.087726"], ["updated_at", "2017-06-26 03:17:09.087726"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:17:09.090432"], ["updated_at", "2017-06-26 03:17:09.090432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:17:09.091179"], ["updated_at", "2017-06-26 03:17:09.091179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.362294"], ["updated_at", "2017-06-26 03:17:13.362294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.369933"], ["updated_at", "2017-06-26 03:17:13.369933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.373045"], ["updated_at", "2017-06-26 03:17:13.373045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.2ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:17:13.417925"], ["updated_at", "2017-06-26 03:17:13.417925"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:17:13.422243"], ["updated_at", "2017-06-26 03:17:13.422243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:17:13.423208"], ["updated_at", "2017-06-26 03:17:13.423208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.447492"], ["updated_at", "2017-06-26 03:17:13.447492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.570983"], ["updated_at", "2017-06-26 03:17:13.570983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.572244"], ["updated_at", "2017-06-26 03:17:13.572244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.575949"], ["updated_at", "2017-06-26 03:17:13.575949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.580162"], ["updated_at", "2017-06-26 03:17:13.580162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.582654"], ["updated_at", "2017-06-26 03:17:13.582654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.586818"], ["updated_at", "2017-06-26 03:17:13.586818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:17:13.596816"], ["updated_at", "2017-06-26 03:17:13.596816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:17:13.606731"], ["updated_at", "2017-06-26 03:17:13.606731"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.620007"], ["updated_at", "2017-06-26 03:17:13.620007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.620820"], ["updated_at", "2017-06-26 03:17:13.620820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.627527"], ["updated_at", "2017-06-26 03:17:13.627527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.628682"], ["updated_at", "2017-06-26 03:17:13.628682"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.631623"], ["updated_at", "2017-06-26 03:17:13.631623"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.632549"], ["updated_at", "2017-06-26 03:17:13.632549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.633457"], ["updated_at", "2017-06-26 03:17:13.633457"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (8.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.638407"], ["updated_at", "2017-06-26 03:17:13.638407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.647658"], ["updated_at", "2017-06-26 03:17:13.647658"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:17:13.649917"], ["updated_at", "2017-06-26 03:17:13.649917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:17:13.650775"], ["updated_at", "2017-06-26 03:17:13.650775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.651604"], ["updated_at", "2017-06-26 03:17:13.651604"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.662535"], ["updated_at", "2017-06-26 03:17:13.662535"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.668378"], ["updated_at", "2017-06-26 03:17:13.668378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.672320"], ["updated_at", "2017-06-26 03:17:13.672320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.673117"], ["updated_at", "2017-06-26 03:17:13.673117"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.675251"], ["updated_at", "2017-06-26 03:17:13.675251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.679832"], ["updated_at", "2017-06-26 03:17:13.679832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.680668"], ["updated_at", "2017-06-26 03:17:13.680668"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.683542"], ["updated_at", "2017-06-26 03:17:13.683542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.684482"], ["updated_at", "2017-06-26 03:17:13.684482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:17:13.692539"], ["updated_at", "2017-06-26 03:17:13.692539"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:17:13.693528"], ["updated_at", "2017-06-26 03:17:13.693528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:17:13.695526"], ["updated_at", "2017-06-26 03:17:13.695526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:17:13.696440"], ["updated_at", "2017-06-26 03:17:13.696440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:17:13.700301"], ["updated_at", "2017-06-26 03:17:13.700301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:17:13.701540"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:17:13.702551"], ["updated_at", "2017-06-26 03:17:13.702551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:17:13.703503"], ["updated_at", "2017-06-26 03:17:13.703503"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.707917"], ["updated_at", "2017-06-26 03:17:13.707917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.708860"], ["updated_at", "2017-06-26 03:17:13.708860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.721120"], ["updated_at", "2017-06-26 03:17:13.721120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.722015"], ["updated_at", "2017-06-26 03:17:13.722015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.723938"], ["updated_at", "2017-06-26 03:17:13.723938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.727725"], ["updated_at", "2017-06-26 03:17:13.727725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.728667"], ["updated_at", "2017-06-26 03:17:13.728667"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.733969"], ["updated_at", "2017-06-26 03:17:13.733969"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.734851"], ["updated_at", "2017-06-26 03:17:13.734851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.745149"], ["updated_at", "2017-06-26 03:17:13.745149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.747399"], ["updated_at", "2017-06-26 03:17:13.747399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.750708"], ["updated_at", "2017-06-26 03:17:13.750708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.755153"], ["updated_at", "2017-06-26 03:17:13.755153"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.757194"], ["updated_at", "2017-06-26 03:17:13.757194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.757959"], ["updated_at", "2017-06-26 03:17:13.757959"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.761851"], ["updated_at", "2017-06-26 03:17:13.761851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.766822"], ["updated_at", "2017-06-26 03:17:13.766822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.769077"], ["updated_at", "2017-06-26 03:17:13.769077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:17:13.772299"], ["updated_at", "2017-06-26 03:17:13.772299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:17:13.773171"], ["updated_at", "2017-06-26 03:17:13.773171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:17:13.774846"], ["updated_at", "2017-06-26 03:17:13.774846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:17:13.775744"], ["updated_at", "2017-06-26 03:17:13.775744"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.782391"], ["updated_at", "2017-06-26 03:17:13.782391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.783279"], ["updated_at", "2017-06-26 03:17:13.783279"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.785716"], ["updated_at", "2017-06-26 03:17:13.785716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.786418"], ["updated_at", "2017-06-26 03:17:13.786418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.787189"], ["updated_at", "2017-06-26 03:17:13.787189"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.803528"], ["updated_at", "2017-06-26 03:17:13.803528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.809125"], ["updated_at", "2017-06-26 03:17:13.809125"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.815845"], ["updated_at", "2017-06-26 03:17:13.815845"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:17:13.816719"], ["updated_at", "2017-06-26 03:17:13.816719"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.819872"], ["updated_at", "2017-06-26 03:17:13.819872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.825346"], ["updated_at", "2017-06-26 03:17:13.825346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:17:13.834276"], ["updated_at", "2017-06-26 03:17:13.834276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:17:13.837011"], ["updated_at", "2017-06-26 03:17:13.837011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.846351"], ["updated_at", "2017-06-26 03:17:13.846351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.847327"], ["updated_at", "2017-06-26 03:17:13.847327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.855960"], ["updated_at", "2017-06-26 03:17:13.855960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.858138"], ["updated_at", "2017-06-26 03:17:13.858138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:17:13.860374"], ["updated_at", "2017-06-26 03:17:13.860374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.677070"], ["updated_at", "2017-06-26 03:19:04.677070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.699027"], ["updated_at", "2017-06-26 03:19:04.699027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.701889"], ["updated_at", "2017-06-26 03:19:04.701889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:19:04.715586"], ["updated_at", "2017-06-26 03:19:04.715586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:19:04.716582"], ["updated_at", "2017-06-26 03:19:04.716582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:19:04.765905"], ["updated_at", "2017-06-26 03:19:04.765905"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.772473"], ["updated_at", "2017-06-26 03:19:04.772473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.930512"], ["updated_at", "2017-06-26 03:19:04.930512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.931516"], ["updated_at", "2017-06-26 03:19:04.931516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 2) OR ("test_attrs_test_models_2"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.937007"], ["updated_at", "2017-06-26 03:19:04.937007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.943473"], ["updated_at", "2017-06-26 03:19:04.943473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.947184"], ["updated_at", "2017-06-26 03:19:04.947184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.959444"], ["updated_at", "2017-06-26 03:19:04.959444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.960405"], ["updated_at", "2017-06-26 03:19:04.960405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:19:04.976710"], ["updated_at", "2017-06-26 03:19:04.976710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.981595"], ["updated_at", "2017-06-26 03:19:04.981595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:19:04.990381"], ["updated_at", "2017-06-26 03:19:04.990381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:19:04.992477"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:19:04.993617"], ["updated_at", "2017-06-26 03:19:04.993617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:19:04.994505"], ["updated_at", "2017-06-26 03:19:04.994505"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.998909"], ["updated_at", "2017-06-26 03:19:04.998909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:04.999797"], ["updated_at", "2017-06-26 03:19:04.999797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.006945"], ["updated_at", "2017-06-26 03:19:05.006945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.014361"], ["updated_at", "2017-06-26 03:19:05.014361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.041399"], ["updated_at", "2017-06-26 03:19:05.041399"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.047750"], ["updated_at", "2017-06-26 03:19:05.047750"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.048797"], ["updated_at", "2017-06-26 03:19:05.048797"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:19:05.051717"], ["updated_at", "2017-06-26 03:19:05.051717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:19:05.052651"], ["updated_at", "2017-06-26 03:19:05.052651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:19:05.054544"], ["updated_at", "2017-06-26 03:19:05.054544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:19:05.055499"], ["updated_at", "2017-06-26 03:19:05.055499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.059939"], ["updated_at", "2017-06-26 03:19:05.059939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.066079"], ["updated_at", "2017-06-26 03:19:05.066079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:19:05.067017"], ["updated_at", "2017-06-26 03:19:05.067017"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.079687"], ["updated_at", "2017-06-26 03:19:05.079687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.080622"], ["updated_at", "2017-06-26 03:19:05.080622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.082946"], ["updated_at", "2017-06-26 03:19:05.082946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:19:05.086346"], ["updated_at", "2017-06-26 03:19:05.086346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:19:05.087076"], ["updated_at", "2017-06-26 03:19:05.087076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:19:05.088532"], ["updated_at", "2017-06-26 03:19:05.088532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:19:05.089318"], ["updated_at", "2017-06-26 03:19:05.089318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:19:05.096785"], ["updated_at", "2017-06-26 03:19:05.096785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:19:05.099173"], ["updated_at", "2017-06-26 03:19:05.099173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.107759"], ["updated_at", "2017-06-26 03:19:05.107759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.108528"], ["updated_at", "2017-06-26 03:19:05.108528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.111021"], ["updated_at", "2017-06-26 03:19:05.111021"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.114613"], ["updated_at", "2017-06-26 03:19:05.114613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.115488"], ["updated_at", "2017-06-26 03:19:05.115488"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:19:05.117887"], ["updated_at", "2017-06-26 03:19:05.117887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:19:05.118705"], ["updated_at", "2017-06-26 03:19:05.118705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.119477"], ["updated_at", "2017-06-26 03:19:05.119477"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.121271"], ["updated_at", "2017-06-26 03:19:05.121271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.123675"], ["updated_at", "2017-06-26 03:19:05.123675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.127040"], ["updated_at", "2017-06-26 03:19:05.127040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.129761"], ["updated_at", "2017-06-26 03:19:05.129761"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.133689"], ["updated_at", "2017-06-26 03:19:05.133689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.137999"], ["updated_at", "2017-06-26 03:19:05.137999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.140489"], ["updated_at", "2017-06-26 03:19:05.140489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.144140"], ["updated_at", "2017-06-26 03:19:05.144140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.144985"], ["updated_at", "2017-06-26 03:19:05.144985"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.152495"], ["updated_at", "2017-06-26 03:19:05.152495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.153314"], ["updated_at", "2017-06-26 03:19:05.153314"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.157260"], ["updated_at", "2017-06-26 03:19:05.157260"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:19:05.161939"], ["updated_at", "2017-06-26 03:19:05.161939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.172333"], ["updated_at", "2017-06-26 03:19:05.172333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.173257"], ["updated_at", "2017-06-26 03:19:05.173257"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.175682"], ["updated_at", "2017-06-26 03:19:05.175682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.177913"], ["updated_at", "2017-06-26 03:19:05.177913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.179883"], ["updated_at", "2017-06-26 03:19:05.179883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.182916"], ["updated_at", "2017-06-26 03:19:05.182916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.183663"], ["updated_at", "2017-06-26 03:19:05.183663"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.186132"], ["updated_at", "2017-06-26 03:19:05.186132"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.186914"], ["updated_at", "2017-06-26 03:19:05.186914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.195616"], ["updated_at", "2017-06-26 03:19:05.195616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.199656"], ["updated_at", "2017-06-26 03:19:05.199656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.200406"], ["updated_at", "2017-06-26 03:19:05.200406"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.202259"], ["updated_at", "2017-06-26 03:19:05.202259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.202996"], ["updated_at", "2017-06-26 03:19:05.202996"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.204772"], ["updated_at", "2017-06-26 03:19:05.204772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.205491"], ["updated_at", "2017-06-26 03:19:05.205491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.206140"], ["updated_at", "2017-06-26 03:19:05.206140"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.208324"], ["updated_at", "2017-06-26 03:19:05.208324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.209074"], ["updated_at", "2017-06-26 03:19:05.209074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:05.209811"], ["updated_at", "2017-06-26 03:19:05.209811"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.2ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.087088"], ["updated_at", "2017-06-26 03:19:10.087088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:19:10.111987"], ["updated_at", "2017-06-26 03:19:10.111987"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.115697"], ["updated_at", "2017-06-26 03:19:10.115697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.122060"], ["updated_at", "2017-06-26 03:19:10.122060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.124544"], ["updated_at", "2017-06-26 03:19:10.124544"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:19:10.134676"], ["updated_at", "2017-06-26 03:19:10.134676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:19:10.135515"], ["updated_at", "2017-06-26 03:19:10.135515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:19:10.159064"], ["updated_at", "2017-06-26 03:19:10.159064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:19:10.160057"], ["updated_at", "2017-06-26 03:19:10.160057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:19:10.162539"], ["updated_at", "2017-06-26 03:19:10.162539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:19:10.163397"], ["updated_at", "2017-06-26 03:19:10.163397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.174056"], ["updated_at", "2017-06-26 03:19:10.174056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.175857"], ["updated_at", "2017-06-26 03:19:10.175857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.178858"], ["updated_at", "2017-06-26 03:19:10.178858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.183548"], ["updated_at", "2017-06-26 03:19:10.183548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.184328"], ["updated_at", "2017-06-26 03:19:10.184328"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.188600"], ["updated_at", "2017-06-26 03:19:10.188600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.190442"], ["updated_at", "2017-06-26 03:19:10.190442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.195564"], ["updated_at", "2017-06-26 03:19:10.195564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.196306"], ["updated_at", "2017-06-26 03:19:10.196306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.204833"], ["updated_at", "2017-06-26 03:19:10.204833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.205575"], ["updated_at", "2017-06-26 03:19:10.205575"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.213234"], ["updated_at", "2017-06-26 03:19:10.213234"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.215231"], ["updated_at", "2017-06-26 03:19:10.215231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.215994"], ["updated_at", "2017-06-26 03:19:10.215994"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.217720"], ["updated_at", "2017-06-26 03:19:10.217720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.218419"], ["updated_at", "2017-06-26 03:19:10.218419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.219162"], ["updated_at", "2017-06-26 03:19:10.219162"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.221955"], ["updated_at", "2017-06-26 03:19:10.221955"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.227134"], ["updated_at", "2017-06-26 03:19:10.227134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.233569"], ["updated_at", "2017-06-26 03:19:10.233569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.238562"], ["updated_at", "2017-06-26 03:19:10.238562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:19:10.251786"], ["updated_at", "2017-06-26 03:19:10.251786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.261409"], ["updated_at", "2017-06-26 03:19:10.261409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.262263"], ["updated_at", "2017-06-26 03:19:10.262263"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.263960"], ["updated_at", "2017-06-26 03:19:10.263960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.264668"], ["updated_at", "2017-06-26 03:19:10.264668"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.266758"], ["updated_at", "2017-06-26 03:19:10.266758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.267461"], ["updated_at", "2017-06-26 03:19:10.267461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.283371"], ["updated_at", "2017-06-26 03:19:10.283371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.284173"], ["updated_at", "2017-06-26 03:19:10.284173"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.286325"], ["updated_at", "2017-06-26 03:19:10.286325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.287048"], ["updated_at", "2017-06-26 03:19:10.287048"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.289011"], ["updated_at", "2017-06-26 03:19:10.289011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.289787"], ["updated_at", "2017-06-26 03:19:10.289787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.291473"], ["updated_at", "2017-06-26 03:19:10.291473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.294762"], ["updated_at", "2017-06-26 03:19:10.294762"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.295612"], ["updated_at", "2017-06-26 03:19:10.295612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.299892"], ["updated_at", "2017-06-26 03:19:10.299892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.300637"], ["updated_at", "2017-06-26 03:19:10.300637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.301296"], ["updated_at", "2017-06-26 03:19:10.301296"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:19:10.304232"], ["updated_at", "2017-06-26 03:19:10.304232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:19:10.305241"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:19:10.306033"], ["updated_at", "2017-06-26 03:19:10.306033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:19:10.306851"], ["updated_at", "2017-06-26 03:19:10.306851"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.309843"], ["updated_at", "2017-06-26 03:19:10.309843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:19:10.313041"], ["updated_at", "2017-06-26 03:19:10.313041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:19:10.313827"], ["updated_at", "2017-06-26 03:19:10.313827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:19:10.315641"], ["updated_at", "2017-06-26 03:19:10.315641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:19:10.316363"], ["updated_at", "2017-06-26 03:19:10.316363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.322149"], ["updated_at", "2017-06-26 03:19:10.322149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:19:10.326335"], ["updated_at", "2017-06-26 03:19:10.326335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:19:10.327277"], ["updated_at", "2017-06-26 03:19:10.327277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.328016"], ["updated_at", "2017-06-26 03:19:10.328016"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.330061"], ["updated_at", "2017-06-26 03:19:10.330061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:19:10.330904"], ["updated_at", "2017-06-26 03:19:10.330904"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:19:10.335432"], ["updated_at", "2017-06-26 03:19:10.335432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.339179"], ["updated_at", "2017-06-26 03:19:10.339179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.339901"], ["updated_at", "2017-06-26 03:19:10.339901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.344225"], ["updated_at", "2017-06-26 03:19:10.344225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.346121"], ["updated_at", "2017-06-26 03:19:10.346121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.347876"], ["updated_at", "2017-06-26 03:19:10.347876"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.351166"], ["updated_at", "2017-06-26 03:19:10.351166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.351909"], ["updated_at", "2017-06-26 03:19:10.351909"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.356842"], ["updated_at", "2017-06-26 03:19:10.356842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.358674"], ["updated_at", "2017-06-26 03:19:10.358674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:19:10.361953"], ["updated_at", "2017-06-26 03:19:10.361953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:19:10.363910"], ["updated_at", "2017-06-26 03:19:10.363910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.371772"], ["updated_at", "2017-06-26 03:19:10.371772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.375320"], ["updated_at", "2017-06-26 03:19:10.375320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.376026"], ["updated_at", "2017-06-26 03:19:10.376026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.377884"], ["updated_at", "2017-06-26 03:19:10.377884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.381437"], ["updated_at", "2017-06-26 03:19:10.381437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:10.388112"], ["updated_at", "2017-06-26 03:19:10.388112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:19:17.129937"], ["updated_at", "2017-06-26 03:19:17.129937"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:19:17.134125"], ["updated_at", "2017-06-26 03:19:17.134125"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:19:17.150512"], ["updated_at", "2017-06-26 03:19:17.150512"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:19:17.151779"], ["updated_at", "2017-06-26 03:19:17.151779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (8.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.176284"], ["updated_at", "2017-06-26 03:19:17.176284"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.177419"], ["updated_at", "2017-06-26 03:19:17.177419"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.180613"], ["updated_at", "2017-06-26 03:19:17.180613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.181570"], ["updated_at", "2017-06-26 03:19:17.181570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.182319"], ["updated_at", "2017-06-26 03:19:17.182319"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.185446"], ["updated_at", "2017-06-26 03:19:17.185446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.200457"], ["updated_at", "2017-06-26 03:19:17.200457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.201551"], ["updated_at", "2017-06-26 03:19:17.201551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.211909"], ["updated_at", "2017-06-26 03:19:17.211909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.217966"], ["updated_at", "2017-06-26 03:19:17.217966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.218832"], ["updated_at", "2017-06-26 03:19:17.218832"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.221238"], ["updated_at", "2017-06-26 03:19:17.221238"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.225836"], ["updated_at", "2017-06-26 03:19:17.225836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.234126"], ["updated_at", "2017-06-26 03:19:17.234126"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.241436"], ["updated_at", "2017-06-26 03:19:17.241436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:19:17.246510"], ["updated_at", "2017-06-26 03:19:17.246510"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:19:17.247587"], ["updated_at", "2017-06-26 03:19:17.247587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.248311"], ["updated_at", "2017-06-26 03:19:17.248311"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.250222"], ["updated_at", "2017-06-26 03:19:17.250222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.251003"], ["updated_at", "2017-06-26 03:19:17.251003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.251798"], ["updated_at", "2017-06-26 03:19:17.251798"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.257435"], ["updated_at", "2017-06-26 03:19:17.257435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.258521"], ["updated_at", "2017-06-26 03:19:17.258521"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.260888"], ["updated_at", "2017-06-26 03:19:17.260888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.263193"], ["updated_at", "2017-06-26 03:19:17.263193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:19:17.274215"], ["updated_at", "2017-06-26 03:19:17.274215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:19:17.276288"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:19:17.278217"], ["updated_at", "2017-06-26 03:19:17.278217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:19:17.279383"], ["updated_at", "2017-06-26 03:19:17.279383"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.284352"], ["updated_at", "2017-06-26 03:19:17.284352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.285305"], ["updated_at", "2017-06-26 03:19:17.285305"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.319711"], ["updated_at", "2017-06-26 03:19:17.319711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.328762"], ["updated_at", "2017-06-26 03:19:17.328762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.333914"], ["updated_at", "2017-06-26 03:19:17.333914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.340499"], ["updated_at", "2017-06-26 03:19:17.340499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.341496"], ["updated_at", "2017-06-26 03:19:17.341496"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.344775"], ["updated_at", "2017-06-26 03:19:17.344775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.345855"], ["updated_at", "2017-06-26 03:19:17.345855"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.349183"], ["updated_at", "2017-06-26 03:19:17.349183"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:19:17.351004"], ["updated_at", "2017-06-26 03:19:17.351004"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.355395"], ["updated_at", "2017-06-26 03:19:17.355395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.356484"], ["updated_at", "2017-06-26 03:19:17.356484"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (7.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.365991"], ["updated_at", "2017-06-26 03:19:17.365991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.368200"], ["updated_at", "2017-06-26 03:19:17.368200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:19:17.374922"], ["updated_at", "2017-06-26 03:19:17.374922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.382675"], ["updated_at", "2017-06-26 03:19:17.382675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.387080"], ["updated_at", "2017-06-26 03:19:17.387080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.388002"], ["updated_at", "2017-06-26 03:19:17.388002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.389872"], ["updated_at", "2017-06-26 03:19:17.389872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.392958"], ["updated_at", "2017-06-26 03:19:17.392958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.393692"], ["updated_at", "2017-06-26 03:19:17.393692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.400502"], ["updated_at", "2017-06-26 03:19:17.400502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.402870"], ["updated_at", "2017-06-26 03:19:17.402870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.406202"], ["updated_at", "2017-06-26 03:19:17.406202"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.409849"], ["updated_at", "2017-06-26 03:19:17.409849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.410593"], ["updated_at", "2017-06-26 03:19:17.410593"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.419003"], ["updated_at", "2017-06-26 03:19:17.419003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.419780"], ["updated_at", "2017-06-26 03:19:17.419780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.427789"], ["updated_at", "2017-06-26 03:19:17.427789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.429896"], ["updated_at", "2017-06-26 03:19:17.429896"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.431826"], ["updated_at", "2017-06-26 03:19:17.431826"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.435335"], ["updated_at", "2017-06-26 03:19:17.435335"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.437339"], ["updated_at", "2017-06-26 03:19:17.437339"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.438085"], ["updated_at", "2017-06-26 03:19:17.438085"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:19:17.439885"], ["updated_at", "2017-06-26 03:19:17.439885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:19:17.441839"], ["updated_at", "2017-06-26 03:19:17.441839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.449475"], ["updated_at", "2017-06-26 03:19:17.449475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.450247"], ["updated_at", "2017-06-26 03:19:17.450247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:19:17.454459"], ["updated_at", "2017-06-26 03:19:17.454459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:19:17.455191"], ["updated_at", "2017-06-26 03:19:17.455191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:19:17.456868"], ["updated_at", "2017-06-26 03:19:17.456868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:19:17.457617"], ["updated_at", "2017-06-26 03:19:17.457617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:19:17.464776"], ["updated_at", "2017-06-26 03:19:17.464776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.573503"], ["updated_at", "2017-06-26 03:19:17.573503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.578234"], ["updated_at", "2017-06-26 03:19:17.578234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.580875"], ["updated_at", "2017-06-26 03:19:17.580875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.0ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:19:17.596231"], ["updated_at", "2017-06-26 03:19:17.596231"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:19:17.606238"], ["updated_at", "2017-06-26 03:19:17.606238"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:19:17.618282"], ["updated_at", "2017-06-26 03:19:17.618282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:19:17.619193"], ["updated_at", "2017-06-26 03:19:17.619193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:27:03.263132"], ["updated_at", "2017-06-26 03:27:03.263132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:27:03.264350"], ["updated_at", "2017-06-26 03:27:03.264350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:27:03.267036"], ["updated_at", "2017-06-26 03:27:03.267036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:27:03.267932"], ["updated_at", "2017-06-26 03:27:03.267932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.272356"], ["updated_at", "2017-06-26 03:27:03.272356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.273313"], ["updated_at", "2017-06-26 03:27:03.273313"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.276235"], ["updated_at", "2017-06-26 03:27:03.276235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.280970"], ["updated_at", "2017-06-26 03:27:03.280970"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.293629"], ["updated_at", "2017-06-26 03:27:03.293629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.294509"], ["updated_at", "2017-06-26 03:27:03.294509"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.296751"], ["updated_at", "2017-06-26 03:27:03.296751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.297904"], ["updated_at", "2017-06-26 03:27:03.297904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:27:03.303056"], ["updated_at", "2017-06-26 03:27:03.303056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:27:03.304138"], ["updated_at", "2017-06-26 03:27:03.304138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.304968"], ["updated_at", "2017-06-26 03:27:03.304968"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:27:03.310401"], ["updated_at", "2017-06-26 03:27:03.310401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:27:03.312266"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:27:03.317766"], ["updated_at", "2017-06-26 03:27:03.317766"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:27:03.318895"], ["updated_at", "2017-06-26 03:27:03.318895"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.326392"], ["updated_at", "2017-06-26 03:27:03.326392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.327337"], ["updated_at", "2017-06-26 03:27:03.327337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.329718"], ["updated_at", "2017-06-26 03:27:03.329718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:27:03.333244"], ["updated_at", "2017-06-26 03:27:03.333244"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:27:03.335325"], ["updated_at", "2017-06-26 03:27:03.335325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.361552"], ["updated_at", "2017-06-26 03:27:03.361552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.365952"], ["updated_at", "2017-06-26 03:27:03.365952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.367673"], ["updated_at", "2017-06-26 03:27:03.367673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.370419"], ["updated_at", "2017-06-26 03:27:03.370419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.375129"], ["updated_at", "2017-06-26 03:27:03.375129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.379356"], ["updated_at", "2017-06-26 03:27:03.379356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.380194"], ["updated_at", "2017-06-26 03:27:03.380194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.391974"], ["updated_at", "2017-06-26 03:27:03.391974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.392801"], ["updated_at", "2017-06-26 03:27:03.392801"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.395018"], ["updated_at", "2017-06-26 03:27:03.395018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:27:03.400103"], ["updated_at", "2017-06-26 03:27:03.400103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.408817"], ["updated_at", "2017-06-26 03:27:03.408817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:27:03.409686"], ["updated_at", "2017-06-26 03:27:03.409686"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.411879"], ["updated_at", "2017-06-26 03:27:03.411879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.412520"], ["updated_at", "2017-06-26 03:27:03.412520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.417270"], ["updated_at", "2017-06-26 03:27:03.417270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.418075"], ["updated_at", "2017-06-26 03:27:03.418075"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.418720"], ["updated_at", "2017-06-26 03:27:03.418720"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.420905"], ["updated_at", "2017-06-26 03:27:03.420905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.421589"], ["updated_at", "2017-06-26 03:27:03.421589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.429124"], ["updated_at", "2017-06-26 03:27:03.429124"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.431009"], ["updated_at", "2017-06-26 03:27:03.431009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.431752"], ["updated_at", "2017-06-26 03:27:03.431752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.432407"], ["updated_at", "2017-06-26 03:27:03.432407"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:27:03.437981"], ["updated_at", "2017-06-26 03:27:03.437981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.441893"], ["updated_at", "2017-06-26 03:27:03.441893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.442769"], ["updated_at", "2017-06-26 03:27:03.442769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.449121"], ["updated_at", "2017-06-26 03:27:03.449121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.453326"], ["updated_at", "2017-06-26 03:27:03.453326"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.455823"], ["updated_at", "2017-06-26 03:27:03.455823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.459984"], ["updated_at", "2017-06-26 03:27:03.459984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.462049"], ["updated_at", "2017-06-26 03:27:03.462049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.465110"], ["updated_at", "2017-06-26 03:27:03.465110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.466837"], ["updated_at", "2017-06-26 03:27:03.466837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.468492"], ["updated_at", "2017-06-26 03:27:03.468492"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.472845"], ["updated_at", "2017-06-26 03:27:03.472845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.473898"], ["updated_at", "2017-06-26 03:27:03.473898"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.476947"], ["updated_at", "2017-06-26 03:27:03.476947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.480825"], ["updated_at", "2017-06-26 03:27:03.480825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.481662"], ["updated_at", "2017-06-26 03:27:03.481662"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.483788"], ["updated_at", "2017-06-26 03:27:03.483788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.493540"], ["updated_at", "2017-06-26 03:27:03.493540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.499182"], ["updated_at", "2017-06-26 03:27:03.499182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.500023"], ["updated_at", "2017-06-26 03:27:03.500023"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.502139"], ["updated_at", "2017-06-26 03:27:03.502139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.502833"], ["updated_at", "2017-06-26 03:27:03.502833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.504713"], ["updated_at", "2017-06-26 03:27:03.504713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.507801"], ["updated_at", "2017-06-26 03:27:03.507801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.508551"], ["updated_at", "2017-06-26 03:27:03.508551"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:27:03.510305"], ["updated_at", "2017-06-26 03:27:03.510305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:27:03.511002"], ["updated_at", "2017-06-26 03:27:03.511002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:27:03.512595"], ["updated_at", "2017-06-26 03:27:03.512595"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:27:03.513508"], ["updated_at", "2017-06-26 03:27:03.513508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.589954"], ["updated_at", "2017-06-26 03:27:03.589954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.601931"], ["updated_at", "2017-06-26 03:27:03.601931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.606907"], ["updated_at", "2017-06-26 03:27:03.606907"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:03.610046"], ["updated_at", "2017-06-26 03:27:03.610046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:27:03.621749"], ["updated_at", "2017-06-26 03:27:03.621749"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:27:03.624428"], ["updated_at", "2017-06-26 03:27:03.624428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:27:03.625302"], ["updated_at", "2017-06-26 03:27:03.625302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:27:09.753926"], ["updated_at", "2017-06-26 03:27:09.753926"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:27:09.761774"], ["updated_at", "2017-06-26 03:27:09.761774"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:27:09.775756"], ["updated_at", "2017-06-26 03:27:09.775756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:27:09.776834"], ["updated_at", "2017-06-26 03:27:09.776834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:27:09.795992"], ["updated_at", "2017-06-26 03:27:09.795992"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:27:09.797043"], ["updated_at", "2017-06-26 03:27:09.797043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.797860"], ["updated_at", "2017-06-26 03:27:09.797860"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.799900"], ["updated_at", "2017-06-26 03:27:09.799900"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.815473"], ["updated_at", "2017-06-26 03:27:09.815473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.816477"], ["updated_at", "2017-06-26 03:27:09.816477"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.819313"], ["updated_at", "2017-06-26 03:27:09.819313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.821618"], ["updated_at", "2017-06-26 03:27:09.821618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.823801"], ["updated_at", "2017-06-26 03:27:09.823801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.827267"], ["updated_at", "2017-06-26 03:27:09.827267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.828045"], ["updated_at", "2017-06-26 03:27:09.828045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.828904"], ["updated_at", "2017-06-26 03:27:09.828904"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.831786"], ["updated_at", "2017-06-26 03:27:09.831786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.832624"], ["updated_at", "2017-06-26 03:27:09.832624"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:27:09.835306"], ["updated_at", "2017-06-26 03:27:09.835306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:27:09.838689"], ["updated_at", "2017-06-26 03:27:09.838689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.852683"], ["updated_at", "2017-06-26 03:27:09.852683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.853866"], ["updated_at", "2017-06-26 03:27:09.853866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.862600"], ["updated_at", "2017-06-26 03:27:09.862600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.868567"], ["updated_at", "2017-06-26 03:27:09.868567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.871108"], ["updated_at", "2017-06-26 03:27:09.871108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.875807"], ["updated_at", "2017-06-26 03:27:09.875807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.886782"], ["updated_at", "2017-06-26 03:27:09.886782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.904216"], ["updated_at", "2017-06-26 03:27:09.904216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.905097"], ["updated_at", "2017-06-26 03:27:09.905097"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.907903"], ["updated_at", "2017-06-26 03:27:09.907903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.908732"], ["updated_at", "2017-06-26 03:27:09.908732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.909435"], ["updated_at", "2017-06-26 03:27:09.909435"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.912025"], ["updated_at", "2017-06-26 03:27:09.912025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.916529"], ["updated_at", "2017-06-26 03:27:09.916529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:27:09.917462"], ["updated_at", "2017-06-26 03:27:09.917462"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.920911"], ["updated_at", "2017-06-26 03:27:09.920911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.926128"], ["updated_at", "2017-06-26 03:27:09.926128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.928851"], ["updated_at", "2017-06-26 03:27:09.928851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.931946"], ["updated_at", "2017-06-26 03:27:09.931946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:27:09.940058"], ["updated_at", "2017-06-26 03:27:09.940058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:27:09.942600"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:27:09.944740"], ["updated_at", "2017-06-26 03:27:09.944740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:27:09.945620"], ["updated_at", "2017-06-26 03:27:09.945620"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.971789"], ["updated_at", "2017-06-26 03:27:09.971789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.972767"], ["updated_at", "2017-06-26 03:27:09.972767"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:27:09.977062"], ["updated_at", "2017-06-26 03:27:09.977062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.997074"], ["updated_at", "2017-06-26 03:27:09.997074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:09.998311"], ["updated_at", "2017-06-26 03:27:09.998311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.002483"], ["updated_at", "2017-06-26 03:27:10.002483"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.007906"], ["updated_at", "2017-06-26 03:27:10.007906"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.009221"], ["updated_at", "2017-06-26 03:27:10.009221"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.013022"], ["updated_at", "2017-06-26 03:27:10.013022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.019151"], ["updated_at", "2017-06-26 03:27:10.019151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.020000"], ["updated_at", "2017-06-26 03:27:10.020000"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.022812"], ["updated_at", "2017-06-26 03:27:10.022812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.028816"], ["updated_at", "2017-06-26 03:27:10.028816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.029952"], ["updated_at", "2017-06-26 03:27:10.029952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.037253"], ["updated_at", "2017-06-26 03:27:10.037253"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.039513"], ["updated_at", "2017-06-26 03:27:10.039513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.041714"], ["updated_at", "2017-06-26 03:27:10.041714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:27:10.049605"], ["updated_at", "2017-06-26 03:27:10.049605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.054288"], ["updated_at", "2017-06-26 03:27:10.054288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.055154"], ["updated_at", "2017-06-26 03:27:10.055154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:27:10.066310"], ["updated_at", "2017-06-26 03:27:10.066310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:27:10.067265"], ["updated_at", "2017-06-26 03:27:10.067265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:27:10.069142"], ["updated_at", "2017-06-26 03:27:10.069142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:27:10.069944"], ["updated_at", "2017-06-26 03:27:10.069944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.077800"], ["updated_at", "2017-06-26 03:27:10.077800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.079182"], ["updated_at", "2017-06-26 03:27:10.079182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.096550"], ["updated_at", "2017-06-26 03:27:10.096550"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.101755"], ["updated_at", "2017-06-26 03:27:10.101755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.102538"], ["updated_at", "2017-06-26 03:27:10.102538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.114045"], ["updated_at", "2017-06-26 03:27:10.114045"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.115836"], ["updated_at", "2017-06-26 03:27:10.115836"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.118907"], ["updated_at", "2017-06-26 03:27:10.118907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.120037"], ["updated_at", "2017-06-26 03:27:10.120037"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.122604"], ["updated_at", "2017-06-26 03:27:10.122604"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:27:10.248092"], ["updated_at", "2017-06-26 03:27:10.248092"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.250822"], ["updated_at", "2017-06-26 03:27:10.250822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:27:10.269771"], ["updated_at", "2017-06-26 03:27:10.269771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:27:10.270851"], ["updated_at", "2017-06-26 03:27:10.270851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.292789"], ["updated_at", "2017-06-26 03:27:10.292789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.297714"], ["updated_at", "2017-06-26 03:27:10.297714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:27:10.300265"], ["updated_at", "2017-06-26 03:27:10.300265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.017715"], ["updated_at", "2017-06-26 03:32:51.017715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.020913"], ["updated_at", "2017-06-26 03:32:51.020913"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.026488"], ["updated_at", "2017-06-26 03:32:51.026488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.027455"], ["updated_at", "2017-06-26 03:32:51.027455"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:32:51.032818"], ["updated_at", "2017-06-26 03:32:51.032818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:32:51.049118"], ["updated_at", "2017-06-26 03:32:51.049118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:32:51.050339"], ["updated_at", "2017-06-26 03:32:51.050339"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:32:51.059027"], ["updated_at", "2017-06-26 03:32:51.059027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:32:51.060281"], ["updated_at", "2017-06-26 03:32:51.060281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.065426"], ["updated_at", "2017-06-26 03:32:51.065426"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.082113"], ["updated_at", "2017-06-26 03:32:51.082113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.088697"], ["updated_at", "2017-06-26 03:32:51.088697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.090537"], ["updated_at", "2017-06-26 03:32:51.090537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.093694"], ["updated_at", "2017-06-26 03:32:51.093694"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.095024"], ["updated_at", "2017-06-26 03:32:51.095024"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.099872"], ["updated_at", "2017-06-26 03:32:51.099872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:32:51.101055"], ["updated_at", "2017-06-26 03:32:51.101055"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.105628"], ["updated_at", "2017-06-26 03:32:51.105628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.108332"], ["updated_at", "2017-06-26 03:32:51.108332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.110407"], ["updated_at", "2017-06-26 03:32:51.110407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.114409"], ["updated_at", "2017-06-26 03:32:51.114409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.115276"], ["updated_at", "2017-06-26 03:32:51.115276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.121555"], ["updated_at", "2017-06-26 03:32:51.121555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.122729"], ["updated_at", "2017-06-26 03:32:51.122729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.135079"], ["updated_at", "2017-06-26 03:32:51.135079"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.136542"], ["updated_at", "2017-06-26 03:32:51.136542"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.139160"], ["updated_at", "2017-06-26 03:32:51.139160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.140272"], ["updated_at", "2017-06-26 03:32:51.140272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.142979"], ["updated_at", "2017-06-26 03:32:51.142979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.154961"], ["updated_at", "2017-06-26 03:32:51.154961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.160594"], ["updated_at", "2017-06-26 03:32:51.160594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.162652"], ["updated_at", "2017-06-26 03:32:51.162652"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.166057"], ["updated_at", "2017-06-26 03:32:51.166057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.184327"], ["updated_at", "2017-06-26 03:32:51.184327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.186132"], ["updated_at", "2017-06-26 03:32:51.186132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.188775"], ["updated_at", "2017-06-26 03:32:51.188775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.191637"], ["updated_at", "2017-06-26 03:32:51.191637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.192301"], ["updated_at", "2017-06-26 03:32:51.192301"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.194060"], ["updated_at", "2017-06-26 03:32:51.194060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.200887"], ["updated_at", "2017-06-26 03:32:51.200887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.205111"], ["updated_at", "2017-06-26 03:32:51.205111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.205867"], ["updated_at", "2017-06-26 03:32:51.205867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.207643"], ["updated_at", "2017-06-26 03:32:51.207643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:32:51.213443"], ["updated_at", "2017-06-26 03:32:51.213443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.222877"], ["updated_at", "2017-06-26 03:32:51.222877"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.225029"], ["updated_at", "2017-06-26 03:32:51.225029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.225922"], ["updated_at", "2017-06-26 03:32:51.225922"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:32:51.236448"], ["updated_at", "2017-06-26 03:32:51.236448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:32:51.237759"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:32:51.242998"], ["updated_at", "2017-06-26 03:32:51.242998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:32:51.244041"], ["updated_at", "2017-06-26 03:32:51.244041"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.251711"], ["updated_at", "2017-06-26 03:32:51.251711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:32:51.257054"], ["updated_at", "2017-06-26 03:32:51.257054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:32:51.257863"], ["updated_at", "2017-06-26 03:32:51.257863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.258608"], ["updated_at", "2017-06-26 03:32:51.258608"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.260470"], ["updated_at", "2017-06-26 03:32:51.260470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.264759"], ["updated_at", "2017-06-26 03:32:51.264759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.265474"], ["updated_at", "2017-06-26 03:32:51.265474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.266260"], ["updated_at", "2017-06-26 03:32:51.266260"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.268848"], ["updated_at", "2017-06-26 03:32:51.268848"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.274174"], ["updated_at", "2017-06-26 03:32:51.274174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.274975"], ["updated_at", "2017-06-26 03:32:51.274975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:32:51.283962"], ["updated_at", "2017-06-26 03:32:51.283962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:32:51.284812"], ["updated_at", "2017-06-26 03:32:51.284812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:32:51.286534"], ["updated_at", "2017-06-26 03:32:51.286534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:32:51.287441"], ["updated_at", "2017-06-26 03:32:51.287441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:32:51.303742"], ["updated_at", "2017-06-26 03:32:51.303742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:32:51.305892"], ["updated_at", "2017-06-26 03:32:51.305892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.313667"], ["updated_at", "2017-06-26 03:32:51.313667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.314490"], ["updated_at", "2017-06-26 03:32:51.314490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.321381"], ["updated_at", "2017-06-26 03:32:51.321381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.322350"], ["updated_at", "2017-06-26 03:32:51.322350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.323339"], ["updated_at", "2017-06-26 03:32:51.323339"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.326075"], ["updated_at", "2017-06-26 03:32:51.326075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.326911"], ["updated_at", "2017-06-26 03:32:51.326911"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.328670"], ["updated_at", "2017-06-26 03:32:51.328670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.329461"], ["updated_at", "2017-06-26 03:32:51.329461"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:32:51.357716"], ["updated_at", "2017-06-26 03:32:51.357716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:32:51.358634"], ["updated_at", "2017-06-26 03:32:51.358634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.388097"], ["updated_at", "2017-06-26 03:32:51.388097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.392965"], ["updated_at", "2017-06-26 03:32:51.392965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.395509"], ["updated_at", "2017-06-26 03:32:51.395509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:51.400055"], ["updated_at", "2017-06-26 03:32:51.400055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:32:51.405968"], ["updated_at", "2017-06-26 03:32:51.405968"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.436084"], ["updated_at", "2017-06-26 03:32:57.436084"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.457921"], ["updated_at", "2017-06-26 03:32:57.457921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:32:57.473587"], ["updated_at", "2017-06-26 03:32:57.473587"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.478450"], ["updated_at", "2017-06-26 03:32:57.478450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.481922"], ["updated_at", "2017-06-26 03:32:57.481922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.484321"], ["updated_at", "2017-06-26 03:32:57.484321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.488536"], ["updated_at", "2017-06-26 03:32:57.488536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.495079"], ["updated_at", "2017-06-26 03:32:57.495079"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.496153"], ["updated_at", "2017-06-26 03:32:57.496153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.497085"], ["updated_at", "2017-06-26 03:32:57.497085"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:32:57.500607"], ["updated_at", "2017-06-26 03:32:57.500607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:32:57.503583"], ["updated_at", "2017-06-26 03:32:57.503583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.516657"], ["updated_at", "2017-06-26 03:32:57.516657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.517934"], ["updated_at", "2017-06-26 03:32:57.517934"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:32:57.524432"], ["updated_at", "2017-06-26 03:32:57.524432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:32:57.525334"], ["updated_at", "2017-06-26 03:32:57.525334"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:32:57.527193"], ["updated_at", "2017-06-26 03:32:57.527193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:32:57.528098"], ["updated_at", "2017-06-26 03:32:57.528098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.535851"], ["updated_at", "2017-06-26 03:32:57.535851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.540420"], ["updated_at", "2017-06-26 03:32:57.540420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.541268"], ["updated_at", "2017-06-26 03:32:57.541268"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.542136"], ["updated_at", "2017-06-26 03:32:57.542136"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.544742"], ["updated_at", "2017-06-26 03:32:57.544742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.547563"], ["updated_at", "2017-06-26 03:32:57.547563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.552258"], ["updated_at", "2017-06-26 03:32:57.552258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.553201"], ["updated_at", "2017-06-26 03:32:57.553201"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:32:57.563058"], ["updated_at", "2017-06-26 03:32:57.563058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:32:57.564098"], ["updated_at", "2017-06-26 03:32:57.564098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:32:57.565986"], ["updated_at", "2017-06-26 03:32:57.565986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:32:57.566875"], ["updated_at", "2017-06-26 03:32:57.566875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.570700"], ["updated_at", "2017-06-26 03:32:57.570700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.571532"], ["updated_at", "2017-06-26 03:32:57.571532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.573706"], ["updated_at", "2017-06-26 03:32:57.573706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.578767"], ["updated_at", "2017-06-26 03:32:57.578767"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.594268"], ["updated_at", "2017-06-26 03:32:57.594268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:32:57.604290"], ["updated_at", "2017-06-26 03:32:57.604290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:32:57.618837"], ["updated_at", "2017-06-26 03:32:57.618837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:32:57.619859"], ["updated_at", "2017-06-26 03:32:57.619859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.620849"], ["updated_at", "2017-06-26 03:32:57.620849"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.626396"], ["updated_at", "2017-06-26 03:32:57.626396"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.627206"], ["updated_at", "2017-06-26 03:32:57.627206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.637698"], ["updated_at", "2017-06-26 03:32:57.637698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:32:57.638664"], ["updated_at", "2017-06-26 03:32:57.638664"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.641257"], ["updated_at", "2017-06-26 03:32:57.641257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.642120"], ["updated_at", "2017-06-26 03:32:57.642120"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.644615"], ["updated_at", "2017-06-26 03:32:57.644615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.645634"], ["updated_at", "2017-06-26 03:32:57.645634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.648187"], ["updated_at", "2017-06-26 03:32:57.648187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.652147"], ["updated_at", "2017-06-26 03:32:57.652147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.652996"], ["updated_at", "2017-06-26 03:32:57.652996"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.655276"], ["updated_at", "2017-06-26 03:32:57.655276"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.657480"], ["updated_at", "2017-06-26 03:32:57.657480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.660856"], ["updated_at", "2017-06-26 03:32:57.660856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.661820"], ["updated_at", "2017-06-26 03:32:57.661820"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.664182"], ["updated_at", "2017-06-26 03:32:57.664182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.664922"], ["updated_at", "2017-06-26 03:32:57.664922"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.667514"], ["updated_at", "2017-06-26 03:32:57.667514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.668417"], ["updated_at", "2017-06-26 03:32:57.668417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.675883"], ["updated_at", "2017-06-26 03:32:57.675883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.682690"], ["updated_at", "2017-06-26 03:32:57.682690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.687356"], ["updated_at", "2017-06-26 03:32:57.687356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.688281"], ["updated_at", "2017-06-26 03:32:57.688281"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.690761"], ["updated_at", "2017-06-26 03:32:57.690761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.704574"], ["updated_at", "2017-06-26 03:32:57.704574"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.706530"], ["updated_at", "2017-06-26 03:32:57.706530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.709691"], ["updated_at", "2017-06-26 03:32:57.709691"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:32:57.716144"], ["updated_at", "2017-06-26 03:32:57.716144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:32:57.717845"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:32:57.719591"], ["updated_at", "2017-06-26 03:32:57.719591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:32:57.720588"], ["updated_at", "2017-06-26 03:32:57.720588"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.725361"], ["updated_at", "2017-06-26 03:32:57.725361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.731151"], ["updated_at", "2017-06-26 03:32:57.731151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.732132"], ["updated_at", "2017-06-26 03:32:57.732132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.737632"], ["updated_at", "2017-06-26 03:32:57.737632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.738463"], ["updated_at", "2017-06-26 03:32:57.738463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.762183"], ["updated_at", "2017-06-26 03:32:57.762183"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.763143"], ["updated_at", "2017-06-26 03:32:57.763143"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:32:57.893740"], ["updated_at", "2017-06-26 03:32:57.893740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:32:57.894540"], ["updated_at", "2017-06-26 03:32:57.894540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.908128"], ["updated_at", "2017-06-26 03:32:57.908128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.913242"], ["updated_at", "2017-06-26 03:32:57.913242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.916441"], ["updated_at", "2017-06-26 03:32:57.916441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:32:57.926670"], ["updated_at", "2017-06-26 03:32:57.926670"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:32:57.929452"], ["updated_at", "2017-06-26 03:32:57.929452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.425546"], ["updated_at", "2017-06-26 03:33:06.425546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.433743"], ["updated_at", "2017-06-26 03:33:06.433743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.437116"], ["updated_at", "2017-06-26 03:33:06.437116"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:33:06.460026"], ["updated_at", "2017-06-26 03:33:06.460026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:33:06.461110"], ["updated_at", "2017-06-26 03:33:06.461110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:33:06.480140"], ["updated_at", "2017-06-26 03:33:06.480140"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.496092"], ["updated_at", "2017-06-26 03:33:06.496092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_attrs" SET "test_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_id", nil], ["id", 1]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.576647"], ["updated_at", "2017-06-26 03:33:06.576647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.577598"], ["updated_at", "2017-06-26 03:33:06.577598"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.584398"], ["updated_at", "2017-06-26 03:33:06.584398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:33:06.589253"], ["updated_at", "2017-06-26 03:33:06.589253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:33:06.590339"], ["updated_at", "2017-06-26 03:33:06.590339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:33:06.592360"], ["updated_at", "2017-06-26 03:33:06.592360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:33:06.593081"], ["updated_at", "2017-06-26 03:33:06.593081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.597516"], ["updated_at", "2017-06-26 03:33:06.597516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 5)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 5)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.602744"], ["updated_at", "2017-06-26 03:33:06.602744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.607648"], ["updated_at", "2017-06-26 03:33:06.607648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.608552"], ["updated_at", "2017-06-26 03:33:06.608552"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.610499"], ["updated_at", "2017-06-26 03:33:06.610499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.611237"], ["updated_at", "2017-06-26 03:33:06.611237"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.613210"], ["updated_at", "2017-06-26 03:33:06.613210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.617328"], ["updated_at", "2017-06-26 03:33:06.617328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.628408"], ["updated_at", "2017-06-26 03:33:06.628408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 3)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:33:06.638149"], ["updated_at", "2017-06-26 03:33:06.638149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.644193"], ["updated_at", "2017-06-26 03:33:06.644193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.646682"], ["updated_at", "2017-06-26 03:33:06.646682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:33:06.655460"], ["updated_at", "2017-06-26 03:33:06.655460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 3], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.668915"], ["updated_at", "2017-06-26 03:33:06.668915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.669898"], ["updated_at", "2017-06-26 03:33:06.669898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.677190"], ["updated_at", "2017-06-26 03:33:06.677190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.683234"], ["updated_at", "2017-06-26 03:33:06.683234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.684559"], ["updated_at", "2017-06-26 03:33:06.684559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.685617"], ["updated_at", "2017-06-26 03:33:06.685617"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.689608"], ["updated_at", "2017-06-26 03:33:06.689608"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:33:06.692177"], ["updated_at", "2017-06-26 03:33:06.692177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:33:06.695167"], ["updated_at", "2017-06-26 03:33:06.695167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.701068"], ["updated_at", "2017-06-26 03:33:06.701068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.702117"], ["updated_at", "2017-06-26 03:33:06.702117"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 5)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.707081"], ["updated_at", "2017-06-26 03:33:06.707081"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.708151"], ["updated_at", "2017-06-26 03:33:06.708151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 4) OR ("test_attrs_test_models_2"."id" = 4))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.713517"], ["updated_at", "2017-06-26 03:33:06.713517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.714387"], ["updated_at", "2017-06-26 03:33:06.714387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.717123"], ["updated_at", "2017-06-26 03:33:06.717123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (3,4))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.724023"], ["updated_at", "2017-06-26 03:33:06.724023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.725083"], ["updated_at", "2017-06-26 03:33:06.725083"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.728655"], ["updated_at", "2017-06-26 03:33:06.728655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.735523"], ["updated_at", "2017-06-26 03:33:06.735523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.742656"], ["updated_at", "2017-06-26 03:33:06.742656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.744803"], ["updated_at", "2017-06-26 03:33:06.744803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.748128"], ["updated_at", "2017-06-26 03:33:06.748128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.749180"], ["updated_at", "2017-06-26 03:33:06.749180"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.759408"], ["updated_at", "2017-06-26 03:33:06.759408"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.760273"], ["updated_at", "2017-06-26 03:33:06.760273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.762287"], ["updated_at", "2017-06-26 03:33:06.762287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:33:06.765960"], ["updated_at", "2017-06-26 03:33:06.765960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:33:06.767073"], ["updated_at", "2017-06-26 03:33:06.767073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.767870"], ["updated_at", "2017-06-26 03:33:06.767870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.769158"], ["updated_at", "2017-06-26 03:33:06.769158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.770048"], ["updated_at", "2017-06-26 03:33:06.770048"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 4], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 4], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 4], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.779261"], ["updated_at", "2017-06-26 03:33:06.779261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.780046"], ["updated_at", "2017-06-26 03:33:06.780046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.780739"], ["updated_at", "2017-06-26 03:33:06.780739"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.785169"], ["updated_at", "2017-06-26 03:33:06.785169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.787388"], ["updated_at", "2017-06-26 03:33:06.787388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.790523"], ["updated_at", "2017-06-26 03:33:06.790523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.795099"], ["updated_at", "2017-06-26 03:33:06.795099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.797347"], ["updated_at", "2017-06-26 03:33:06.797347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.799235"], ["updated_at", "2017-06-26 03:33:06.799235"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.801439"], ["updated_at", "2017-06-26 03:33:06.801439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.802134"], ["updated_at", "2017-06-26 03:33:06.802134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (4,8)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (9))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:33:06.811728"], ["updated_at", "2017-06-26 03:33:06.811728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:33:06.812842"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:33:06.813743"], ["updated_at", "2017-06-26 03:33:06.813743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:33:06.814449"], ["updated_at", "2017-06-26 03:33:06.814449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.815721"], ["updated_at", "2017-06-26 03:33:06.815721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:33:06.816531"], ["updated_at", "2017-06-26 03:33:06.816531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:33:06.817712"], ["updated_at", "2017-06-26 03:33:06.817712"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:33:06.818792"], ["updated_at", "2017-06-26 03:33:06.818792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 6], ["test_another_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:33:06.820747"], ["updated_at", "2017-06-26 03:33:06.820747"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:33:06.821633"], ["updated_at", "2017-06-26 03:33:06.821633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 8], ["test_another_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.823710"], ["updated_at", "2017-06-26 03:33:06.823710"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.824498"], ["updated_at", "2017-06-26 03:33:06.824498"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 11))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 5], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 6], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.838847"], ["updated_at", "2017-06-26 03:33:06.838847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:06.839678"], ["updated_at", "2017-06-26 03:33:06.839678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 12], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.545683"], ["updated_at", "2017-06-26 03:33:12.545683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.554316"], ["updated_at", "2017-06-26 03:33:12.554316"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.560403"], ["updated_at", "2017-06-26 03:33:12.560403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.561677"], ["updated_at", "2017-06-26 03:33:12.561677"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.565607"], ["updated_at", "2017-06-26 03:33:12.565607"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.596988"], ["updated_at", "2017-06-26 03:33:12.596988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.612783"], ["updated_at", "2017-06-26 03:33:12.612783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.620399"], ["updated_at", "2017-06-26 03:33:12.620399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.621552"], ["updated_at", "2017-06-26 03:33:12.621552"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.624564"], ["updated_at", "2017-06-26 03:33:12.624564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.625494"], ["updated_at", "2017-06-26 03:33:12.625494"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.647933"], ["updated_at", "2017-06-26 03:33:12.647933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.649086"], ["updated_at", "2017-06-26 03:33:12.649086"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.652096"], ["updated_at", "2017-06-26 03:33:12.652096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.653053"], ["updated_at", "2017-06-26 03:33:12.653053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.660504"], ["updated_at", "2017-06-26 03:33:12.660504"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.661636"], ["updated_at", "2017-06-26 03:33:12.661636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.662598"], ["updated_at", "2017-06-26 03:33:12.662598"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.665834"], ["updated_at", "2017-06-26 03:33:12.665834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.675460"], ["updated_at", "2017-06-26 03:33:12.675460"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.683009"], ["updated_at", "2017-06-26 03:33:12.683009"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.683953"], ["updated_at", "2017-06-26 03:33:12.683953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:33:12.699234"], ["updated_at", "2017-06-26 03:33:12.699234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:33:12.714670"], ["updated_at", "2017-06-26 03:33:12.714670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.732102"], ["updated_at", "2017-06-26 03:33:12.732102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.733697"], ["updated_at", "2017-06-26 03:33:12.733697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.736625"], ["updated_at", "2017-06-26 03:33:12.736625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.741871"], ["updated_at", "2017-06-26 03:33:12.741871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.742878"], ["updated_at", "2017-06-26 03:33:12.742878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.743865"], ["updated_at", "2017-06-26 03:33:12.743865"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.747801"], ["updated_at", "2017-06-26 03:33:12.747801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.753295"], ["updated_at", "2017-06-26 03:33:12.753295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.754299"], ["updated_at", "2017-06-26 03:33:12.754299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.757230"], ["updated_at", "2017-06-26 03:33:12.757230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.760976"], ["updated_at", "2017-06-26 03:33:12.760976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.761995"], ["updated_at", "2017-06-26 03:33:12.761995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:33:12.772640"], ["updated_at", "2017-06-26 03:33:12.772640"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:33:12.775130"], ["updated_at", "2017-06-26 03:33:12.775130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.787328"], ["updated_at", "2017-06-26 03:33:12.787328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:33:12.788241"], ["updated_at", "2017-06-26 03:33:12.788241"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:33:12.791306"], ["updated_at", "2017-06-26 03:33:12.791306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:33:12.792792"], ["updated_at", "2017-06-26 03:33:12.792792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.793733"], ["updated_at", "2017-06-26 03:33:12.793733"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.796345"], ["updated_at", "2017-06-26 03:33:12.796345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.806212"], ["updated_at", "2017-06-26 03:33:12.806212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.807247"], ["updated_at", "2017-06-26 03:33:12.807247"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.809758"], ["updated_at", "2017-06-26 03:33:12.809758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.810615"], ["updated_at", "2017-06-26 03:33:12.810615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:33:12.816436"], ["updated_at", "2017-06-26 03:33:12.816436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:33:12.817381"], ["updated_at", "2017-06-26 03:33:12.817381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:33:12.819348"], ["updated_at", "2017-06-26 03:33:12.819348"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:33:12.820315"], ["updated_at", "2017-06-26 03:33:12.820315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.824734"], ["updated_at", "2017-06-26 03:33:12.824734"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.831717"], ["updated_at", "2017-06-26 03:33:12.831717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.837260"], ["updated_at", "2017-06-26 03:33:12.837260"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.842818"], ["updated_at", "2017-06-26 03:33:12.842818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.845923"], ["updated_at", "2017-06-26 03:33:12.845923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.850621"], ["updated_at", "2017-06-26 03:33:12.850621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.856775"], ["updated_at", "2017-06-26 03:33:12.856775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.859429"], ["updated_at", "2017-06-26 03:33:12.859429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.878826"], ["updated_at", "2017-06-26 03:33:12.878826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.881334"], ["updated_at", "2017-06-26 03:33:12.881334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.884786"], ["updated_at", "2017-06-26 03:33:12.884786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.885771"], ["updated_at", "2017-06-26 03:33:12.885771"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.887703"], ["updated_at", "2017-06-26 03:33:12.887703"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:33:12.891293"], ["updated_at", "2017-06-26 03:33:12.891293"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 03:33:12.893495"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:33:12.895865"], ["updated_at", "2017-06-26 03:33:12.895865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:33:12.897001"], ["updated_at", "2017-06-26 03:33:12.897001"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.901869"], ["updated_at", "2017-06-26 03:33:12.901869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.904501"], ["updated_at", "2017-06-26 03:33:12.904501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.906786"], ["updated_at", "2017-06-26 03:33:12.906786"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:33:12.910377"], ["updated_at", "2017-06-26 03:33:12.910377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:33:12.911251"], ["updated_at", "2017-06-26 03:33:12.911251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:33:12.912808"], ["updated_at", "2017-06-26 03:33:12.912808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:33:12.913683"], ["updated_at", "2017-06-26 03:33:12.913683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.929234"], ["updated_at", "2017-06-26 03:33:12.929234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.937316"], ["updated_at", "2017-06-26 03:33:12.937316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.942562"], ["updated_at", "2017-06-26 03:33:12.942562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.945464"], ["updated_at", "2017-06-26 03:33:12.945464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:33:12.959761"], ["updated_at", "2017-06-26 03:33:12.959761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:33:12.965721"], ["updated_at", "2017-06-26 03:33:12.965721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:33:12.966734"], ["updated_at", "2017-06-26 03:33:12.966734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:33:13.014400"], ["updated_at", "2017-06-26 03:33:13.014400"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.6ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.036238"], ["updated_at", "2017-06-26 03:45:00.036238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.037296"], ["updated_at", "2017-06-26 03:45:00.037296"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.042526"], ["updated_at", "2017-06-26 03:45:00.042526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.076637"], ["updated_at", "2017-06-26 03:45:00.076637"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.077785"], ["updated_at", "2017-06-26 03:45:00.077785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:45:00.092839"], ["updated_at", "2017-06-26 03:45:00.092839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.098664"], ["updated_at", "2017-06-26 03:45:00.098664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.100069"], ["updated_at", "2017-06-26 03:45:00.100069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.113938"], ["updated_at", "2017-06-26 03:45:00.113938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.119705"], ["updated_at", "2017-06-26 03:45:00.119705"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.121857"], ["updated_at", "2017-06-26 03:45:00.121857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.124165"], ["updated_at", "2017-06-26 03:45:00.124165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.145162"], ["updated_at", "2017-06-26 03:45:00.145162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.150901"], ["updated_at", "2017-06-26 03:45:00.150901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.153489"], ["updated_at", "2017-06-26 03:45:00.153489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:45:00.171060"], ["updated_at", "2017-06-26 03:45:00.171060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:45:00.172000"], ["updated_at", "2017-06-26 03:45:00.172000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:45:00.173835"], ["updated_at", "2017-06-26 03:45:00.173835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:45:00.175001"], ["updated_at", "2017-06-26 03:45:00.175001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.190764"], ["updated_at", "2017-06-26 03:45:00.190764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.191975"], ["updated_at", "2017-06-26 03:45:00.191975"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.194924"], ["updated_at", "2017-06-26 03:45:00.194924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.195855"], ["updated_at", "2017-06-26 03:45:00.195855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.201363"], ["updated_at", "2017-06-26 03:45:00.201363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.210613"], ["updated_at", "2017-06-26 03:45:00.210613"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.211808"], ["updated_at", "2017-06-26 03:45:00.211808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.212955"], ["updated_at", "2017-06-26 03:45:00.212955"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.216052"], ["updated_at", "2017-06-26 03:45:00.216052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.221477"], ["updated_at", "2017-06-26 03:45:00.221477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.222515"], ["updated_at", "2017-06-26 03:45:00.222515"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.225978"], ["updated_at", "2017-06-26 03:45:00.225978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.227023"], ["updated_at", "2017-06-26 03:45:00.227023"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.236933"], ["updated_at", "2017-06-26 03:45:00.236933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.237751"], ["updated_at", "2017-06-26 03:45:00.237751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.240147"], ["updated_at", "2017-06-26 03:45:00.240147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.244150"], ["updated_at", "2017-06-26 03:45:00.244150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.245254"], ["updated_at", "2017-06-26 03:45:00.245254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.246546"], ["updated_at", "2017-06-26 03:45:00.246546"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.249548"], ["updated_at", "2017-06-26 03:45:00.249548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.250432"], ["updated_at", "2017-06-26 03:45:00.250432"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.252740"], ["updated_at", "2017-06-26 03:45:00.252740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.259752"], ["updated_at", "2017-06-26 03:45:00.259752"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.266845"], ["updated_at", "2017-06-26 03:45:00.266845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:45:00.272040"], ["updated_at", "2017-06-26 03:45:00.272040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:45:00.272905"], ["updated_at", "2017-06-26 03:45:00.272905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.273748"], ["updated_at", "2017-06-26 03:45:00.273748"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:45:00.276491"], ["updated_at", "2017-06-26 03:45:00.276491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:45:00.277514"], ["updated_at", "2017-06-26 03:45:00.277514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:45:00.279423"], ["updated_at", "2017-06-26 03:45:00.279423"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:45:00.280442"], ["updated_at", "2017-06-26 03:45:00.280442"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.288409"], ["updated_at", "2017-06-26 03:45:00.288409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.289319"], ["updated_at", "2017-06-26 03:45:00.289319"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:45:00.291601"], ["updated_at", "2017-06-26 03:45:00.291601"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:45:00.294305"], ["updated_at", "2017-06-26 03:45:00.294305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:45:00.308032"], ["updated_at", "2017-06-26 03:45:00.308032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:45:00.310184"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:45:00.311796"], ["updated_at", "2017-06-26 03:45:00.311796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:45:00.312654"], ["updated_at", "2017-06-26 03:45:00.312654"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.317312"], ["updated_at", "2017-06-26 03:45:00.317312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.322494"], ["updated_at", "2017-06-26 03:45:00.322494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:45:00.323626"], ["updated_at", "2017-06-26 03:45:00.323626"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.327021"], ["updated_at", "2017-06-26 03:45:00.327021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.334137"], ["updated_at", "2017-06-26 03:45:00.334137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.334998"], ["updated_at", "2017-06-26 03:45:00.334998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.337124"], ["updated_at", "2017-06-26 03:45:00.337124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.342859"], ["updated_at", "2017-06-26 03:45:00.342859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.345089"], ["updated_at", "2017-06-26 03:45:00.345089"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.351077"], ["updated_at", "2017-06-26 03:45:00.351077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.351998"], ["updated_at", "2017-06-26 03:45:00.351998"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.354637"], ["updated_at", "2017-06-26 03:45:00.354637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.355612"], ["updated_at", "2017-06-26 03:45:00.355612"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.358261"], ["updated_at", "2017-06-26 03:45:00.358261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.361003"], ["updated_at", "2017-06-26 03:45:00.361003"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.363085"], ["updated_at", "2017-06-26 03:45:00.363085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.366657"], ["updated_at", "2017-06-26 03:45:00.366657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.367468"], ["updated_at", "2017-06-26 03:45:00.367468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:45:00.377490"], ["updated_at", "2017-06-26 03:45:00.377490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.529070"], ["updated_at", "2017-06-26 03:45:00.529070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.533757"], ["updated_at", "2017-06-26 03:45:00.533757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.538485"], ["updated_at", "2017-06-26 03:45:00.538485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:00.541283"], ["updated_at", "2017-06-26 03:45:00.541283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:45:00.547034"], ["updated_at", "2017-06-26 03:45:00.547034"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:45:00.552922"], ["updated_at", "2017-06-26 03:45:00.552922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:45:00.553729"], ["updated_at", "2017-06-26 03:45:00.553729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.747003"], ["updated_at", "2017-06-26 03:45:05.747003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.748395"], ["updated_at", "2017-06-26 03:45:05.748395"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:45:05.753639"], ["updated_at", "2017-06-26 03:45:05.753639"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:45:05.770677"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:45:05.775704"], ["updated_at", "2017-06-26 03:45:05.775704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:45:05.776869"], ["updated_at", "2017-06-26 03:45:05.776869"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.782109"], ["updated_at", "2017-06-26 03:45:05.782109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.782996"], ["updated_at", "2017-06-26 03:45:05.782996"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.789046"], ["updated_at", "2017-06-26 03:45:05.789046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.807497"], ["updated_at", "2017-06-26 03:45:05.807497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.808549"], ["updated_at", "2017-06-26 03:45:05.808549"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.811223"], ["updated_at", "2017-06-26 03:45:05.811223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.812124"], ["updated_at", "2017-06-26 03:45:05.812124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.824309"], ["updated_at", "2017-06-26 03:45:05.824309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.825478"], ["updated_at", "2017-06-26 03:45:05.825478"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.828412"], ["updated_at", "2017-06-26 03:45:05.828412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.830581"], ["updated_at", "2017-06-26 03:45:05.830581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.833749"], ["updated_at", "2017-06-26 03:45:05.833749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:45:05.838366"], ["updated_at", "2017-06-26 03:45:05.838366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:45:05.840340"], ["updated_at", "2017-06-26 03:45:05.840340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.850804"], ["updated_at", "2017-06-26 03:45:05.850804"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.852845"], ["updated_at", "2017-06-26 03:45:05.852845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.853593"], ["updated_at", "2017-06-26 03:45:05.853593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.854298"], ["updated_at", "2017-06-26 03:45:05.854298"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.856761"], ["updated_at", "2017-06-26 03:45:05.856761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.861519"], ["updated_at", "2017-06-26 03:45:05.861519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.862428"], ["updated_at", "2017-06-26 03:45:05.862428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.863138"], ["updated_at", "2017-06-26 03:45:05.863138"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.865749"], ["updated_at", "2017-06-26 03:45:05.865749"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.869718"], ["updated_at", "2017-06-26 03:45:05.869718"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.871634"], ["updated_at", "2017-06-26 03:45:05.871634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.873510"], ["updated_at", "2017-06-26 03:45:05.873510"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.883697"], ["updated_at", "2017-06-26 03:45:05.883697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.886112"], ["updated_at", "2017-06-26 03:45:05.886112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.909577"], ["updated_at", "2017-06-26 03:45:05.909577"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:45:05.911076"], ["updated_at", "2017-06-26 03:45:05.911076"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:45:05.919232"], ["updated_at", "2017-06-26 03:45:05.919232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:45:05.924877"], ["updated_at", "2017-06-26 03:45:05.924877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.937898"], ["updated_at", "2017-06-26 03:45:05.937898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.953408"], ["updated_at", "2017-06-26 03:45:05.953408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.954554"], ["updated_at", "2017-06-26 03:45:05.954554"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:45:05.961079"], ["updated_at", "2017-06-26 03:45:05.961079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:45:05.962273"], ["updated_at", "2017-06-26 03:45:05.962273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:45:05.964568"], ["updated_at", "2017-06-26 03:45:05.964568"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:45:05.965770"], ["updated_at", "2017-06-26 03:45:05.965770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.985115"], ["updated_at", "2017-06-26 03:45:05.985115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.989077"], ["updated_at", "2017-06-26 03:45:05.989077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.989782"], ["updated_at", "2017-06-26 03:45:05.989782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:05.996018"], ["updated_at", "2017-06-26 03:45:05.996018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:45:06.000221"], ["updated_at", "2017-06-26 03:45:06.000221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:45:06.001065"], ["updated_at", "2017-06-26 03:45:06.001065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:45:06.002751"], ["updated_at", "2017-06-26 03:45:06.002751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:45:06.003481"], ["updated_at", "2017-06-26 03:45:06.003481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.006575"], ["updated_at", "2017-06-26 03:45:06.006575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.007256"], ["updated_at", "2017-06-26 03:45:06.007256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.011615"], ["updated_at", "2017-06-26 03:45:06.011615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.012477"], ["updated_at", "2017-06-26 03:45:06.012477"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.014855"], ["updated_at", "2017-06-26 03:45:06.014855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.015563"], ["updated_at", "2017-06-26 03:45:06.015563"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.017240"], ["updated_at", "2017-06-26 03:45:06.017240"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.018413"], ["updated_at", "2017-06-26 03:45:06.018413"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.021627"], ["updated_at", "2017-06-26 03:45:06.021627"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.026787"], ["updated_at", "2017-06-26 03:45:06.026787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.027643"], ["updated_at", "2017-06-26 03:45:06.027643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.032879"], ["updated_at", "2017-06-26 03:45:06.032879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.038019"], ["updated_at", "2017-06-26 03:45:06.038019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.043204"], ["updated_at", "2017-06-26 03:45:06.043204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.043931"], ["updated_at", "2017-06-26 03:45:06.043931"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.053694"], ["updated_at", "2017-06-26 03:45:06.053694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.056787"], ["updated_at", "2017-06-26 03:45:06.056787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.058563"], ["updated_at", "2017-06-26 03:45:06.058563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:45:06.062079"], ["updated_at", "2017-06-26 03:45:06.062079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:45:06.063151"], ["updated_at", "2017-06-26 03:45:06.063151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.063987"], ["updated_at", "2017-06-26 03:45:06.063987"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.065937"], ["updated_at", "2017-06-26 03:45:06.065937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.066720"], ["updated_at", "2017-06-26 03:45:06.066720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.068525"], ["updated_at", "2017-06-26 03:45:06.068525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.099725"], ["updated_at", "2017-06-26 03:45:06.099725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.104430"], ["updated_at", "2017-06-26 03:45:06.104430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.106796"], ["updated_at", "2017-06-26 03:45:06.106796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:45:06.120264"], ["updated_at", "2017-06-26 03:45:06.120264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:45:06.121117"], ["updated_at", "2017-06-26 03:45:06.121117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:45:06.138171"], ["updated_at", "2017-06-26 03:45:06.138171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:45:06.142772"], ["updated_at", "2017-06-26 03:45:06.142772"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 8], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.839238"], ["updated_at", "2017-06-26 03:46:30.839238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.840306"], ["updated_at", "2017-06-26 03:46:30.840306"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.843075"], ["updated_at", "2017-06-26 03:46:30.843075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.849802"], ["updated_at", "2017-06-26 03:46:30.849802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:46:30.854463"], ["updated_at", "2017-06-26 03:46:30.854463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:46:30.855567"], ["updated_at", "2017-06-26 03:46:30.855567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.856542"], ["updated_at", "2017-06-26 03:46:30.856542"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.858363"], ["updated_at", "2017-06-26 03:46:30.858363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.860511"], ["updated_at", "2017-06-26 03:46:30.860511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.879831"], ["updated_at", "2017-06-26 03:46:30.879831"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.880858"], ["updated_at", "2017-06-26 03:46:30.880858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.893026"], ["updated_at", "2017-06-26 03:46:30.893026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.899130"], ["updated_at", "2017-06-26 03:46:30.899130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:46:30.900365"], ["updated_at", "2017-06-26 03:46:30.900365"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.903331"], ["updated_at", "2017-06-26 03:46:30.903331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.906106"], ["updated_at", "2017-06-26 03:46:30.906106"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.908510"], ["updated_at", "2017-06-26 03:46:30.908510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.912139"], ["updated_at", "2017-06-26 03:46:30.912139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.918065"], ["updated_at", "2017-06-26 03:46:30.918065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.919219"], ["updated_at", "2017-06-26 03:46:30.919219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.922330"], ["updated_at", "2017-06-26 03:46:30.922330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.926183"], ["updated_at", "2017-06-26 03:46:30.926183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.927050"], ["updated_at", "2017-06-26 03:46:30.927050"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.929162"], ["updated_at", "2017-06-26 03:46:30.929162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.930226"], ["updated_at", "2017-06-26 03:46:30.930226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.931161"], ["updated_at", "2017-06-26 03:46:30.931161"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:46:30.934368"], ["updated_at", "2017-06-26 03:46:30.934368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:46:30.935313"], ["updated_at", "2017-06-26 03:46:30.935313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:46:30.937366"], ["updated_at", "2017-06-26 03:46:30.937366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:46:30.938462"], ["updated_at", "2017-06-26 03:46:30.938462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.942140"], ["updated_at", "2017-06-26 03:46:30.942140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.943042"], ["updated_at", "2017-06-26 03:46:30.943042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:46:30.953197"], ["updated_at", "2017-06-26 03:46:30.953197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:46:30.955738"], ["updated_at", "2017-06-26 03:46:30.955738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.969147"], ["updated_at", "2017-06-26 03:46:30.969147"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.970396"], ["updated_at", "2017-06-26 03:46:30.970396"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:46:30.978777"], ["updated_at", "2017-06-26 03:46:30.978777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.990726"], ["updated_at", "2017-06-26 03:46:30.990726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.991543"], ["updated_at", "2017-06-26 03:46:30.991543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.998574"], ["updated_at", "2017-06-26 03:46:30.998574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:30.999377"], ["updated_at", "2017-06-26 03:46:30.999377"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.001719"], ["updated_at", "2017-06-26 03:46:31.001719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.002639"], ["updated_at", "2017-06-26 03:46:31.002639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:46:31.010353"], ["updated_at", "2017-06-26 03:46:31.010353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:46:31.012550"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:46:31.014298"], ["updated_at", "2017-06-26 03:46:31.014298"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:46:31.016113"], ["updated_at", "2017-06-26 03:46:31.016113"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.021351"], ["updated_at", "2017-06-26 03:46:31.021351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.023752"], ["updated_at", "2017-06-26 03:46:31.023752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.029163"], ["updated_at", "2017-06-26 03:46:31.029163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.034121"], ["updated_at", "2017-06-26 03:46:31.034121"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.035960"], ["updated_at", "2017-06-26 03:46:31.035960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.036797"], ["updated_at", "2017-06-26 03:46:31.036797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.037732"], ["updated_at", "2017-06-26 03:46:31.037732"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:46:31.040411"], ["updated_at", "2017-06-26 03:46:31.040411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:46:31.041233"], ["updated_at", "2017-06-26 03:46:31.041233"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:46:31.043292"], ["updated_at", "2017-06-26 03:46:31.043292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:46:31.044402"], ["updated_at", "2017-06-26 03:46:31.044402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.058080"], ["updated_at", "2017-06-26 03:46:31.058080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.063887"], ["updated_at", "2017-06-26 03:46:31.063887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.064832"], ["updated_at", "2017-06-26 03:46:31.064832"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.067146"], ["updated_at", "2017-06-26 03:46:31.067146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.071889"], ["updated_at", "2017-06-26 03:46:31.071889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.072781"], ["updated_at", "2017-06-26 03:46:31.072781"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.074755"], ["updated_at", "2017-06-26 03:46:31.074755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.075539"], ["updated_at", "2017-06-26 03:46:31.075539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.082265"], ["updated_at", "2017-06-26 03:46:31.082265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.088584"], ["updated_at", "2017-06-26 03:46:31.088584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.096834"], ["updated_at", "2017-06-26 03:46:31.096834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.105647"], ["updated_at", "2017-06-26 03:46:31.105647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.106878"], ["updated_at", "2017-06-26 03:46:31.106878"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:46:31.112279"], ["updated_at", "2017-06-26 03:46:31.112279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.123710"], ["updated_at", "2017-06-26 03:46:31.123710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.126111"], ["updated_at", "2017-06-26 03:46:31.126111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.132736"], ["updated_at", "2017-06-26 03:46:31.132736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.133681"], ["updated_at", "2017-06-26 03:46:31.133681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.136155"], ["updated_at", "2017-06-26 03:46:31.136155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.283916"], ["updated_at", "2017-06-26 03:46:31.283916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:46:31.290369"], ["updated_at", "2017-06-26 03:46:31.290369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:46:31.291201"], ["updated_at", "2017-06-26 03:46:31.291201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.316157"], ["updated_at", "2017-06-26 03:46:31.316157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.321005"], ["updated_at", "2017-06-26 03:46:31.321005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:31.323381"], ["updated_at", "2017-06-26 03:46:31.323381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:46:31.337957"], ["updated_at", "2017-06-26 03:46:31.337957"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.2ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.210568"], ["updated_at", "2017-06-26 03:46:36.210568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.214670"], ["updated_at", "2017-06-26 03:46:36.214670"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.229670"], ["updated_at", "2017-06-26 03:46:36.229670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.264405"], ["updated_at", "2017-06-26 03:46:36.264405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.265423"], ["updated_at", "2017-06-26 03:46:36.265423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.272410"], ["updated_at", "2017-06-26 03:46:36.272410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.273421"], ["updated_at", "2017-06-26 03:46:36.273421"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.276154"], ["updated_at", "2017-06-26 03:46:36.276154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.280959"], ["updated_at", "2017-06-26 03:46:36.280959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.281923"], ["updated_at", "2017-06-26 03:46:36.281923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.282803"], ["updated_at", "2017-06-26 03:46:36.282803"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.301536"], ["updated_at", "2017-06-26 03:46:36.301536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.302383"], ["updated_at", "2017-06-26 03:46:36.302383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (8.3ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:46:36.318270"], ["updated_at", "2017-06-26 03:46:36.318270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 03:46:36.319417"], ["updated_at", "2017-06-26 03:46:36.319417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.320337"], ["updated_at", "2017-06-26 03:46:36.320337"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.322380"], ["updated_at", "2017-06-26 03:46:36.322380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.324549"], ["updated_at", "2017-06-26 03:46:36.324549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.327643"], ["updated_at", "2017-06-26 03:46:36.327643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:46:36.330938"], ["updated_at", "2017-06-26 03:46:36.330938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:46:36.331688"], ["updated_at", "2017-06-26 03:46:36.331688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:46:36.333476"], ["updated_at", "2017-06-26 03:46:36.333476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:46:36.334518"], ["updated_at", "2017-06-26 03:46:36.334518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.337992"], ["updated_at", "2017-06-26 03:46:36.337992"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.338802"], ["updated_at", "2017-06-26 03:46:36.338802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.339466"], ["updated_at", "2017-06-26 03:46:36.339466"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.341650"], ["updated_at", "2017-06-26 03:46:36.341650"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.344013"], ["updated_at", "2017-06-26 03:46:36.344013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.350722"], ["updated_at", "2017-06-26 03:46:36.350722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.357848"], ["updated_at", "2017-06-26 03:46:36.357848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.358841"], ["updated_at", "2017-06-26 03:46:36.358841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.376249"], ["updated_at", "2017-06-26 03:46:36.376249"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.380586"], ["updated_at", "2017-06-26 03:46:36.380586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.381652"], ["updated_at", "2017-06-26 03:46:36.381652"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 03:46:36.384324"], ["updated_at", "2017-06-26 03:46:36.384324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 03:46:36.385262"], ["updated_at", "2017-06-26 03:46:36.385262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 03:46:36.386977"], ["updated_at", "2017-06-26 03:46:36.386977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 03:46:36.387757"], ["updated_at", "2017-06-26 03:46:36.387757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.395005"], ["updated_at", "2017-06-26 03:46:36.395005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.395819"], ["updated_at", "2017-06-26 03:46:36.395819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.397568"], ["updated_at", "2017-06-26 03:46:36.397568"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 03:46:36.402398"], ["updated_at", "2017-06-26 03:46:36.402398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 03:46:36.404100"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:46:36.408212"], ["updated_at", "2017-06-26 03:46:36.408212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 03:46:36.409114"], ["updated_at", "2017-06-26 03:46:36.409114"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 03:46:36.413663"], ["updated_at", "2017-06-26 03:46:36.413663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.426148"], ["updated_at", "2017-06-26 03:46:36.426148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.427016"], ["updated_at", "2017-06-26 03:46:36.427016"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.429400"], ["updated_at", "2017-06-26 03:46:36.429400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.430138"], ["updated_at", "2017-06-26 03:46:36.430138"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.431673"], ["updated_at", "2017-06-26 03:46:36.431673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.433649"], ["updated_at", "2017-06-26 03:46:36.433649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.435794"], ["updated_at", "2017-06-26 03:46:36.435794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.438873"], ["updated_at", "2017-06-26 03:46:36.438873"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.443802"], ["updated_at", "2017-06-26 03:46:36.443802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.444591"], ["updated_at", "2017-06-26 03:46:36.444591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.446407"], ["updated_at", "2017-06-26 03:46:36.446407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.449503"], ["updated_at", "2017-06-26 03:46:36.449503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.457738"], ["updated_at", "2017-06-26 03:46:36.457738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.459645"], ["updated_at", "2017-06-26 03:46:36.459645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 03:46:36.467709"], ["updated_at", "2017-06-26 03:46:36.467709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.472245"], ["updated_at", "2017-06-26 03:46:36.472245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.474420"], ["updated_at", "2017-06-26 03:46:36.474420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.477888"], ["updated_at", "2017-06-26 03:46:36.477888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 03:46:36.478697"], ["updated_at", "2017-06-26 03:46:36.478697"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 03:46:36.481209"], ["updated_at", "2017-06-26 03:46:36.481209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 03:46:36.483360"], ["updated_at", "2017-06-26 03:46:36.483360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.492095"], ["updated_at", "2017-06-26 03:46:36.492095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.493290"], ["updated_at", "2017-06-26 03:46:36.493290"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.502122"], ["updated_at", "2017-06-26 03:46:36.502122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.503105"], ["updated_at", "2017-06-26 03:46:36.503105"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.507768"], ["updated_at", "2017-06-26 03:46:36.507768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.508538"], ["updated_at", "2017-06-26 03:46:36.508538"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.510662"], ["updated_at", "2017-06-26 03:46:36.510662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.511419"], ["updated_at", "2017-06-26 03:46:36.511419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.517956"], ["updated_at", "2017-06-26 03:46:36.517956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.521966"], ["updated_at", "2017-06-26 03:46:36.521966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.558379"], ["updated_at", "2017-06-26 03:46:36.558379"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.575325"], ["updated_at", "2017-06-26 03:46:36.575325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.580281"], ["updated_at", "2017-06-26 03:46:36.580281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 03:46:36.582904"], ["updated_at", "2017-06-26 03:46:36.582904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 03:46:36.594970"], ["updated_at", "2017-06-26 03:46:36.594970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 03:46:36.595768"], ["updated_at", "2017-06-26 03:46:36.595768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 03:46:36.611433"], ["updated_at", "2017-06-26 03:46:36.611433"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 2], ["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:26.985799"], ["updated_at", "2017-06-26 04:01:26.985799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:01:27.001819"], ["updated_at", "2017-06-26 04:01:27.001819"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:01:27.006490"], ["updated_at", "2017-06-26 04:01:27.006490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:01:27.007638"], ["updated_at", "2017-06-26 04:01:27.007638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.033419"], ["updated_at", "2017-06-26 04:01:27.033419"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.039393"], ["updated_at", "2017-06-26 04:01:27.039393"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.044255"], ["updated_at", "2017-06-26 04:01:27.044255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.123622"], ["updated_at", "2017-06-26 04:01:27.123622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.124590"], ["updated_at", "2017-06-26 04:01:27.124590"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.126907"], ["updated_at", "2017-06-26 04:01:27.126907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.131135"], ["updated_at", "2017-06-26 04:01:27.131135"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.131972"], ["updated_at", "2017-06-26 04:01:27.131972"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.134277"], ["updated_at", "2017-06-26 04:01:27.134277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.135108"], ["updated_at", "2017-06-26 04:01:27.135108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.148535"], ["updated_at", "2017-06-26 04:01:27.148535"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.153576"], ["updated_at", "2017-06-26 04:01:27.153576"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.159291"], ["updated_at", "2017-06-26 04:01:27.159291"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:01:27.160481"], ["updated_at", "2017-06-26 04:01:27.160481"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.163135"], ["updated_at", "2017-06-26 04:01:27.163135"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:01:27.171402"], ["updated_at", "2017-06-26 04:01:27.171402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 04:01:27.173476"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:01:27.174661"], ["updated_at", "2017-06-26 04:01:27.174661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:01:27.175758"], ["updated_at", "2017-06-26 04:01:27.175758"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:01:27.180416"], ["updated_at", "2017-06-26 04:01:27.180416"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:01:27.183146"], ["updated_at", "2017-06-26 04:01:27.183146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.194459"], ["updated_at", "2017-06-26 04:01:27.194459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.195619"], ["updated_at", "2017-06-26 04:01:27.195619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.198762"], ["updated_at", "2017-06-26 04:01:27.198762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.202672"], ["updated_at", "2017-06-26 04:01:27.202672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.203720"], ["updated_at", "2017-06-26 04:01:27.203720"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.204595"], ["updated_at", "2017-06-26 04:01:27.204595"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.207547"], ["updated_at", "2017-06-26 04:01:27.207547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.213217"], ["updated_at", "2017-06-26 04:01:27.213217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.219361"], ["updated_at", "2017-06-26 04:01:27.219361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.220293"], ["updated_at", "2017-06-26 04:01:27.220293"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.222753"], ["updated_at", "2017-06-26 04:01:27.222753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.225133"], ["updated_at", "2017-06-26 04:01:27.225133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.228704"], ["updated_at", "2017-06-26 04:01:27.228704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.229729"], ["updated_at", "2017-06-26 04:01:27.229729"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:01:27.232417"], ["updated_at", "2017-06-26 04:01:27.232417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:01:27.233283"], ["updated_at", "2017-06-26 04:01:27.233283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:01:27.235049"], ["updated_at", "2017-06-26 04:01:27.235049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:01:27.236099"], ["updated_at", "2017-06-26 04:01:27.236099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.243376"], ["updated_at", "2017-06-26 04:01:27.243376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.250016"], ["updated_at", "2017-06-26 04:01:27.250016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.253049"], ["updated_at", "2017-06-26 04:01:27.253049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.256381"], ["updated_at", "2017-06-26 04:01:27.256381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.258387"], ["updated_at", "2017-06-26 04:01:27.258387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:01:27.263357"], ["updated_at", "2017-06-26 04:01:27.263357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.275263"], ["updated_at", "2017-06-26 04:01:27.275263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.281820"], ["updated_at", "2017-06-26 04:01:27.281820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.288552"], ["updated_at", "2017-06-26 04:01:27.288552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.289667"], ["updated_at", "2017-06-26 04:01:27.289667"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (7.8ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:01:27.305360"], ["updated_at", "2017-06-26 04:01:27.305360"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:01:27.306293"], ["updated_at", "2017-06-26 04:01:27.306293"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:01:27.308138"], ["updated_at", "2017-06-26 04:01:27.308138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:01:27.309246"], ["updated_at", "2017-06-26 04:01:27.309246"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:01:27.315472"], ["updated_at", "2017-06-26 04:01:27.315472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.327179"], ["updated_at", "2017-06-26 04:01:27.327179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.328053"], ["updated_at", "2017-06-26 04:01:27.328053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.328960"], ["updated_at", "2017-06-26 04:01:27.328960"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.331286"], ["updated_at", "2017-06-26 04:01:27.331286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.331990"], ["updated_at", "2017-06-26 04:01:27.331990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.334299"], ["updated_at", "2017-06-26 04:01:27.334299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.337572"], ["updated_at", "2017-06-26 04:01:27.337572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.338353"], ["updated_at", "2017-06-26 04:01:27.338353"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.340469"], ["updated_at", "2017-06-26 04:01:27.340469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.341202"], ["updated_at", "2017-06-26 04:01:27.341202"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.342785"], ["updated_at", "2017-06-26 04:01:27.342785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.343658"], ["updated_at", "2017-06-26 04:01:27.343658"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.352584"], ["updated_at", "2017-06-26 04:01:27.352584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:01:27.356650"], ["updated_at", "2017-06-26 04:01:27.356650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:01:27.357403"], ["updated_at", "2017-06-26 04:01:27.357403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.358122"], ["updated_at", "2017-06-26 04:01:27.358122"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.362094"], ["updated_at", "2017-06-26 04:01:27.362094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.363180"], ["updated_at", "2017-06-26 04:01:27.363180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.381909"], ["updated_at", "2017-06-26 04:01:27.381909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.383865"], ["updated_at", "2017-06-26 04:01:27.383865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.385731"], ["updated_at", "2017-06-26 04:01:27.385731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.388791"], ["updated_at", "2017-06-26 04:01:27.388791"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.390571"], ["updated_at", "2017-06-26 04:01:27.390571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.391358"], ["updated_at", "2017-06-26 04:01:27.391358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.398300"], ["updated_at", "2017-06-26 04:01:27.398300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:01:27.399058"], ["updated_at", "2017-06-26 04:01:27.399058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.233183"], ["updated_at", "2017-06-26 04:43:48.233183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 8], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:43:48.281015"], ["updated_at", "2017-06-26 04:43:48.281015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:43:48.282011"], ["updated_at", "2017-06-26 04:43:48.282011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:43:48.308033"], ["updated_at", "2017-06-26 04:43:48.308033"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.314625"], ["updated_at", "2017-06-26 04:43:48.314625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.320309"], ["updated_at", "2017-06-26 04:43:48.320309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.323681"], ["updated_at", "2017-06-26 04:43:48.323681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.443406"], ["updated_at", "2017-06-26 04:43:48.443406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.444503"], ["updated_at", "2017-06-26 04:43:48.444503"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.446968"], ["updated_at", "2017-06-26 04:43:48.446968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.447669"], ["updated_at", "2017-06-26 04:43:48.447669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.448332"], ["updated_at", "2017-06-26 04:43:48.448332"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.453299"], ["updated_at", "2017-06-26 04:43:48.453299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.458690"], ["updated_at", "2017-06-26 04:43:48.458690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.462334"], ["updated_at", "2017-06-26 04:43:48.462334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.464514"], ["updated_at", "2017-06-26 04:43:48.464514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.466322"], ["updated_at", "2017-06-26 04:43:48.466322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.469608"], ["updated_at", "2017-06-26 04:43:48.469608"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.470818"], ["updated_at", "2017-06-26 04:43:48.470818"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.473096"], ["updated_at", "2017-06-26 04:43:48.473096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.473886"], ["updated_at", "2017-06-26 04:43:48.473886"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:43:48.479148"], ["updated_at", "2017-06-26 04:43:48.479148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.483312"], ["updated_at", "2017-06-26 04:43:48.483312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.484100"], ["updated_at", "2017-06-26 04:43:48.484100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.490561"], ["updated_at", "2017-06-26 04:43:48.490561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.491319"], ["updated_at", "2017-06-26 04:43:48.491319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.491979"], ["updated_at", "2017-06-26 04:43:48.491979"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:43:48.493935"], ["updated_at", "2017-06-26 04:43:48.493935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:43:48.494617"], ["updated_at", "2017-06-26 04:43:48.494617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:43:48.496336"], ["updated_at", "2017-06-26 04:43:48.496336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:43:48.497020"], ["updated_at", "2017-06-26 04:43:48.497020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.499834"], ["updated_at", "2017-06-26 04:43:48.499834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.504297"], ["updated_at", "2017-06-26 04:43:48.504297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.505150"], ["updated_at", "2017-06-26 04:43:48.505150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:43:48.515420"], ["updated_at", "2017-06-26 04:43:48.515420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:43:48.516358"], ["updated_at", "2017-06-26 04:43:48.516358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:43:48.518167"], ["updated_at", "2017-06-26 04:43:48.518167"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:43:48.519089"], ["updated_at", "2017-06-26 04:43:48.519089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.526839"], ["updated_at", "2017-06-26 04:43:48.526839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.532040"], ["updated_at", "2017-06-26 04:43:48.532040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.537925"], ["updated_at", "2017-06-26 04:43:48.537925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.538841"], ["updated_at", "2017-06-26 04:43:48.538841"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.540777"], ["updated_at", "2017-06-26 04:43:48.540777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.541518"], ["updated_at", "2017-06-26 04:43:48.541518"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:43:48.543847"], ["updated_at", "2017-06-26 04:43:48.543847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:43:48.544631"], ["updated_at", "2017-06-26 04:43:48.544631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.545331"], ["updated_at", "2017-06-26 04:43:48.545331"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:43:48.547033"], ["updated_at", "2017-06-26 04:43:48.547033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:43:48.549247"], ["updated_at", "2017-06-26 04:43:48.549247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.557790"], ["updated_at", "2017-06-26 04:43:48.557790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.560472"], ["updated_at", "2017-06-26 04:43:48.560472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.572169"], ["updated_at", "2017-06-26 04:43:48.572169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.573028"], ["updated_at", "2017-06-26 04:43:48.573028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (3.8ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.579178"], ["updated_at", "2017-06-26 04:43:48.579178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.582976"], ["updated_at", "2017-06-26 04:43:48.582976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.583790"], ["updated_at", "2017-06-26 04:43:48.583790"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.585705"], ["updated_at", "2017-06-26 04:43:48.585705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.586502"], ["updated_at", "2017-06-26 04:43:48.586502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:43:48.594528"], ["updated_at", "2017-06-26 04:43:48.594528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 04:43:48.596841"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:43:48.597873"], ["updated_at", "2017-06-26 04:43:48.597873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:43:48.598720"], ["updated_at", "2017-06-26 04:43:48.598720"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.602458"], ["updated_at", "2017-06-26 04:43:48.602458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.604832"], ["updated_at", "2017-06-26 04:43:48.604832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.608759"], ["updated_at", "2017-06-26 04:43:48.608759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.609592"], ["updated_at", "2017-06-26 04:43:48.609592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:43:48.615736"], ["updated_at", "2017-06-26 04:43:48.615736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.626595"], ["updated_at", "2017-06-26 04:43:48.626595"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.631853"], ["updated_at", "2017-06-26 04:43:48.631853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.635998"], ["updated_at", "2017-06-26 04:43:48.635998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.641347"], ["updated_at", "2017-06-26 04:43:48.641347"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.649079"], ["updated_at", "2017-06-26 04:43:48.649079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.651371"], ["updated_at", "2017-06-26 04:43:48.651371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.654502"], ["updated_at", "2017-06-26 04:43:48.654502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.655457"], ["updated_at", "2017-06-26 04:43:48.655457"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.658178"], ["updated_at", "2017-06-26 04:43:48.658178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.659081"], ["updated_at", "2017-06-26 04:43:48.659081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.661307"], ["updated_at", "2017-06-26 04:43:48.661307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.664853"], ["updated_at", "2017-06-26 04:43:48.664853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:43:48.665699"], ["updated_at", "2017-06-26 04:43:48.665699"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.681318"], ["updated_at", "2017-06-26 04:43:48.681318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.682115"], ["updated_at", "2017-06-26 04:43:48.682115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.691391"], ["updated_at", "2017-06-26 04:43:48.691391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:43:48.696529"], ["updated_at", "2017-06-26 04:43:48.696529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:03.938737"], ["updated_at", "2017-06-26 04:44:03.938737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:03.944172"], ["updated_at", "2017-06-26 04:44:03.944172"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:44:03.972429"], ["updated_at", "2017-06-26 04:44:03.972429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:44:03.973959"], ["updated_at", "2017-06-26 04:44:03.973959"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:03.974982"], ["updated_at", "2017-06-26 04:44:03.974982"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:44:03.977723"], ["updated_at", "2017-06-26 04:44:03.977723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:44:03.982901"], ["updated_at", "2017-06-26 04:44:03.982901"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:03.994986"], ["updated_at", "2017-06-26 04:44:03.994986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.001095"], ["updated_at", "2017-06-26 04:44:04.001095"]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.002989"], ["updated_at", "2017-06-26 04:44:04.002989"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.014505"], ["updated_at", "2017-06-26 04:44:04.014505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.015555"], ["updated_at", "2017-06-26 04:44:04.015555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.025842"], ["updated_at", "2017-06-26 04:44:04.025842"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:44:04.027083"], ["updated_at", "2017-06-26 04:44:04.027083"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.030368"], ["updated_at", "2017-06-26 04:44:04.030368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.040556"], ["updated_at", "2017-06-26 04:44:04.040556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.050611"], ["updated_at", "2017-06-26 04:44:04.050611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.057426"], ["updated_at", "2017-06-26 04:44:04.057426"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.059295"], ["updated_at", "2017-06-26 04:44:04.059295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.064968"], ["updated_at", "2017-06-26 04:44:04.064968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.071072"], ["updated_at", "2017-06-26 04:44:04.071072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.071995"], ["updated_at", "2017-06-26 04:44:04.071995"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.074501"], ["updated_at", "2017-06-26 04:44:04.074501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.078694"], ["updated_at", "2017-06-26 04:44:04.078694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.084628"], ["updated_at", "2017-06-26 04:44:04.084628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.087338"], ["updated_at", "2017-06-26 04:44:04.087338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.097583"], ["updated_at", "2017-06-26 04:44:04.097583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.101795"], ["updated_at", "2017-06-26 04:44:04.101795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.102819"], ["updated_at", "2017-06-26 04:44:04.102819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.109849"], ["updated_at", "2017-06-26 04:44:04.109849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.110654"], ["updated_at", "2017-06-26 04:44:04.110654"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.113039"], ["updated_at", "2017-06-26 04:44:04.113039"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.115823"], ["updated_at", "2017-06-26 04:44:04.115823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:44:04.120622"], ["updated_at", "2017-06-26 04:44:04.120622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:44:04.121571"], ["updated_at", "2017-06-26 04:44:04.121571"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:44:04.123302"], ["updated_at", "2017-06-26 04:44:04.123302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:44:04.124193"], ["updated_at", "2017-06-26 04:44:04.124193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.127799"], ["updated_at", "2017-06-26 04:44:04.127799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.128827"], ["updated_at", "2017-06-26 04:44:04.128827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.135718"], ["updated_at", "2017-06-26 04:44:04.135718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.136926"], ["updated_at", "2017-06-26 04:44:04.136926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.137942"], ["updated_at", "2017-06-26 04:44:04.137942"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.141018"], ["updated_at", "2017-06-26 04:44:04.141018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.145899"], ["updated_at", "2017-06-26 04:44:04.145899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.150288"], ["updated_at", "2017-06-26 04:44:04.150288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.151136"], ["updated_at", "2017-06-26 04:44:04.151136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.151835"], ["updated_at", "2017-06-26 04:44:04.151835"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.154179"], ["updated_at", "2017-06-26 04:44:04.154179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.156566"], ["updated_at", "2017-06-26 04:44:04.156566"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.159615"], ["updated_at", "2017-06-26 04:44:04.159615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.160436"], ["updated_at", "2017-06-26 04:44:04.160436"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.162440"], ["updated_at", "2017-06-26 04:44:04.162440"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.164616"], ["updated_at", "2017-06-26 04:44:04.164616"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.179903"], ["updated_at", "2017-06-26 04:44:04.179903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.180695"], ["updated_at", "2017-06-26 04:44:04.180695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.182774"], ["updated_at", "2017-06-26 04:44:04.182774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:44:04.190527"], ["updated_at", "2017-06-26 04:44:04.190527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:44:04.206621"], ["updated_at", "2017-06-26 04:44:04.206621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:44:04.211560"], ["updated_at", "2017-06-26 04:44:04.211560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:44:04.212774"], ["updated_at", "2017-06-26 04:44:04.212774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:44:04.214619"], ["updated_at", "2017-06-26 04:44:04.214619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:44:04.215697"], ["updated_at", "2017-06-26 04:44:04.215697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.225680"], ["updated_at", "2017-06-26 04:44:04.225680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.226734"], ["updated_at", "2017-06-26 04:44:04.226734"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.228852"], ["updated_at", "2017-06-26 04:44:04.228852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.229852"], ["updated_at", "2017-06-26 04:44:04.229852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:44:04.241943"], ["updated_at", "2017-06-26 04:44:04.241943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 04:44:04.243153"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:44:04.244893"], ["updated_at", "2017-06-26 04:44:04.244893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:44:04.245818"], ["updated_at", "2017-06-26 04:44:04.245818"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.249971"], ["updated_at", "2017-06-26 04:44:04.249971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.250955"], ["updated_at", "2017-06-26 04:44:04.250955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.253312"], ["updated_at", "2017-06-26 04:44:04.253312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.272637"], ["updated_at", "2017-06-26 04:44:04.272637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.273625"], ["updated_at", "2017-06-26 04:44:04.273625"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.275455"], ["updated_at", "2017-06-26 04:44:04.275455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.276220"], ["updated_at", "2017-06-26 04:44:04.276220"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:44:04.369599"], ["updated_at", "2017-06-26 04:44:04.369599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:44:04.370827"], ["updated_at", "2017-06-26 04:44:04.370827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.388065"], ["updated_at", "2017-06-26 04:44:04.388065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.393224"], ["updated_at", "2017-06-26 04:44:04.393224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.395644"], ["updated_at", "2017-06-26 04:44:04.395644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:44:04.436367"], ["updated_at", "2017-06-26 04:44:04.436367"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:04.440481"], ["updated_at", "2017-06-26 04:44:04.440481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:26.987564"], ["updated_at", "2017-06-26 04:44:26.987564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:26.994602"], ["updated_at", "2017-06-26 04:44:26.994602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:44:27.046262"], ["updated_at", "2017-06-26 04:44:27.046262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:44:27.048600"], ["updated_at", "2017-06-26 04:44:27.048600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.068419"], ["updated_at", "2017-06-26 04:44:27.068419"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.070094"], ["updated_at", "2017-06-26 04:44:27.070094"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.073348"], ["updated_at", "2017-06-26 04:44:27.073348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.076767"], ["updated_at", "2017-06-26 04:44:27.076767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.080963"], ["updated_at", "2017-06-26 04:44:27.080963"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.091236"], ["updated_at", "2017-06-26 04:44:27.091236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.093817"], ["updated_at", "2017-06-26 04:44:27.093817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.097583"], ["updated_at", "2017-06-26 04:44:27.097583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.103868"], ["updated_at", "2017-06-26 04:44:27.103868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.104861"], ["updated_at", "2017-06-26 04:44:27.104861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.110806"], ["updated_at", "2017-06-26 04:44:27.110806"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.111781"], ["updated_at", "2017-06-26 04:44:27.111781"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:44:27.118544"], ["updated_at", "2017-06-26 04:44:27.118544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.131165"], ["updated_at", "2017-06-26 04:44:27.131165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.132323"], ["updated_at", "2017-06-26 04:44:27.132323"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.139570"], ["updated_at", "2017-06-26 04:44:27.139570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.140751"], ["updated_at", "2017-06-26 04:44:27.140751"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:44:27.143030"], ["updated_at", "2017-06-26 04:44:27.143030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:44:27.143959"], ["updated_at", "2017-06-26 04:44:27.143959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:44:27.145597"], ["updated_at", "2017-06-26 04:44:27.145597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:44:27.146360"], ["updated_at", "2017-06-26 04:44:27.146360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.149583"], ["updated_at", "2017-06-26 04:44:27.149583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.157439"], ["updated_at", "2017-06-26 04:44:27.157439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.158423"], ["updated_at", "2017-06-26 04:44:27.158423"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.161223"], ["updated_at", "2017-06-26 04:44:27.161223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.165818"], ["updated_at", "2017-06-26 04:44:27.165818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.170870"], ["updated_at", "2017-06-26 04:44:27.170870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.171983"], ["updated_at", "2017-06-26 04:44:27.171983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.172934"], ["updated_at", "2017-06-26 04:44:27.172934"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.176055"], ["updated_at", "2017-06-26 04:44:27.176055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.182134"], ["updated_at", "2017-06-26 04:44:27.182134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.184812"], ["updated_at", "2017-06-26 04:44:27.184812"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:44:27.191371"], ["updated_at", "2017-06-26 04:44:27.191371"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:44:27.192412"], ["updated_at", "2017-06-26 04:44:27.192412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.193238"], ["updated_at", "2017-06-26 04:44:27.193238"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:44:27.196149"], ["updated_at", "2017-06-26 04:44:27.196149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 04:44:27.197395"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:44:27.199114"], ["updated_at", "2017-06-26 04:44:27.199114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:44:27.199962"], ["updated_at", "2017-06-26 04:44:27.199962"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.204083"], ["updated_at", "2017-06-26 04:44:27.204083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:44:27.205243"], ["updated_at", "2017-06-26 04:44:27.205243"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.208565"], ["updated_at", "2017-06-26 04:44:27.208565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.209435"], ["updated_at", "2017-06-26 04:44:27.209435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.217137"], ["updated_at", "2017-06-26 04:44:27.217137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.218030"], ["updated_at", "2017-06-26 04:44:27.218030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.220635"], ["updated_at", "2017-06-26 04:44:27.220635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.224695"], ["updated_at", "2017-06-26 04:44:27.224695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.225648"], ["updated_at", "2017-06-26 04:44:27.225648"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:44:27.242844"], ["updated_at", "2017-06-26 04:44:27.242844"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.248035"], ["updated_at", "2017-06-26 04:44:27.248035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.257927"], ["updated_at", "2017-06-26 04:44:27.257927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.265181"], ["updated_at", "2017-06-26 04:44:27.265181"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.271945"], ["updated_at", "2017-06-26 04:44:27.271945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:44:27.277901"], ["updated_at", "2017-06-26 04:44:27.277901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:44:27.278906"], ["updated_at", "2017-06-26 04:44:27.278906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:44:27.280846"], ["updated_at", "2017-06-26 04:44:27.280846"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:44:27.281794"], ["updated_at", "2017-06-26 04:44:27.281794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.289646"], ["updated_at", "2017-06-26 04:44:27.289646"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.292488"], ["updated_at", "2017-06-26 04:44:27.292488"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.302709"], ["updated_at", "2017-06-26 04:44:27.302709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.306804"], ["updated_at", "2017-06-26 04:44:27.306804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.307684"], ["updated_at", "2017-06-26 04:44:27.307684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.316861"], ["updated_at", "2017-06-26 04:44:27.316861"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.322384"], ["updated_at", "2017-06-26 04:44:27.322384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.323443"], ["updated_at", "2017-06-26 04:44:27.323443"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.326156"], ["updated_at", "2017-06-26 04:44:27.326156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.326900"], ["updated_at", "2017-06-26 04:44:27.326900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.327662"], ["updated_at", "2017-06-26 04:44:27.327662"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.330235"], ["updated_at", "2017-06-26 04:44:27.330235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.330961"], ["updated_at", "2017-06-26 04:44:27.330961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.333030"], ["updated_at", "2017-06-26 04:44:27.333030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.336394"], ["updated_at", "2017-06-26 04:44:27.336394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.337143"], ["updated_at", "2017-06-26 04:44:27.337143"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.449391"], ["updated_at", "2017-06-26 04:44:27.449391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.0ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.483506"], ["updated_at", "2017-06-26 04:44:27.483506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.487997"], ["updated_at", "2017-06-26 04:44:27.487997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:44:27.490869"], ["updated_at", "2017-06-26 04:44:27.490869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:44:27.499557"], ["updated_at", "2017-06-26 04:44:27.499557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:44:27.500395"], ["updated_at", "2017-06-26 04:44:27.500395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (3.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:44:27.515650"], ["updated_at", "2017-06-26 04:44:27.515650"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.884627"], ["updated_at", "2017-06-26 04:45:17.884627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:45:17.912788"], ["updated_at", "2017-06-26 04:45:17.912788"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:45:17.916353"], ["updated_at", "2017-06-26 04:45:17.916353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.938172"], ["updated_at", "2017-06-26 04:45:17.938172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.944209"], ["updated_at", "2017-06-26 04:45:17.944209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.946773"], ["updated_at", "2017-06-26 04:45:17.946773"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.951095"], ["updated_at", "2017-06-26 04:45:17.951095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.952056"], ["updated_at", "2017-06-26 04:45:17.952056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.959487"], ["updated_at", "2017-06-26 04:45:17.959487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.969523"], ["updated_at", "2017-06-26 04:45:17.969523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.976835"], ["updated_at", "2017-06-26 04:45:17.976835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.977892"], ["updated_at", "2017-06-26 04:45:17.977892"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:17.988730"], ["updated_at", "2017-06-26 04:45:17.988730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:45:17.995284"], ["updated_at", "2017-06-26 04:45:17.995284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:45:17.996471"], ["updated_at", "2017-06-26 04:45:17.996471"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:45:17.998979"], ["updated_at", "2017-06-26 04:45:17.998979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:45:18.000225"], ["updated_at", "2017-06-26 04:45:18.000225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.008509"], ["updated_at", "2017-06-26 04:45:18.008509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.014715"], ["updated_at", "2017-06-26 04:45:18.014715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:45:18.015834"], ["updated_at", "2017-06-26 04:45:18.015834"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.037709"], ["updated_at", "2017-06-26 04:45:18.037709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.038508"], ["updated_at", "2017-06-26 04:45:18.038508"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.040476"], ["updated_at", "2017-06-26 04:45:18.040476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.041324"], ["updated_at", "2017-06-26 04:45:18.041324"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.043465"], ["updated_at", "2017-06-26 04:45:18.043465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.044420"], ["updated_at", "2017-06-26 04:45:18.044420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:45:18.057845"], ["updated_at", "2017-06-26 04:45:18.057845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.062018"], ["updated_at", "2017-06-26 04:45:18.062018"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.063009"], ["updated_at", "2017-06-26 04:45:18.063009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (8.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.092217"], ["updated_at", "2017-06-26 04:45:18.092217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.095937"], ["updated_at", "2017-06-26 04:45:18.095937"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.096787"], ["updated_at", "2017-06-26 04:45:18.096787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.099620"], ["updated_at", "2017-06-26 04:45:18.099620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.103183"], ["updated_at", "2017-06-26 04:45:18.103183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.105233"], ["updated_at", "2017-06-26 04:45:18.105233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:45:18.108211"], ["updated_at", "2017-06-26 04:45:18.108211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:45:18.109054"], ["updated_at", "2017-06-26 04:45:18.109054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:45:18.110651"], ["updated_at", "2017-06-26 04:45:18.110651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:45:18.111435"], ["updated_at", "2017-06-26 04:45:18.111435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.114782"], ["updated_at", "2017-06-26 04:45:18.114782"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.115669"], ["updated_at", "2017-06-26 04:45:18.115669"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.117886"], ["updated_at", "2017-06-26 04:45:18.117886"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.118692"], ["updated_at", "2017-06-26 04:45:18.118692"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.121209"], ["updated_at", "2017-06-26 04:45:18.121209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.121962"], ["updated_at", "2017-06-26 04:45:18.121962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.124024"], ["updated_at", "2017-06-26 04:45:18.124024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.127328"], ["updated_at", "2017-06-26 04:45:18.127328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.131430"], ["updated_at", "2017-06-26 04:45:18.131430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.134024"], ["updated_at", "2017-06-26 04:45:18.134024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.135968"], ["updated_at", "2017-06-26 04:45:18.135968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.139174"], ["updated_at", "2017-06-26 04:45:18.139174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.141201"], ["updated_at", "2017-06-26 04:45:18.141201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.144924"], ["updated_at", "2017-06-26 04:45:18.144924"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.145684"], ["updated_at", "2017-06-26 04:45:18.145684"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.148835"], ["updated_at", "2017-06-26 04:45:18.148835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.149773"], ["updated_at", "2017-06-26 04:45:18.149773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.150637"], ["updated_at", "2017-06-26 04:45:18.150637"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.153219"], ["updated_at", "2017-06-26 04:45:18.153219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.157490"], ["updated_at", "2017-06-26 04:45:18.157490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.158612"], ["updated_at", "2017-06-26 04:45:18.158612"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.161952"], ["updated_at", "2017-06-26 04:45:18.161952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.163074"], ["updated_at", "2017-06-26 04:45:18.163074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.164164"], ["updated_at", "2017-06-26 04:45:18.164164"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.168110"], ["updated_at", "2017-06-26 04:45:18.168110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.169516"], ["updated_at", "2017-06-26 04:45:18.169516"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:45:18.179930"], ["updated_at", "2017-06-26 04:45:18.179930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:45:18.191506"], ["updated_at", "2017-06-26 04:45:18.191506"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:45:18.192441"], ["updated_at", "2017-06-26 04:45:18.192441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.193233"], ["updated_at", "2017-06-26 04:45:18.193233"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.195293"], ["updated_at", "2017-06-26 04:45:18.195293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:45:18.202420"], ["updated_at", "2017-06-26 04:45:18.202420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 04:45:18.203696"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:45:18.205259"], ["updated_at", "2017-06-26 04:45:18.205259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:45:18.206132"], ["updated_at", "2017-06-26 04:45:18.206132"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.209933"], ["updated_at", "2017-06-26 04:45:18.209933"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.211893"], ["updated_at", "2017-06-26 04:45:18.211893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.212730"], ["updated_at", "2017-06-26 04:45:18.212730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:45:18.405721"], ["updated_at", "2017-06-26 04:45:18.405721"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.408418"], ["updated_at", "2017-06-26 04:45:18.408418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.413972"], ["updated_at", "2017-06-26 04:45:18.413972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.417156"], ["updated_at", "2017-06-26 04:45:18.417156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:45:18.422970"], ["updated_at", "2017-06-26 04:45:18.422970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:45:18.423921"], ["updated_at", "2017-06-26 04:45:18.423921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:18.457219"], ["updated_at", "2017-06-26 04:45:18.457219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.780542"], ["updated_at", "2017-06-26 04:45:32.780542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.784643"], ["updated_at", "2017-06-26 04:45:32.784643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.839231"], ["updated_at", "2017-06-26 04:45:32.839231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.840284"], ["updated_at", "2017-06-26 04:45:32.840284"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.842317"], ["updated_at", "2017-06-26 04:45:32.842317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.843084"], ["updated_at", "2017-06-26 04:45:32.843084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:45:32.854024"], ["updated_at", "2017-06-26 04:45:32.854024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:45:32.855412"], ["updated_at", "2017-06-26 04:45:32.855412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.856446"], ["updated_at", "2017-06-26 04:45:32.856446"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:45:32.862992"], ["updated_at", "2017-06-26 04:45:32.862992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:45:32.864212"], ["updated_at", "2017-06-26 04:45:32.864212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:45:32.866956"], ["updated_at", "2017-06-26 04:45:32.866956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:45:32.867976"], ["updated_at", "2017-06-26 04:45:32.867976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.877091"], ["updated_at", "2017-06-26 04:45:32.877091"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.878091"], ["updated_at", "2017-06-26 04:45:32.878091"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.880552"], ["updated_at", "2017-06-26 04:45:32.880552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.885057"], ["updated_at", "2017-06-26 04:45:32.885057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.890195"], ["updated_at", "2017-06-26 04:45:32.890195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.891018"], ["updated_at", "2017-06-26 04:45:32.891018"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.899098"], ["updated_at", "2017-06-26 04:45:32.899098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:45:32.906132"], ["updated_at", "2017-06-26 04:45:32.906132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 04:45:32.907829"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:45:32.909222"], ["updated_at", "2017-06-26 04:45:32.909222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:45:32.910134"], ["updated_at", "2017-06-26 04:45:32.910134"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.915076"], ["updated_at", "2017-06-26 04:45:32.915076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.916431"], ["updated_at", "2017-06-26 04:45:32.916431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.918963"], ["updated_at", "2017-06-26 04:45:32.918963"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.941426"], ["updated_at", "2017-06-26 04:45:32.941426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.943882"], ["updated_at", "2017-06-26 04:45:32.943882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.948381"], ["updated_at", "2017-06-26 04:45:32.948381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.956854"], ["updated_at", "2017-06-26 04:45:32.956854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.964542"], ["updated_at", "2017-06-26 04:45:32.964542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.966908"], ["updated_at", "2017-06-26 04:45:32.966908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.969313"], ["updated_at", "2017-06-26 04:45:32.969313"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.977049"], ["updated_at", "2017-06-26 04:45:32.977049"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:45:32.978490"], ["updated_at", "2017-06-26 04:45:32.978490"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.984052"], ["updated_at", "2017-06-26 04:45:32.984052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.985899"], ["updated_at", "2017-06-26 04:45:32.985899"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.988781"], ["updated_at", "2017-06-26 04:45:32.988781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:32.989837"], ["updated_at", "2017-06-26 04:45:32.989837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.3ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.3ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.007849"], ["updated_at", "2017-06-26 04:45:33.007849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.011265"], ["updated_at", "2017-06-26 04:45:33.011265"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:45:33.025704"], ["updated_at", "2017-06-26 04:45:33.025704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:45:33.030664"], ["updated_at", "2017-06-26 04:45:33.030664"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:45:33.031807"], ["updated_at", "2017-06-26 04:45:33.031807"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:45:33.034340"], ["updated_at", "2017-06-26 04:45:33.034340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:45:33.035382"], ["updated_at", "2017-06-26 04:45:33.035382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.038769"], ["updated_at", "2017-06-26 04:45:33.038769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.042136"], ["updated_at", "2017-06-26 04:45:33.042136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.043084"], ["updated_at", "2017-06-26 04:45:33.043084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.051811"], ["updated_at", "2017-06-26 04:45:33.051811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.052718"], ["updated_at", "2017-06-26 04:45:33.052718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:45:33.057658"], ["updated_at", "2017-06-26 04:45:33.057658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:45:33.059729"], ["updated_at", "2017-06-26 04:45:33.059729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.067846"], ["updated_at", "2017-06-26 04:45:33.067846"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.069094"], ["updated_at", "2017-06-26 04:45:33.069094"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.072106"], ["updated_at", "2017-06-26 04:45:33.072106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.077498"], ["updated_at", "2017-06-26 04:45:33.077498"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.079177"], ["updated_at", "2017-06-26 04:45:33.079177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.084099"], ["updated_at", "2017-06-26 04:45:33.084099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.088646"], ["updated_at", "2017-06-26 04:45:33.088646"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.093740"], ["updated_at", "2017-06-26 04:45:33.093740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.094512"], ["updated_at", "2017-06-26 04:45:33.094512"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.096676"], ["updated_at", "2017-06-26 04:45:33.096676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.097404"], ["updated_at", "2017-06-26 04:45:33.097404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.099339"], ["updated_at", "2017-06-26 04:45:33.099339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.102775"], ["updated_at", "2017-06-26 04:45:33.102775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.103683"], ["updated_at", "2017-06-26 04:45:33.103683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.104691"], ["updated_at", "2017-06-26 04:45:33.104691"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.107072"], ["updated_at", "2017-06-26 04:45:33.107072"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.108069"], ["updated_at", "2017-06-26 04:45:33.108069"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.110709"], ["updated_at", "2017-06-26 04:45:33.110709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.111455"], ["updated_at", "2017-06-26 04:45:33.111455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.112214"], ["updated_at", "2017-06-26 04:45:33.112214"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:45:33.115548"], ["updated_at", "2017-06-26 04:45:33.115548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.125611"], ["updated_at", "2017-06-26 04:45:33.125611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.128248"], ["updated_at", "2017-06-26 04:45:33.128248"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:45:33.186572"], ["updated_at", "2017-06-26 04:45:33.186572"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.205358"], ["updated_at", "2017-06-26 04:45:33.205358"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.209401"], ["updated_at", "2017-06-26 04:45:33.209401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.213886"], ["updated_at", "2017-06-26 04:45:33.213886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:45:33.216476"], ["updated_at", "2017-06-26 04:45:33.216476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:45:33.222256"], ["updated_at", "2017-06-26 04:45:33.222256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:45:33.223206"], ["updated_at", "2017-06-26 04:45:33.223206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:48:38.065477"], ["updated_at", "2017-06-26 04:48:38.065477"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.089424"], ["updated_at", "2017-06-26 04:48:38.089424"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:48:38.124832"], ["updated_at", "2017-06-26 04:48:38.124832"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:48:38.125813"], ["updated_at", "2017-06-26 04:48:38.125813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.161993"], ["updated_at", "2017-06-26 04:48:38.161993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.166809"], ["updated_at", "2017-06-26 04:48:38.166809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.170446"], ["updated_at", "2017-06-26 04:48:38.170446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.191608"], ["updated_at", "2017-06-26 04:48:38.191608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.194044"], ["updated_at", "2017-06-26 04:48:38.194044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.196260"], ["updated_at", "2017-06-26 04:48:38.196260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:48:38.199862"], ["updated_at", "2017-06-26 04:48:38.199862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:48:38.200701"], ["updated_at", "2017-06-26 04:48:38.200701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:48:38.202699"], ["updated_at", "2017-06-26 04:48:38.202699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:48:38.203510"], ["updated_at", "2017-06-26 04:48:38.203510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.209956"], ["updated_at", "2017-06-26 04:48:38.209956"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.210792"], ["updated_at", "2017-06-26 04:48:38.210792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.215632"], ["updated_at", "2017-06-26 04:48:38.215632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.220141"], ["updated_at", "2017-06-26 04:48:38.220141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:48:38.221331"], ["updated_at", "2017-06-26 04:48:38.221331"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.223967"], ["updated_at", "2017-06-26 04:48:38.223967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.224720"], ["updated_at", "2017-06-26 04:48:38.224720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:48:38.233334"], ["updated_at", "2017-06-26 04:48:38.233334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.237376"], ["updated_at", "2017-06-26 04:48:38.237376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.242349"], ["updated_at", "2017-06-26 04:48:38.242349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.244362"], ["updated_at", "2017-06-26 04:48:38.244362"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.247524"], ["updated_at", "2017-06-26 04:48:38.247524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.248384"], ["updated_at", "2017-06-26 04:48:38.248384"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.253498"], ["updated_at", "2017-06-26 04:48:38.253498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.255638"], ["updated_at", "2017-06-26 04:48:38.255638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:48:38.258850"], ["updated_at", "2017-06-26 04:48:38.258850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:48:38.260895"], ["updated_at", "2017-06-26 04:48:38.260895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.269362"], ["updated_at", "2017-06-26 04:48:38.269362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.271619"], ["updated_at", "2017-06-26 04:48:38.271619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.275037"], ["updated_at", "2017-06-26 04:48:38.275037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.279963"], ["updated_at", "2017-06-26 04:48:38.279963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.286190"], ["updated_at", "2017-06-26 04:48:38.286190"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.287100"], ["updated_at", "2017-06-26 04:48:38.287100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.296332"], ["updated_at", "2017-06-26 04:48:38.296332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.297165"], ["updated_at", "2017-06-26 04:48:38.297165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.297968"], ["updated_at", "2017-06-26 04:48:38.297968"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.300234"], ["updated_at", "2017-06-26 04:48:38.300234"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.302168"], ["updated_at", "2017-06-26 04:48:38.302168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.310795"], ["updated_at", "2017-06-26 04:48:38.310795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.311561"], ["updated_at", "2017-06-26 04:48:38.311561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.313533"], ["updated_at", "2017-06-26 04:48:38.313533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.317040"], ["updated_at", "2017-06-26 04:48:38.317040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.317833"], ["updated_at", "2017-06-26 04:48:38.317833"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.320462"], ["updated_at", "2017-06-26 04:48:38.320462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.324512"], ["updated_at", "2017-06-26 04:48:38.324512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.325330"], ["updated_at", "2017-06-26 04:48:38.325330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.327256"], ["updated_at", "2017-06-26 04:48:38.327256"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.330779"], ["updated_at", "2017-06-26 04:48:38.330779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:48:38.337902"], ["updated_at", "2017-06-26 04:48:38.337902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 04:48:38.339481"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:48:38.340391"], ["updated_at", "2017-06-26 04:48:38.340391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:48:38.341211"], ["updated_at", "2017-06-26 04:48:38.341211"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:48:38.344406"], ["updated_at", "2017-06-26 04:48:38.344406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:48:38.345158"], ["updated_at", "2017-06-26 04:48:38.345158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.345993"], ["updated_at", "2017-06-26 04:48:38.345993"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.348052"], ["updated_at", "2017-06-26 04:48:38.348052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.351687"], ["updated_at", "2017-06-26 04:48:38.351687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.352451"], ["updated_at", "2017-06-26 04:48:38.352451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.360696"], ["updated_at", "2017-06-26 04:48:38.360696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.361631"], ["updated_at", "2017-06-26 04:48:38.361631"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:48:38.381353"], ["updated_at", "2017-06-26 04:48:38.381353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:48:38.382315"], ["updated_at", "2017-06-26 04:48:38.382315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:48:38.384074"], ["updated_at", "2017-06-26 04:48:38.384074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:48:38.384847"], ["updated_at", "2017-06-26 04:48:38.384847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.388421"], ["updated_at", "2017-06-26 04:48:38.388421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.389181"], ["updated_at", "2017-06-26 04:48:38.389181"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.390791"], ["updated_at", "2017-06-26 04:48:38.390791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.391526"], ["updated_at", "2017-06-26 04:48:38.391526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.392218"], ["updated_at", "2017-06-26 04:48:38.392218"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:48:38.395320"], ["updated_at", "2017-06-26 04:48:38.395320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.404795"], ["updated_at", "2017-06-26 04:48:38.404795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.405576"], ["updated_at", "2017-06-26 04:48:38.405576"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.416637"], ["updated_at", "2017-06-26 04:48:38.416637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.420994"], ["updated_at", "2017-06-26 04:48:38.420994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.425883"], ["updated_at", "2017-06-26 04:48:38.425883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.426672"], ["updated_at", "2017-06-26 04:48:38.426672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.431488"], ["updated_at", "2017-06-26 04:48:38.431488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.432295"], ["updated_at", "2017-06-26 04:48:38.432295"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.434435"], ["updated_at", "2017-06-26 04:48:38.434435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:38.435139"], ["updated_at", "2017-06-26 04:48:38.435139"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.8ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:48:44.603216"], ["updated_at", "2017-06-26 04:48:44.603216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:48:44.612841"], ["updated_at", "2017-06-26 04:48:44.612841"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.683238"], ["updated_at", "2017-06-26 04:48:44.683238"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.3ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.703643"], ["updated_at", "2017-06-26 04:48:44.703643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.709851"], ["updated_at", "2017-06-26 04:48:44.709851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.713770"], ["updated_at", "2017-06-26 04:48:44.713770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:48:44.729338"], ["updated_at", "2017-06-26 04:48:44.729338"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:48:44.759558"], ["updated_at", "2017-06-26 04:48:44.759558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:48:44.760958"], ["updated_at", "2017-06-26 04:48:44.760958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.761936"], ["updated_at", "2017-06-26 04:48:44.761936"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.764668"], ["updated_at", "2017-06-26 04:48:44.764668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:48:44.769848"], ["updated_at", "2017-06-26 04:48:44.769848"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:48:44.770942"], ["updated_at", "2017-06-26 04:48:44.770942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:48:44.773871"], ["updated_at", "2017-06-26 04:48:44.773871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:48:44.774957"], ["updated_at", "2017-06-26 04:48:44.774957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.787731"], ["updated_at", "2017-06-26 04:48:44.787731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.788534"], ["updated_at", "2017-06-26 04:48:44.788534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.795745"], ["updated_at", "2017-06-26 04:48:44.795745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.796489"], ["updated_at", "2017-06-26 04:48:44.796489"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.798536"], ["updated_at", "2017-06-26 04:48:44.798536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.799223"], ["updated_at", "2017-06-26 04:48:44.799223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:48:44.809593"], ["updated_at", "2017-06-26 04:48:44.809593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 04:48:44.811299"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:48:44.812264"], ["updated_at", "2017-06-26 04:48:44.812264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:48:44.813064"], ["updated_at", "2017-06-26 04:48:44.813064"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.817342"], ["updated_at", "2017-06-26 04:48:44.817342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.818507"], ["updated_at", "2017-06-26 04:48:44.818507"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.820514"], ["updated_at", "2017-06-26 04:48:44.820514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.824779"], ["updated_at", "2017-06-26 04:48:44.824779"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.826675"], ["updated_at", "2017-06-26 04:48:44.826675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.828532"], ["updated_at", "2017-06-26 04:48:44.828532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.831539"], ["updated_at", "2017-06-26 04:48:44.831539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.832274"], ["updated_at", "2017-06-26 04:48:44.832274"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.834436"], ["updated_at", "2017-06-26 04:48:44.834436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.839050"], ["updated_at", "2017-06-26 04:48:44.839050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.839810"], ["updated_at", "2017-06-26 04:48:44.839810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.840528"], ["updated_at", "2017-06-26 04:48:44.840528"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.843298"], ["updated_at", "2017-06-26 04:48:44.843298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.847434"], ["updated_at", "2017-06-26 04:48:44.847434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.848392"], ["updated_at", "2017-06-26 04:48:44.848392"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.850795"], ["updated_at", "2017-06-26 04:48:44.850795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.851474"], ["updated_at", "2017-06-26 04:48:44.851474"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.853392"], ["updated_at", "2017-06-26 04:48:44.853392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.857781"], ["updated_at", "2017-06-26 04:48:44.857781"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.864039"], ["updated_at", "2017-06-26 04:48:44.864039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.868391"], ["updated_at", "2017-06-26 04:48:44.868391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.870230"], ["updated_at", "2017-06-26 04:48:44.870230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:48:44.874044"], ["updated_at", "2017-06-26 04:48:44.874044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.884792"], ["updated_at", "2017-06-26 04:48:44.884792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.887019"], ["updated_at", "2017-06-26 04:48:44.887019"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.889116"], ["updated_at", "2017-06-26 04:48:44.889116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.892177"], ["updated_at", "2017-06-26 04:48:44.892177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.892921"], ["updated_at", "2017-06-26 04:48:44.892921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.894518"], ["updated_at", "2017-06-26 04:48:44.894518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.897288"], ["updated_at", "2017-06-26 04:48:44.897288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.898051"], ["updated_at", "2017-06-26 04:48:44.898051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.902648"], ["updated_at", "2017-06-26 04:48:44.902648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.907841"], ["updated_at", "2017-06-26 04:48:44.907841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.908651"], ["updated_at", "2017-06-26 04:48:44.908651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.915336"], ["updated_at", "2017-06-26 04:48:44.915336"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:48:44.917062"], ["updated_at", "2017-06-26 04:48:44.917062"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (2.6ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.929717"], ["updated_at", "2017-06-26 04:48:44.929717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.930642"], ["updated_at", "2017-06-26 04:48:44.930642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:48:44.950532"], ["updated_at", "2017-06-26 04:48:44.950532"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:48:44.953731"], ["updated_at", "2017-06-26 04:48:44.953731"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.962471"], ["updated_at", "2017-06-26 04:48:44.962471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.963329"], ["updated_at", "2017-06-26 04:48:44.963329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.964025"], ["updated_at", "2017-06-26 04:48:44.964025"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.966930"], ["updated_at", "2017-06-26 04:48:44.966930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.967820"], ["updated_at", "2017-06-26 04:48:44.967820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.969792"], ["updated_at", "2017-06-26 04:48:44.969792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:48:44.978680"], ["updated_at", "2017-06-26 04:48:44.978680"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.983322"], ["updated_at", "2017-06-26 04:48:44.983322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.985330"], ["updated_at", "2017-06-26 04:48:44.985330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.988457"], ["updated_at", "2017-06-26 04:48:44.988457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.989335"], ["updated_at", "2017-06-26 04:48:44.989335"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.991423"], ["updated_at", "2017-06-26 04:48:44.991423"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.992481"], ["updated_at", "2017-06-26 04:48:44.992481"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:44.994984"], ["updated_at", "2017-06-26 04:48:44.994984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:48:44.998569"], ["updated_at", "2017-06-26 04:48:44.998569"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:48:44.999456"], ["updated_at", "2017-06-26 04:48:44.999456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:48:45.001624"], ["updated_at", "2017-06-26 04:48:45.001624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:48:45.002647"], ["updated_at", "2017-06-26 04:48:45.002647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:45.011974"], ["updated_at", "2017-06-26 04:48:45.011974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.910299"], ["updated_at", "2017-06-26 04:48:49.910299"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.942254"], ["updated_at", "2017-06-26 04:48:49.942254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.944845"], ["updated_at", "2017-06-26 04:48:49.944845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:48:49.958338"], ["updated_at", "2017-06-26 04:48:49.958338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.973543"], ["updated_at", "2017-06-26 04:48:49.973543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.974605"], ["updated_at", "2017-06-26 04:48:49.974605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.975400"], ["updated_at", "2017-06-26 04:48:49.975400"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.978628"], ["updated_at", "2017-06-26 04:48:49.978628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.981920"], ["updated_at", "2017-06-26 04:48:49.981920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.989158"], ["updated_at", "2017-06-26 04:48:49.989158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.990112"], ["updated_at", "2017-06-26 04:48:49.990112"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.992778"], ["updated_at", "2017-06-26 04:48:49.992778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:49.993752"], ["updated_at", "2017-06-26 04:48:49.993752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.000228"], ["updated_at", "2017-06-26 04:48:50.000228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:48:50.001127"], ["updated_at", "2017-06-26 04:48:50.001127"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.004397"], ["updated_at", "2017-06-26 04:48:50.004397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.005586"], ["updated_at", "2017-06-26 04:48:50.005586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.057366"], ["updated_at", "2017-06-26 04:48:50.057366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.058549"], ["updated_at", "2017-06-26 04:48:50.058549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.069828"], ["updated_at", "2017-06-26 04:48:50.069828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.071310"], ["updated_at", "2017-06-26 04:48:50.071310"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.074228"], ["updated_at", "2017-06-26 04:48:50.074228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:48:50.084730"], ["updated_at", "2017-06-26 04:48:50.084730"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:48:50.086085"], ["updated_at", "2017-06-26 04:48:50.086085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:48:50.087784"], ["updated_at", "2017-06-26 04:48:50.087784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:48:50.088602"], ["updated_at", "2017-06-26 04:48:50.088602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.099586"], ["updated_at", "2017-06-26 04:48:50.099586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.100631"], ["updated_at", "2017-06-26 04:48:50.100631"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.103531"], ["updated_at", "2017-06-26 04:48:50.103531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.104325"], ["updated_at", "2017-06-26 04:48:50.104325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.110675"], ["updated_at", "2017-06-26 04:48:50.110675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.116458"], ["updated_at", "2017-06-26 04:48:50.116458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.122167"], ["updated_at", "2017-06-26 04:48:50.122167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.122981"], ["updated_at", "2017-06-26 04:48:50.122981"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.125798"], ["updated_at", "2017-06-26 04:48:50.125798"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:48:50.134826"], ["updated_at", "2017-06-26 04:48:50.134826"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:48:50.135859"], ["updated_at", "2017-06-26 04:48:50.135859"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.136796"], ["updated_at", "2017-06-26 04:48:50.136796"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.138931"], ["updated_at", "2017-06-26 04:48:50.138931"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.144798"], ["updated_at", "2017-06-26 04:48:50.144798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.145756"], ["updated_at", "2017-06-26 04:48:50.145756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.148894"], ["updated_at", "2017-06-26 04:48:50.148894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:48:50.153235"], ["updated_at", "2017-06-26 04:48:50.153235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:48:50.156001"], ["updated_at", "2017-06-26 04:48:50.156001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:48:50.167726"], ["updated_at", "2017-06-26 04:48:50.167726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:48:50.169006"], ["updated_at", "2017-06-26 04:48:50.169006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:48:50.171298"], ["updated_at", "2017-06-26 04:48:50.171298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:48:50.172389"], ["updated_at", "2017-06-26 04:48:50.172389"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.176763"], ["updated_at", "2017-06-26 04:48:50.176763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.177744"], ["updated_at", "2017-06-26 04:48:50.177744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.178656"], ["updated_at", "2017-06-26 04:48:50.178656"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.181563"], ["updated_at", "2017-06-26 04:48:50.181563"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.183550"], ["updated_at", "2017-06-26 04:48:50.183550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.189870"], ["updated_at", "2017-06-26 04:48:50.189870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.190981"], ["updated_at", "2017-06-26 04:48:50.190981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.199405"], ["updated_at", "2017-06-26 04:48:50.199405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.201867"], ["updated_at", "2017-06-26 04:48:50.201867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.205970"], ["updated_at", "2017-06-26 04:48:50.205970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:48:50.214711"], ["updated_at", "2017-06-26 04:48:50.214711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.226140"], ["updated_at", "2017-06-26 04:48:50.226140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.227161"], ["updated_at", "2017-06-26 04:48:50.227161"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.230725"], ["updated_at", "2017-06-26 04:48:50.230725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:48:50.236659"], ["updated_at", "2017-06-26 04:48:50.236659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 04:48:50.238407"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:48:50.240252"], ["updated_at", "2017-06-26 04:48:50.240252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:48:50.241194"], ["updated_at", "2017-06-26 04:48:50.241194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.245880"], ["updated_at", "2017-06-26 04:48:50.245880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.248555"], ["updated_at", "2017-06-26 04:48:50.248555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.252501"], ["updated_at", "2017-06-26 04:48:50.252501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.253407"], ["updated_at", "2017-06-26 04:48:50.253407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.255733"], ["updated_at", "2017-06-26 04:48:50.255733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.260460"], ["updated_at", "2017-06-26 04:48:50.260460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.275844"], ["updated_at", "2017-06-26 04:48:50.275844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.283666"], ["updated_at", "2017-06-26 04:48:50.283666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.284554"], ["updated_at", "2017-06-26 04:48:50.284554"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.286694"], ["updated_at", "2017-06-26 04:48:50.286694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.287534"], ["updated_at", "2017-06-26 04:48:50.287534"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.359533"], ["updated_at", "2017-06-26 04:48:50.359533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:48:50.380441"], ["updated_at", "2017-06-26 04:48:50.380441"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.397753"], ["updated_at", "2017-06-26 04:48:50.397753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.402762"], ["updated_at", "2017-06-26 04:48:50.402762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:50.405484"], ["updated_at", "2017-06-26 04:48:50.405484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:48:50.414042"], ["updated_at", "2017-06-26 04:48:50.414042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:48:50.414995"], ["updated_at", "2017-06-26 04:48:50.414995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.569536"], ["updated_at", "2017-06-26 04:48:53.569536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.600807"], ["updated_at", "2017-06-26 04:48:53.600807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.604129"], ["updated_at", "2017-06-26 04:48:53.604129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.636498"], ["updated_at", "2017-06-26 04:48:53.636498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:48:53.643356"], ["updated_at", "2017-06-26 04:48:53.643356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:48:53.644247"], ["updated_at", "2017-06-26 04:48:53.644247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:48:53.701040"], ["updated_at", "2017-06-26 04:48:53.701040"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.818492"], ["updated_at", "2017-06-26 04:48:53.818492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.819757"], ["updated_at", "2017-06-26 04:48:53.819757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.830105"], ["updated_at", "2017-06-26 04:48:53.830105"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.831435"], ["updated_at", "2017-06-26 04:48:53.831435"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.833695"], ["updated_at", "2017-06-26 04:48:53.833695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.836207"], ["updated_at", "2017-06-26 04:48:53.836207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.839893"], ["updated_at", "2017-06-26 04:48:53.839893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.841007"], ["updated_at", "2017-06-26 04:48:53.841007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.849249"], ["updated_at", "2017-06-26 04:48:53.849249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.850274"], ["updated_at", "2017-06-26 04:48:53.850274"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.853045"], ["updated_at", "2017-06-26 04:48:53.853045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.857919"], ["updated_at", "2017-06-26 04:48:53.857919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.858871"], ["updated_at", "2017-06-26 04:48:53.858871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.861297"], ["updated_at", "2017-06-26 04:48:53.861297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.865621"], ["updated_at", "2017-06-26 04:48:53.865621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.866625"], ["updated_at", "2017-06-26 04:48:53.866625"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:48:53.874401"], ["updated_at", "2017-06-26 04:48:53.874401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:48:53.888276"], ["updated_at", "2017-06-26 04:48:53.888276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 04:48:53.889712"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:48:53.890754"], ["updated_at", "2017-06-26 04:48:53.890754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:48:53.891800"], ["updated_at", "2017-06-26 04:48:53.891800"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.896074"], ["updated_at", "2017-06-26 04:48:53.896074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.898781"], ["updated_at", "2017-06-26 04:48:53.898781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.902997"], ["updated_at", "2017-06-26 04:48:53.902997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.908725"], ["updated_at", "2017-06-26 04:48:53.908725"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.911419"], ["updated_at", "2017-06-26 04:48:53.911419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:48:53.915779"], ["updated_at", "2017-06-26 04:48:53.915779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:48:53.916749"], ["updated_at", "2017-06-26 04:48:53.916749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:48:53.918336"], ["updated_at", "2017-06-26 04:48:53.918336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:48:53.919195"], ["updated_at", "2017-06-26 04:48:53.919195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:48:53.935667"], ["updated_at", "2017-06-26 04:48:53.935667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:48:53.936635"], ["updated_at", "2017-06-26 04:48:53.936635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.937465"], ["updated_at", "2017-06-26 04:48:53.937465"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.939517"], ["updated_at", "2017-06-26 04:48:53.939517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.953473"], ["updated_at", "2017-06-26 04:48:53.953473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.954335"], ["updated_at", "2017-06-26 04:48:53.954335"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.959791"], ["updated_at", "2017-06-26 04:48:53.959791"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.963754"], ["updated_at", "2017-06-26 04:48:53.963754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.964702"], ["updated_at", "2017-06-26 04:48:53.964702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.967103"], ["updated_at", "2017-06-26 04:48:53.967103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.970517"], ["updated_at", "2017-06-26 04:48:53.970517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:48:53.971427"], ["updated_at", "2017-06-26 04:48:53.971427"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:48:53.973907"], ["updated_at", "2017-06-26 04:48:53.973907"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:48:53.976135"], ["updated_at", "2017-06-26 04:48:53.976135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.984640"], ["updated_at", "2017-06-26 04:48:53.984640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.990370"], ["updated_at", "2017-06-26 04:48:53.990370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:53.991226"], ["updated_at", "2017-06-26 04:48:53.991226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.000044"], ["updated_at", "2017-06-26 04:48:54.000044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.005728"], ["updated_at", "2017-06-26 04:48:54.005728"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.012136"], ["updated_at", "2017-06-26 04:48:54.012136"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.017016"], ["updated_at", "2017-06-26 04:48:54.017016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.017840"], ["updated_at", "2017-06-26 04:48:54.017840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.027827"], ["updated_at", "2017-06-26 04:48:54.027827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.028674"], ["updated_at", "2017-06-26 04:48:54.028674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.029405"], ["updated_at", "2017-06-26 04:48:54.029405"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:48:54.031723"], ["updated_at", "2017-06-26 04:48:54.031723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:48:54.032474"], ["updated_at", "2017-06-26 04:48:54.032474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:48:54.033967"], ["updated_at", "2017-06-26 04:48:54.033967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:48:54.034720"], ["updated_at", "2017-06-26 04:48:54.034720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.039609"], ["updated_at", "2017-06-26 04:48:54.039609"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.041547"], ["updated_at", "2017-06-26 04:48:54.041547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:48:54.048369"], ["updated_at", "2017-06-26 04:48:54.048369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.052675"], ["updated_at", "2017-06-26 04:48:54.052675"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.053609"], ["updated_at", "2017-06-26 04:48:54.053609"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.057925"], ["updated_at", "2017-06-26 04:48:54.057925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.058693"], ["updated_at", "2017-06-26 04:48:54.058693"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.060861"], ["updated_at", "2017-06-26 04:48:54.060861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.063340"], ["updated_at", "2017-06-26 04:48:54.063340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.065405"], ["updated_at", "2017-06-26 04:48:54.065405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.068581"], ["updated_at", "2017-06-26 04:48:54.068581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.069383"], ["updated_at", "2017-06-26 04:48:54.069383"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.085778"], ["updated_at", "2017-06-26 04:48:54.085778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.086630"], ["updated_at", "2017-06-26 04:48:54.086630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.087352"], ["updated_at", "2017-06-26 04:48:54.087352"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.089559"], ["updated_at", "2017-06-26 04:48:54.089559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.094880"], ["updated_at", "2017-06-26 04:48:54.094880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:48:54.095691"], ["updated_at", "2017-06-26 04:48:54.095691"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.842802"], ["updated_at", "2017-06-26 04:50:27.842802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.849289"], ["updated_at", "2017-06-26 04:50:27.849289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.878136"], ["updated_at", "2017-06-26 04:50:27.878136"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.879160"], ["updated_at", "2017-06-26 04:50:27.879160"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.880215"], ["updated_at", "2017-06-26 04:50:27.880215"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.883800"], ["updated_at", "2017-06-26 04:50:27.883800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.890056"], ["updated_at", "2017-06-26 04:50:27.890056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.891142"], ["updated_at", "2017-06-26 04:50:27.891142"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.894159"], ["updated_at", "2017-06-26 04:50:27.894159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.895102"], ["updated_at", "2017-06-26 04:50:27.895102"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.896955"], ["updated_at", "2017-06-26 04:50:27.896955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.899294"], ["updated_at", "2017-06-26 04:50:27.899294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.910162"], ["updated_at", "2017-06-26 04:50:27.910162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.911190"], ["updated_at", "2017-06-26 04:50:27.911190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.914026"], ["updated_at", "2017-06-26 04:50:27.914026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.918115"], ["updated_at", "2017-06-26 04:50:27.918115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.920303"], ["updated_at", "2017-06-26 04:50:27.920303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.922290"], ["updated_at", "2017-06-26 04:50:27.922290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.925728"], ["updated_at", "2017-06-26 04:50:27.925728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.931239"], ["updated_at", "2017-06-26 04:50:27.931239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.932037"], ["updated_at", "2017-06-26 04:50:27.932037"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.935114"], ["updated_at", "2017-06-26 04:50:27.935114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:50:27.935876"], ["updated_at", "2017-06-26 04:50:27.935876"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.938415"], ["updated_at", "2017-06-26 04:50:27.938415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.953920"], ["updated_at", "2017-06-26 04:50:27.953920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.958454"], ["updated_at", "2017-06-26 04:50:27.958454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.959315"], ["updated_at", "2017-06-26 04:50:27.959315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.966603"], ["updated_at", "2017-06-26 04:50:27.966603"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.967521"], ["updated_at", "2017-06-26 04:50:27.967521"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.970141"], ["updated_at", "2017-06-26 04:50:27.970141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.976557"], ["updated_at", "2017-06-26 04:50:27.976557"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.988249"], ["updated_at", "2017-06-26 04:50:27.988249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.998248"], ["updated_at", "2017-06-26 04:50:27.998248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:27.999303"], ["updated_at", "2017-06-26 04:50:27.999303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.000090"], ["updated_at", "2017-06-26 04:50:28.000090"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.003024"], ["updated_at", "2017-06-26 04:50:28.003024"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.003897"], ["updated_at", "2017-06-26 04:50:28.003897"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:50:28.008548"], ["updated_at", "2017-06-26 04:50:28.008548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:50:28.012955"], ["updated_at", "2017-06-26 04:50:28.012955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:50:28.014122"], ["updated_at", "2017-06-26 04:50:28.014122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.015006"], ["updated_at", "2017-06-26 04:50:28.015006"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:50:28.017058"], ["updated_at", "2017-06-26 04:50:28.017058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:50:28.018033"], ["updated_at", "2017-06-26 04:50:28.018033"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:50:28.019880"], ["updated_at", "2017-06-26 04:50:28.019880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:50:28.020674"], ["updated_at", "2017-06-26 04:50:28.020674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.024078"], ["updated_at", "2017-06-26 04:50:28.024078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.024842"], ["updated_at", "2017-06-26 04:50:28.024842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.035834"], ["updated_at", "2017-06-26 04:50:28.035834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.036719"], ["updated_at", "2017-06-26 04:50:28.036719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.038795"], ["updated_at", "2017-06-26 04:50:28.038795"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:50:28.045843"], ["updated_at", "2017-06-26 04:50:28.045843"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:50:28.048837"], ["updated_at", "2017-06-26 04:50:28.048837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:50:28.060356"], ["updated_at", "2017-06-26 04:50:28.060356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 04:50:28.063099"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:50:28.064774"], ["updated_at", "2017-06-26 04:50:28.064774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:50:28.065856"], ["updated_at", "2017-06-26 04:50:28.065856"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.070035"], ["updated_at", "2017-06-26 04:50:28.070035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.074367"], ["updated_at", "2017-06-26 04:50:28.074367"]]  (0.0ms) commit transaction [1m (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.081010"], ["updated_at", "2017-06-26 04:50:28.081010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.084385"], ["updated_at", "2017-06-26 04:50:28.084385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.088539"], ["updated_at", "2017-06-26 04:50:28.088539"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.118099"], ["updated_at", "2017-06-26 04:50:28.118099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.118983"], ["updated_at", "2017-06-26 04:50:28.118983"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.120998"], ["updated_at", "2017-06-26 04:50:28.120998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.125696"], ["updated_at", "2017-06-26 04:50:28.125696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.126564"], ["updated_at", "2017-06-26 04:50:28.126564"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:50:28.131326"], ["updated_at", "2017-06-26 04:50:28.131326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.141377"], ["updated_at", "2017-06-26 04:50:28.141377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.142238"], ["updated_at", "2017-06-26 04:50:28.142238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.152285"], ["updated_at", "2017-06-26 04:50:28.152285"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.153195"], ["updated_at", "2017-06-26 04:50:28.153195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:50:28.160422"], ["updated_at", "2017-06-26 04:50:28.160422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:50:28.161488"], ["updated_at", "2017-06-26 04:50:28.161488"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:50:28.163215"], ["updated_at", "2017-06-26 04:50:28.163215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:50:28.164042"], ["updated_at", "2017-06-26 04:50:28.164042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.179473"], ["updated_at", "2017-06-26 04:50:28.179473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.181596"], ["updated_at", "2017-06-26 04:50:28.181596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.207160"], ["updated_at", "2017-06-26 04:50:28.207160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.212020"], ["updated_at", "2017-06-26 04:50:28.212020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.214945"], ["updated_at", "2017-06-26 04:50:28.214945"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:50:28.222094"], ["updated_at", "2017-06-26 04:50:28.222094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:50:28.222880"], ["updated_at", "2017-06-26 04:50:28.222880"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:50:28.235194"], ["updated_at", "2017-06-26 04:50:28.235194"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:28.256874"], ["updated_at", "2017-06-26 04:50:28.256874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:50:31.291332"], ["updated_at", "2017-06-26 04:50:31.291332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:50:31.297448"], ["updated_at", "2017-06-26 04:50:31.297448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:50:31.308530"], ["updated_at", "2017-06-26 04:50:31.308530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:50:31.309570"], ["updated_at", "2017-06-26 04:50:31.309570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.347547"], ["updated_at", "2017-06-26 04:50:31.347547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.348676"], ["updated_at", "2017-06-26 04:50:31.348676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.349603"], ["updated_at", "2017-06-26 04:50:31.349603"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:50:31.356767"], ["updated_at", "2017-06-26 04:50:31.356767"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.371788"], ["updated_at", "2017-06-26 04:50:31.371788"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.373559"], ["updated_at", "2017-06-26 04:50:31.373559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.381737"], ["updated_at", "2017-06-26 04:50:31.381737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.383081"], ["updated_at", "2017-06-26 04:50:31.383081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.384296"], ["updated_at", "2017-06-26 04:50:31.384296"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.388308"], ["updated_at", "2017-06-26 04:50:31.388308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:50:31.395316"], ["updated_at", "2017-06-26 04:50:31.395316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:50:31.396253"], ["updated_at", "2017-06-26 04:50:31.396253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:50:31.398033"], ["updated_at", "2017-06-26 04:50:31.398033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:50:31.398851"], ["updated_at", "2017-06-26 04:50:31.398851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.406718"], ["updated_at", "2017-06-26 04:50:31.406718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.412678"], ["updated_at", "2017-06-26 04:50:31.412678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.413622"], ["updated_at", "2017-06-26 04:50:31.413622"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.415610"], ["updated_at", "2017-06-26 04:50:31.415610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.416474"], ["updated_at", "2017-06-26 04:50:31.416474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.437054"], ["updated_at", "2017-06-26 04:50:31.437054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.442177"], ["updated_at", "2017-06-26 04:50:31.442177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.443049"], ["updated_at", "2017-06-26 04:50:31.443049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.454564"], ["updated_at", "2017-06-26 04:50:31.454564"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.456874"], ["updated_at", "2017-06-26 04:50:31.456874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.470981"], ["updated_at", "2017-06-26 04:50:31.470981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:50:31.472262"], ["updated_at", "2017-06-26 04:50:31.472262"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:50:31.476063"], ["updated_at", "2017-06-26 04:50:31.476063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 04:50:31.477992"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:50:31.479530"], ["updated_at", "2017-06-26 04:50:31.479530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:50:31.480364"], ["updated_at", "2017-06-26 04:50:31.480364"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.492870"], ["updated_at", "2017-06-26 04:50:31.492870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.493792"], ["updated_at", "2017-06-26 04:50:31.493792"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.496599"], ["updated_at", "2017-06-26 04:50:31.496599"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.498366"], ["updated_at", "2017-06-26 04:50:31.498366"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.501388"], ["updated_at", "2017-06-26 04:50:31.501388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.504546"], ["updated_at", "2017-06-26 04:50:31.504546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.508524"], ["updated_at", "2017-06-26 04:50:31.508524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.509385"], ["updated_at", "2017-06-26 04:50:31.509385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.511678"], ["updated_at", "2017-06-26 04:50:31.511678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.515520"], ["updated_at", "2017-06-26 04:50:31.515520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.517596"], ["updated_at", "2017-06-26 04:50:31.517596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.519756"], ["updated_at", "2017-06-26 04:50:31.519756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:50:31.530384"], ["updated_at", "2017-06-26 04:50:31.530384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.535721"], ["updated_at", "2017-06-26 04:50:31.535721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.536761"], ["updated_at", "2017-06-26 04:50:31.536761"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.539722"], ["updated_at", "2017-06-26 04:50:31.539722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.540696"], ["updated_at", "2017-06-26 04:50:31.540696"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:50:31.542988"], ["updated_at", "2017-06-26 04:50:31.542988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:50:31.543752"], ["updated_at", "2017-06-26 04:50:31.543752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.544646"], ["updated_at", "2017-06-26 04:50:31.544646"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.546583"], ["updated_at", "2017-06-26 04:50:31.546583"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.547530"], ["updated_at", "2017-06-26 04:50:31.547530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.553145"], ["updated_at", "2017-06-26 04:50:31.553145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.557710"], ["updated_at", "2017-06-26 04:50:31.557710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.558566"], ["updated_at", "2017-06-26 04:50:31.558566"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.560339"], ["updated_at", "2017-06-26 04:50:31.560339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.561160"], ["updated_at", "2017-06-26 04:50:31.561160"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.574872"], ["updated_at", "2017-06-26 04:50:31.574872"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.581800"], ["updated_at", "2017-06-26 04:50:31.581800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.585022"], ["updated_at", "2017-06-26 04:50:31.585022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.590516"], ["updated_at", "2017-06-26 04:50:31.590516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.591423"], ["updated_at", "2017-06-26 04:50:31.591423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.593547"], ["updated_at", "2017-06-26 04:50:31.593547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:50:31.597753"], ["updated_at", "2017-06-26 04:50:31.597753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:50:31.600159"], ["updated_at", "2017-06-26 04:50:31.600159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.610382"], ["updated_at", "2017-06-26 04:50:31.610382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.613688"], ["updated_at", "2017-06-26 04:50:31.613688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.618555"], ["updated_at", "2017-06-26 04:50:31.618555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.625193"], ["updated_at", "2017-06-26 04:50:31.625193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.633090"], ["updated_at", "2017-06-26 04:50:31.633090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.640629"], ["updated_at", "2017-06-26 04:50:31.640629"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.646476"], ["updated_at", "2017-06-26 04:50:31.646476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.647366"], ["updated_at", "2017-06-26 04:50:31.647366"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:50:31.729031"], ["updated_at", "2017-06-26 04:50:31.729031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:50:31.729941"], ["updated_at", "2017-06-26 04:50:31.729941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.761055"], ["updated_at", "2017-06-26 04:50:31.761055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.766824"], ["updated_at", "2017-06-26 04:50:31.766824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.769680"], ["updated_at", "2017-06-26 04:50:31.769680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:50:31.790966"], ["updated_at", "2017-06-26 04:50:31.790966"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:31.794747"], ["updated_at", "2017-06-26 04:50:31.794747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.418465"], ["updated_at", "2017-06-26 04:50:36.418465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.426402"], ["updated_at", "2017-06-26 04:50:36.426402"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.430530"], ["updated_at", "2017-06-26 04:50:36.430530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:50:36.447341"], ["updated_at", "2017-06-26 04:50:36.447341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:50:36.448450"], ["updated_at", "2017-06-26 04:50:36.448450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:50:36.470588"], ["updated_at", "2017-06-26 04:50:36.470588"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.504335"], ["updated_at", "2017-06-26 04:50:36.504335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.649326"], ["updated_at", "2017-06-26 04:50:36.649326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.650258"], ["updated_at", "2017-06-26 04:50:36.650258"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.653560"], ["updated_at", "2017-06-26 04:50:36.653560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.658145"], ["updated_at", "2017-06-26 04:50:36.658145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.662644"], ["updated_at", "2017-06-26 04:50:36.662644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.663443"], ["updated_at", "2017-06-26 04:50:36.663443"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.665498"], ["updated_at", "2017-06-26 04:50:36.665498"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:50:36.671060"], ["updated_at", "2017-06-26 04:50:36.671060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.680823"], ["updated_at", "2017-06-26 04:50:36.680823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:50:36.693581"], ["updated_at", "2017-06-26 04:50:36.693581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 04:50:36.694765"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:50:36.695568"], ["updated_at", "2017-06-26 04:50:36.695568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:50:36.696261"], ["updated_at", "2017-06-26 04:50:36.696261"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.699440"], ["updated_at", "2017-06-26 04:50:36.699440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.700121"], ["updated_at", "2017-06-26 04:50:36.700121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.700763"], ["updated_at", "2017-06-26 04:50:36.700763"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.703100"], ["updated_at", "2017-06-26 04:50:36.703100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.703759"], ["updated_at", "2017-06-26 04:50:36.703759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.709630"], ["updated_at", "2017-06-26 04:50:36.709630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.710447"], ["updated_at", "2017-06-26 04:50:36.710447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.718702"], ["updated_at", "2017-06-26 04:50:36.718702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.720701"], ["updated_at", "2017-06-26 04:50:36.720701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.722742"], ["updated_at", "2017-06-26 04:50:36.722742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.726079"], ["updated_at", "2017-06-26 04:50:36.726079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.726784"], ["updated_at", "2017-06-26 04:50:36.726784"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.728485"], ["updated_at", "2017-06-26 04:50:36.728485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.729170"], ["updated_at", "2017-06-26 04:50:36.729170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.737753"], ["updated_at", "2017-06-26 04:50:36.737753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.738617"], ["updated_at", "2017-06-26 04:50:36.738617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.740832"], ["updated_at", "2017-06-26 04:50:36.740832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.744275"], ["updated_at", "2017-06-26 04:50:36.744275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.744945"], ["updated_at", "2017-06-26 04:50:36.744945"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.746707"], ["updated_at", "2017-06-26 04:50:36.746707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.747431"], ["updated_at", "2017-06-26 04:50:36.747431"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.749542"], ["updated_at", "2017-06-26 04:50:36.749542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.751438"], ["updated_at", "2017-06-26 04:50:36.751438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.754168"], ["updated_at", "2017-06-26 04:50:36.754168"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.755084"], ["updated_at", "2017-06-26 04:50:36.755084"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.760399"], ["updated_at", "2017-06-26 04:50:36.760399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.766030"], ["updated_at", "2017-06-26 04:50:36.766030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.773790"], ["updated_at", "2017-06-26 04:50:36.773790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.791176"], ["updated_at", "2017-06-26 04:50:36.791176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.794562"], ["updated_at", "2017-06-26 04:50:36.794562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.795284"], ["updated_at", "2017-06-26 04:50:36.795284"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.797442"], ["updated_at", "2017-06-26 04:50:36.797442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.805489"], ["updated_at", "2017-06-26 04:50:36.805489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.806228"], ["updated_at", "2017-06-26 04:50:36.806228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.808638"], ["updated_at", "2017-06-26 04:50:36.808638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.811964"], ["updated_at", "2017-06-26 04:50:36.811964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.813729"], ["updated_at", "2017-06-26 04:50:36.813729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:50:36.816699"], ["updated_at", "2017-06-26 04:50:36.816699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:50:36.817764"], ["updated_at", "2017-06-26 04:50:36.817764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.818428"], ["updated_at", "2017-06-26 04:50:36.818428"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.820480"], ["updated_at", "2017-06-26 04:50:36.820480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.822804"], ["updated_at", "2017-06-26 04:50:36.822804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:50:36.829648"], ["updated_at", "2017-06-26 04:50:36.829648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:50:36.831997"], ["updated_at", "2017-06-26 04:50:36.831997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:50:36.840691"], ["updated_at", "2017-06-26 04:50:36.840691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:50:36.841543"], ["updated_at", "2017-06-26 04:50:36.841543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:50:36.843058"], ["updated_at", "2017-06-26 04:50:36.843058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:50:36.843798"], ["updated_at", "2017-06-26 04:50:36.843798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.850157"], ["updated_at", "2017-06-26 04:50:36.850157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.850949"], ["updated_at", "2017-06-26 04:50:36.850949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.851676"], ["updated_at", "2017-06-26 04:50:36.851676"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.853985"], ["updated_at", "2017-06-26 04:50:36.853985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:50:36.854756"], ["updated_at", "2017-06-26 04:50:36.854756"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:50:36.856863"], ["updated_at", "2017-06-26 04:50:36.856863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:50:36.857725"], ["updated_at", "2017-06-26 04:50:36.857725"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:50:36.859661"], ["updated_at", "2017-06-26 04:50:36.859661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:50:36.860488"], ["updated_at", "2017-06-26 04:50:36.860488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:50:36.866736"], ["updated_at", "2017-06-26 04:50:36.866736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.872780"], ["updated_at", "2017-06-26 04:50:36.872780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.877343"], ["updated_at", "2017-06-26 04:50:36.877343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.878140"], ["updated_at", "2017-06-26 04:50:36.878140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.885289"], ["updated_at", "2017-06-26 04:50:36.885289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.886057"], ["updated_at", "2017-06-26 04:50:36.886057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:36.892262"], ["updated_at", "2017-06-26 04:50:36.892262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.699462"], ["updated_at", "2017-06-26 04:50:51.699462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.721749"], ["updated_at", "2017-06-26 04:50:51.721749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.724345"], ["updated_at", "2017-06-26 04:50:51.724345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:50:51.729899"], ["updated_at", "2017-06-26 04:50:51.729899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:50:51.732316"], ["updated_at", "2017-06-26 04:50:51.732316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.747458"], ["updated_at", "2017-06-26 04:50:51.747458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.752303"], ["updated_at", "2017-06-26 04:50:51.752303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.757508"], ["updated_at", "2017-06-26 04:50:51.757508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.758275"], ["updated_at", "2017-06-26 04:50:51.758275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.758960"], ["updated_at", "2017-06-26 04:50:51.758960"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.761054"], ["updated_at", "2017-06-26 04:50:51.761054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.763272"], ["updated_at", "2017-06-26 04:50:51.763272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.792943"], ["updated_at", "2017-06-26 04:50:51.792943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.793907"], ["updated_at", "2017-06-26 04:50:51.793907"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.796026"], ["updated_at", "2017-06-26 04:50:51.796026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.796654"], ["updated_at", "2017-06-26 04:50:51.796654"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.798205"], ["updated_at", "2017-06-26 04:50:51.798205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.798849"], ["updated_at", "2017-06-26 04:50:51.798849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:50:51.808225"], ["updated_at", "2017-06-26 04:50:51.808225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.816643"], ["updated_at", "2017-06-26 04:50:51.816643"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.819963"], ["updated_at", "2017-06-26 04:50:51.819963"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.824479"], ["updated_at", "2017-06-26 04:50:51.824479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:50:51.829079"], ["updated_at", "2017-06-26 04:50:51.829079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 04:50:51.830645"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:50:51.832051"], ["updated_at", "2017-06-26 04:50:51.832051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:50:51.832775"], ["updated_at", "2017-06-26 04:50:51.832775"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:50:51.836074"], ["updated_at", "2017-06-26 04:50:51.836074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:50:51.836829"], ["updated_at", "2017-06-26 04:50:51.836829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.837544"], ["updated_at", "2017-06-26 04:50:51.837544"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.839459"], ["updated_at", "2017-06-26 04:50:51.839459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.840150"], ["updated_at", "2017-06-26 04:50:51.840150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.842361"], ["updated_at", "2017-06-26 04:50:51.842361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.845343"], ["updated_at", "2017-06-26 04:50:51.845343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.846072"], ["updated_at", "2017-06-26 04:50:51.846072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:50:51.852327"], ["updated_at", "2017-06-26 04:50:51.852327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:50:51.853018"], ["updated_at", "2017-06-26 04:50:51.853018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:50:51.854500"], ["updated_at", "2017-06-26 04:50:51.854500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:50:51.860159"], ["updated_at", "2017-06-26 04:50:51.860159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.868755"], ["updated_at", "2017-06-26 04:50:51.868755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.869578"], ["updated_at", "2017-06-26 04:50:51.869578"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.871411"], ["updated_at", "2017-06-26 04:50:51.871411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.873444"], ["updated_at", "2017-06-26 04:50:51.873444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.877275"], ["updated_at", "2017-06-26 04:50:51.877275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.878118"], ["updated_at", "2017-06-26 04:50:51.878118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.880014"], ["updated_at", "2017-06-26 04:50:51.880014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.882998"], ["updated_at", "2017-06-26 04:50:51.882998"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.884800"], ["updated_at", "2017-06-26 04:50:51.884800"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.887751"], ["updated_at", "2017-06-26 04:50:51.887751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:50:51.888687"], ["updated_at", "2017-06-26 04:50:51.888687"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.891273"], ["updated_at", "2017-06-26 04:50:51.891273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.892008"], ["updated_at", "2017-06-26 04:50:51.892008"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.894952"], ["updated_at", "2017-06-26 04:50:51.894952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.899633"], ["updated_at", "2017-06-26 04:50:51.899633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:50:51.910452"], ["updated_at", "2017-06-26 04:50:51.910452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:50:51.915312"], ["updated_at", "2017-06-26 04:50:51.915312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:50:51.916261"], ["updated_at", "2017-06-26 04:50:51.916261"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:50:51.918063"], ["updated_at", "2017-06-26 04:50:51.918063"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:50:51.918887"], ["updated_at", "2017-06-26 04:50:51.918887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.922398"], ["updated_at", "2017-06-26 04:50:51.922398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.927547"], ["updated_at", "2017-06-26 04:50:51.927547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.928367"], ["updated_at", "2017-06-26 04:50:51.928367"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.930057"], ["updated_at", "2017-06-26 04:50:51.930057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.930917"], ["updated_at", "2017-06-26 04:50:51.930917"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.933358"], ["updated_at", "2017-06-26 04:50:51.933358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.934156"], ["updated_at", "2017-06-26 04:50:51.934156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.945340"], ["updated_at", "2017-06-26 04:50:51.945340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.951755"], ["updated_at", "2017-06-26 04:50:51.951755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.958271"], ["updated_at", "2017-06-26 04:50:51.958271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.959380"], ["updated_at", "2017-06-26 04:50:51.959380"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.961742"], ["updated_at", "2017-06-26 04:50:51.961742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.962471"], ["updated_at", "2017-06-26 04:50:51.962471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.967021"], ["updated_at", "2017-06-26 04:50:51.967021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.967782"], ["updated_at", "2017-06-26 04:50:51.967782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.968480"], ["updated_at", "2017-06-26 04:50:51.968480"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.978196"], ["updated_at", "2017-06-26 04:50:51.978196"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.982548"], ["updated_at", "2017-06-26 04:50:51.982548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:51.983309"], ["updated_at", "2017-06-26 04:50:51.983309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:50:52.020446"], ["updated_at", "2017-06-26 04:50:52.020446"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:52.023248"], ["updated_at", "2017-06-26 04:50:52.023248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:50:52.029354"], ["updated_at", "2017-06-26 04:50:52.029354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:50:52.030476"], ["updated_at", "2017-06-26 04:50:52.030476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:52.061598"], ["updated_at", "2017-06-26 04:50:52.061598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:52.066195"], ["updated_at", "2017-06-26 04:50:52.066195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:52.068640"], ["updated_at", "2017-06-26 04:50:52.068640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.445801"], ["updated_at", "2017-06-26 04:50:56.445801"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:50:56.455588"], ["updated_at", "2017-06-26 04:50:56.455588"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.3ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:50:56.489623"], ["updated_at", "2017-06-26 04:50:56.489623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:50:56.490867"], ["updated_at", "2017-06-26 04:50:56.490867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.511323"], ["updated_at", "2017-06-26 04:50:56.511323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.517460"], ["updated_at", "2017-06-26 04:50:56.517460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.520435"], ["updated_at", "2017-06-26 04:50:56.520435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.726160"], ["updated_at", "2017-06-26 04:50:56.726160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.727131"], ["updated_at", "2017-06-26 04:50:56.727131"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:50:56.732114"], ["updated_at", "2017-06-26 04:50:56.732114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.735851"], ["updated_at", "2017-06-26 04:50:56.735851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.740508"], ["updated_at", "2017-06-26 04:50:56.740508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.741271"], ["updated_at", "2017-06-26 04:50:56.741271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.741919"], ["updated_at", "2017-06-26 04:50:56.741919"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.743935"], ["updated_at", "2017-06-26 04:50:56.743935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.744661"], ["updated_at", "2017-06-26 04:50:56.744661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.758191"], ["updated_at", "2017-06-26 04:50:56.758191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.759042"], ["updated_at", "2017-06-26 04:50:56.759042"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.760768"], ["updated_at", "2017-06-26 04:50:56.760768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:50:56.761549"], ["updated_at", "2017-06-26 04:50:56.761549"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.763920"], ["updated_at", "2017-06-26 04:50:56.763920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.766084"], ["updated_at", "2017-06-26 04:50:56.766084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.769119"], ["updated_at", "2017-06-26 04:50:56.769119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.769848"], ["updated_at", "2017-06-26 04:50:56.769848"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.771558"], ["updated_at", "2017-06-26 04:50:56.771558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.774605"], ["updated_at", "2017-06-26 04:50:56.774605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.775363"], ["updated_at", "2017-06-26 04:50:56.775363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.781173"], ["updated_at", "2017-06-26 04:50:56.781173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.781886"], ["updated_at", "2017-06-26 04:50:56.781886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.797692"], ["updated_at", "2017-06-26 04:50:56.797692"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.798812"], ["updated_at", "2017-06-26 04:50:56.798812"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.801830"], ["updated_at", "2017-06-26 04:50:56.801830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.806176"], ["updated_at", "2017-06-26 04:50:56.806176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.807026"], ["updated_at", "2017-06-26 04:50:56.807026"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.808887"], ["updated_at", "2017-06-26 04:50:56.808887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.812058"], ["updated_at", "2017-06-26 04:50:56.812058"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.815508"], ["updated_at", "2017-06-26 04:50:56.815508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.817463"], ["updated_at", "2017-06-26 04:50:56.817463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.832299"], ["updated_at", "2017-06-26 04:50:56.832299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.833158"], ["updated_at", "2017-06-26 04:50:56.833158"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.835408"], ["updated_at", "2017-06-26 04:50:56.835408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.836157"], ["updated_at", "2017-06-26 04:50:56.836157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.841816"], ["updated_at", "2017-06-26 04:50:56.841816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.846917"], ["updated_at", "2017-06-26 04:50:56.846917"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:50:56.852846"], ["updated_at", "2017-06-26 04:50:56.852846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:50:56.853911"], ["updated_at", "2017-06-26 04:50:56.853911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:50:56.855736"], ["updated_at", "2017-06-26 04:50:56.855736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:50:56.856602"], ["updated_at", "2017-06-26 04:50:56.856602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.860094"], ["updated_at", "2017-06-26 04:50:56.860094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.863691"], ["updated_at", "2017-06-26 04:50:56.863691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.864489"], ["updated_at", "2017-06-26 04:50:56.864489"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:50:56.869270"], ["updated_at", "2017-06-26 04:50:56.869270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 04:50:56.871157"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:50:56.872108"], ["updated_at", "2017-06-26 04:50:56.872108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:50:56.872950"], ["updated_at", "2017-06-26 04:50:56.872950"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.877169"], ["updated_at", "2017-06-26 04:50:56.877169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.877971"], ["updated_at", "2017-06-26 04:50:56.877971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.879892"], ["updated_at", "2017-06-26 04:50:56.879892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.883313"], ["updated_at", "2017-06-26 04:50:56.883313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.884087"], ["updated_at", "2017-06-26 04:50:56.884087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.884788"], ["updated_at", "2017-06-26 04:50:56.884788"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.889040"], ["updated_at", "2017-06-26 04:50:56.889040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.891145"], ["updated_at", "2017-06-26 04:50:56.891145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (2.8ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.897098"], ["updated_at", "2017-06-26 04:50:56.897098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.897844"], ["updated_at", "2017-06-26 04:50:56.897844"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:50:56.900179"], ["updated_at", "2017-06-26 04:50:56.900179"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:50:56.902288"], ["updated_at", "2017-06-26 04:50:56.902288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:50:56.914897"], ["updated_at", "2017-06-26 04:50:56.914897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:50:56.915937"], ["updated_at", "2017-06-26 04:50:56.915937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:50:56.917494"], ["updated_at", "2017-06-26 04:50:56.917494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:50:56.918245"], ["updated_at", "2017-06-26 04:50:56.918245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:50:56.925880"], ["updated_at", "2017-06-26 04:50:56.925880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:50:56.926837"], ["updated_at", "2017-06-26 04:50:56.926837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.927493"], ["updated_at", "2017-06-26 04:50:56.927493"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.929153"], ["updated_at", "2017-06-26 04:50:56.929153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.933687"], ["updated_at", "2017-06-26 04:50:56.933687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.934572"], ["updated_at", "2017-06-26 04:50:56.934572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.939109"], ["updated_at", "2017-06-26 04:50:56.939109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.943846"], ["updated_at", "2017-06-26 04:50:56.943846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.945671"], ["updated_at", "2017-06-26 04:50:56.945671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.947365"], ["updated_at", "2017-06-26 04:50:56.947365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:50:56.953575"], ["updated_at", "2017-06-26 04:50:56.953575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.962634"], ["updated_at", "2017-06-26 04:50:56.962634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:56.967550"], ["updated_at", "2017-06-26 04:50:56.967550"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.6ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 04:50:59.881425"], ["updated_at", "2017-06-26 04:50:59.881425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 04:50:59.883989"], ["updated_at", "2017-06-26 04:50:59.883989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:59.929861"], ["updated_at", "2017-06-26 04:50:59.929861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:59.947641"], ["updated_at", "2017-06-26 04:50:59.947641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:59.953113"], ["updated_at", "2017-06-26 04:50:59.953113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:50:59.955833"], ["updated_at", "2017-06-26 04:50:59.955833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 04:50:59.968961"], ["updated_at", "2017-06-26 04:50:59.968961"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.016009"], ["updated_at", "2017-06-26 04:51:00.016009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.017008"], ["updated_at", "2017-06-26 04:51:00.017008"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.019392"], ["updated_at", "2017-06-26 04:51:00.019392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.026077"], ["updated_at", "2017-06-26 04:51:00.026077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.030504"], ["updated_at", "2017-06-26 04:51:00.030504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 04:51:00.031328"], ["updated_at", "2017-06-26 04:51:00.031328"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.033839"], ["updated_at", "2017-06-26 04:51:00.033839"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.034645"], ["updated_at", "2017-06-26 04:51:00.034645"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.036435"], ["updated_at", "2017-06-26 04:51:00.036435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.037143"], ["updated_at", "2017-06-26 04:51:00.037143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.042000"], ["updated_at", "2017-06-26 04:51:00.042000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.042752"], ["updated_at", "2017-06-26 04:51:00.042752"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.045016"], ["updated_at", "2017-06-26 04:51:00.045016"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 04:51:00.046824"], ["updated_at", "2017-06-26 04:51:00.046824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 04:51:00.048850"], ["updated_at", "2017-06-26 04:51:00.048850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:51:00.060314"], ["updated_at", "2017-06-26 04:51:00.060314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.064262"], ["updated_at", "2017-06-26 04:51:00.064262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.065058"], ["updated_at", "2017-06-26 04:51:00.065058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.066957"], ["updated_at", "2017-06-26 04:51:00.066957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:51:00.070391"], ["updated_at", "2017-06-26 04:51:00.070391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 04:51:00.071271"], ["updated_at", "2017-06-26 04:51:00.071271"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.072096"], ["updated_at", "2017-06-26 04:51:00.072096"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.073888"], ["updated_at", "2017-06-26 04:51:00.073888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.074650"], ["updated_at", "2017-06-26 04:51:00.074650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.075287"], ["updated_at", "2017-06-26 04:51:00.075287"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.077489"], ["updated_at", "2017-06-26 04:51:00.077489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.081264"], ["updated_at", "2017-06-26 04:51:00.081264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.081981"], ["updated_at", "2017-06-26 04:51:00.081981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.087861"], ["updated_at", "2017-06-26 04:51:00.087861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.089692"], ["updated_at", "2017-06-26 04:51:00.089692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.092826"], ["updated_at", "2017-06-26 04:51:00.092826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:51:00.097950"], ["updated_at", "2017-06-26 04:51:00.097950"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:51:00.099419"], ["updated_at", "2017-06-26 04:51:00.099419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:51:00.101825"], ["updated_at", "2017-06-26 04:51:00.101825"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:51:00.102879"], ["updated_at", "2017-06-26 04:51:00.102879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.124559"], ["updated_at", "2017-06-26 04:51:00.124559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.129231"], ["updated_at", "2017-06-26 04:51:00.129231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.134734"], ["updated_at", "2017-06-26 04:51:00.134734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.136613"], ["updated_at", "2017-06-26 04:51:00.136613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.150309"], ["updated_at", "2017-06-26 04:51:00.150309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.154966"], ["updated_at", "2017-06-26 04:51:00.154966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.158332"], ["updated_at", "2017-06-26 04:51:00.158332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.161400"], ["updated_at", "2017-06-26 04:51:00.161400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.162213"], ["updated_at", "2017-06-26 04:51:00.162213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.162921"], ["updated_at", "2017-06-26 04:51:00.162921"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.165362"], ["updated_at", "2017-06-26 04:51:00.165362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.166056"], ["updated_at", "2017-06-26 04:51:00.166056"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.168122"], ["updated_at", "2017-06-26 04:51:00.168122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.171235"], ["updated_at", "2017-06-26 04:51:00.171235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.172082"], ["updated_at", "2017-06-26 04:51:00.172082"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.174073"], ["updated_at", "2017-06-26 04:51:00.174073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.176011"], ["updated_at", "2017-06-26 04:51:00.176011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.177800"], ["updated_at", "2017-06-26 04:51:00.177800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.180903"], ["updated_at", "2017-06-26 04:51:00.180903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.181646"], ["updated_at", "2017-06-26 04:51:00.181646"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.183806"], ["updated_at", "2017-06-26 04:51:00.183806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.184471"], ["updated_at", "2017-06-26 04:51:00.184471"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.185950"], ["updated_at", "2017-06-26 04:51:00.185950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.186660"], ["updated_at", "2017-06-26 04:51:00.186660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.192603"], ["updated_at", "2017-06-26 04:51:00.192603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.194310"], ["updated_at", "2017-06-26 04:51:00.194310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 04:51:00.199036"], ["updated_at", "2017-06-26 04:51:00.199036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 04:51:00.200531"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 04:51:00.201348"], ["updated_at", "2017-06-26 04:51:00.201348"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 04:51:00.202152"], ["updated_at", "2017-06-26 04:51:00.202152"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.205192"], ["updated_at", "2017-06-26 04:51:00.205192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.205869"], ["updated_at", "2017-06-26 04:51:00.205869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.215078"], ["updated_at", "2017-06-26 04:51:00.215078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.220589"], ["updated_at", "2017-06-26 04:51:00.220589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.221465"], ["updated_at", "2017-06-26 04:51:00.221465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.229678"], ["updated_at", "2017-06-26 04:51:00.229678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 04:51:00.230441"], ["updated_at", "2017-06-26 04:51:00.230441"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 04:51:00.236096"], ["updated_at", "2017-06-26 04:51:00.236096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 04:51:00.245511"], ["updated_at", "2017-06-26 04:51:00.245511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 04:51:00.246526"], ["updated_at", "2017-06-26 04:51:00.246526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 04:51:00.248125"], ["updated_at", "2017-06-26 04:51:00.248125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 04:51:00.248887"], ["updated_at", "2017-06-26 04:51:00.248887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (1.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 05:28:45.567024"], ["updated_at", "2017-06-26 05:28:45.567024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 05:28:45.570843"], ["updated_at", "2017-06-26 05:28:45.570843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 05:28:45.643644"], ["updated_at", "2017-06-26 05:28:45.643644"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.2ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.667518"], ["updated_at", "2017-06-26 05:28:45.667518"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.696375"], ["updated_at", "2017-06-26 05:28:45.696375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.701331"], ["updated_at", "2017-06-26 05:28:45.701331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.703933"], ["updated_at", "2017-06-26 05:28:45.703933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.793344"], ["updated_at", "2017-06-26 05:28:45.793344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 05:28:45.794529"], ["updated_at", "2017-06-26 05:28:45.794529"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.799365"], ["updated_at", "2017-06-26 05:28:45.799365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.804381"], ["updated_at", "2017-06-26 05:28:45.804381"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.810672"], ["updated_at", "2017-06-26 05:28:45.810672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.811780"], ["updated_at", "2017-06-26 05:28:45.811780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.820502"], ["updated_at", "2017-06-26 05:28:45.820502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.829466"], ["updated_at", "2017-06-26 05:28:45.829466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.830391"], ["updated_at", "2017-06-26 05:28:45.830391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.832494"], ["updated_at", "2017-06-26 05:28:45.832494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.839296"], ["updated_at", "2017-06-26 05:28:45.839296"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.845010"], ["updated_at", "2017-06-26 05:28:45.845010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.846893"], ["updated_at", "2017-06-26 05:28:45.846893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.850060"], ["updated_at", "2017-06-26 05:28:45.850060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:28:45.853913"], ["updated_at", "2017-06-26 05:28:45.853913"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:28:45.854627"], ["updated_at", "2017-06-26 05:28:45.854627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:28:45.856575"], ["updated_at", "2017-06-26 05:28:45.856575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:28:45.857561"], ["updated_at", "2017-06-26 05:28:45.857561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.863516"], ["updated_at", "2017-06-26 05:28:45.863516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.864329"], ["updated_at", "2017-06-26 05:28:45.864329"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:28:45.868603"], ["updated_at", "2017-06-26 05:28:45.868603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.872802"], ["updated_at", "2017-06-26 05:28:45.872802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.873712"], ["updated_at", "2017-06-26 05:28:45.873712"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.875495"], ["updated_at", "2017-06-26 05:28:45.875495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.876209"], ["updated_at", "2017-06-26 05:28:45.876209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.880831"], ["updated_at", "2017-06-26 05:28:45.880831"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.889904"], ["updated_at", "2017-06-26 05:28:45.889904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.890988"], ["updated_at", "2017-06-26 05:28:45.890988"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.893142"], ["updated_at", "2017-06-26 05:28:45.893142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.898679"], ["updated_at", "2017-06-26 05:28:45.898679"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.899569"], ["updated_at", "2017-06-26 05:28:45.899569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.901541"], ["updated_at", "2017-06-26 05:28:45.901541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.904572"], ["updated_at", "2017-06-26 05:28:45.904572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.908563"], ["updated_at", "2017-06-26 05:28:45.908563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.909533"], ["updated_at", "2017-06-26 05:28:45.909533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.910235"], ["updated_at", "2017-06-26 05:28:45.910235"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.912577"], ["updated_at", "2017-06-26 05:28:45.912577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.913283"], ["updated_at", "2017-06-26 05:28:45.913283"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 05:28:45.916993"], ["updated_at", "2017-06-26 05:28:45.916993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 05:28:45.918364"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:28:45.919187"], ["updated_at", "2017-06-26 05:28:45.919187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 05:28:45.919941"], ["updated_at", "2017-06-26 05:28:45.919941"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.923304"], ["updated_at", "2017-06-26 05:28:45.923304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.924192"], ["updated_at", "2017-06-26 05:28:45.924192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.924908"], ["updated_at", "2017-06-26 05:28:45.924908"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 05:28:45.927313"], ["updated_at", "2017-06-26 05:28:45.927313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 05:28:45.929617"], ["updated_at", "2017-06-26 05:28:45.929617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.936911"], ["updated_at", "2017-06-26 05:28:45.936911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.937742"], ["updated_at", "2017-06-26 05:28:45.937742"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.940010"], ["updated_at", "2017-06-26 05:28:45.940010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.940840"], ["updated_at", "2017-06-26 05:28:45.940840"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.943008"], ["updated_at", "2017-06-26 05:28:45.943008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.944920"], ["updated_at", "2017-06-26 05:28:45.944920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.947760"], ["updated_at", "2017-06-26 05:28:45.947760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.948564"], ["updated_at", "2017-06-26 05:28:45.948564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.954591"], ["updated_at", "2017-06-26 05:28:45.954591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.955368"], ["updated_at", "2017-06-26 05:28:45.955368"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.969527"], ["updated_at", "2017-06-26 05:28:45.969527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.975244"], ["updated_at", "2017-06-26 05:28:45.975244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:45.982976"], ["updated_at", "2017-06-26 05:28:45.982976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 05:28:45.989615"], ["updated_at", "2017-06-26 05:28:45.989615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:28:46.000072"], ["updated_at", "2017-06-26 05:28:46.000072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:28:46.001092"], ["updated_at", "2017-06-26 05:28:46.001092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:46.001957"], ["updated_at", "2017-06-26 05:28:46.001957"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:46.003947"], ["updated_at", "2017-06-26 05:28:46.003947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:46.004683"], ["updated_at", "2017-06-26 05:28:46.004683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:46.013073"], ["updated_at", "2017-06-26 05:28:46.013073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:46.013902"], ["updated_at", "2017-06-26 05:28:46.013902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:28:46.018165"], ["updated_at", "2017-06-26 05:28:46.018165"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:28:46.018982"], ["updated_at", "2017-06-26 05:28:46.018982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:28:46.020520"], ["updated_at", "2017-06-26 05:28:46.020520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:28:46.021231"], ["updated_at", "2017-06-26 05:28:46.021231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:46.024814"], ["updated_at", "2017-06-26 05:28:46.024814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:46.026912"], ["updated_at", "2017-06-26 05:28:46.026912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:46.030090"], ["updated_at", "2017-06-26 05:28:46.030090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:46.031820"], ["updated_at", "2017-06-26 05:28:46.031820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:28:46.033490"], ["updated_at", "2017-06-26 05:28:46.033490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 05:29:00.815867"], ["updated_at", "2017-06-26 05:29:00.815867"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.2ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:00.871469"], ["updated_at", "2017-06-26 05:29:00.871469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:00.876220"], ["updated_at", "2017-06-26 05:29:00.876220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:00.881894"], ["updated_at", "2017-06-26 05:29:00.881894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.4ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:00.885346"], ["updated_at", "2017-06-26 05:29:00.885346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.3ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 05:29:00.893205"], ["updated_at", "2017-06-26 05:29:00.893205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 05:29:00.894099"], ["updated_at", "2017-06-26 05:29:00.894099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 7], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.2ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.096511"], ["updated_at", "2017-06-26 05:29:01.096511"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.097642"], ["updated_at", "2017-06-26 05:29:01.097642"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.099860"], ["updated_at", "2017-06-26 05:29:01.099860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.100530"], ["updated_at", "2017-06-26 05:29:01.100530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.101131"], ["updated_at", "2017-06-26 05:29:01.101131"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.103502"], ["updated_at", "2017-06-26 05:29:01.103502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.104222"], ["updated_at", "2017-06-26 05:29:01.104222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.112588"], ["updated_at", "2017-06-26 05:29:01.112588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.113386"], ["updated_at", "2017-06-26 05:29:01.113386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.121637"], ["updated_at", "2017-06-26 05:29:01.121637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.126023"], ["updated_at", "2017-06-26 05:29:01.126023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.126747"], ["updated_at", "2017-06-26 05:29:01.126747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.133360"], ["updated_at", "2017-06-26 05:29:01.133360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.134107"], ["updated_at", "2017-06-26 05:29:01.134107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.135077"], ["updated_at", "2017-06-26 05:29:01.135077"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.137638"], ["updated_at", "2017-06-26 05:29:01.137638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.138597"], ["updated_at", "2017-06-26 05:29:01.138597"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:29:01.143996"], ["updated_at", "2017-06-26 05:29:01.143996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.148355"], ["updated_at", "2017-06-26 05:29:01.148355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.150471"], ["updated_at", "2017-06-26 05:29:01.150471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.153830"], ["updated_at", "2017-06-26 05:29:01.153830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 05:29:01.157433"], ["updated_at", "2017-06-26 05:29:01.157433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 05:29:01.159381"], ["updated_at", "2017-06-26 05:29:01.159381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.166961"], ["updated_at", "2017-06-26 05:29:01.166961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.171712"], ["updated_at", "2017-06-26 05:29:01.171712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.173776"], ["updated_at", "2017-06-26 05:29:01.173776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.176922"], ["updated_at", "2017-06-26 05:29:01.176922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.180453"], ["updated_at", "2017-06-26 05:29:01.180453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.181410"], ["updated_at", "2017-06-26 05:29:01.181410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.183587"], ["updated_at", "2017-06-26 05:29:01.183587"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.187555"], ["updated_at", "2017-06-26 05:29:01.187555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.188370"], ["updated_at", "2017-06-26 05:29:01.188370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.190266"], ["updated_at", "2017-06-26 05:29:01.190266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.193098"], ["updated_at", "2017-06-26 05:29:01.193098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.194834"], ["updated_at", "2017-06-26 05:29:01.194834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.196656"], ["updated_at", "2017-06-26 05:29:01.196656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.201688"], ["updated_at", "2017-06-26 05:29:01.201688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.205369"], ["updated_at", "2017-06-26 05:29:01.205369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 05:29:01.210896"], ["updated_at", "2017-06-26 05:29:01.210896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 05:29:01.212381"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:29:01.213446"], ["updated_at", "2017-06-26 05:29:01.213446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 05:29:01.214826"], ["updated_at", "2017-06-26 05:29:01.214826"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.219601"], ["updated_at", "2017-06-26 05:29:01.219601"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.222028"], ["updated_at", "2017-06-26 05:29:01.222028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.222979"], ["updated_at", "2017-06-26 05:29:01.222979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:29:01.231995"], ["updated_at", "2017-06-26 05:29:01.231995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:29:01.232811"], ["updated_at", "2017-06-26 05:29:01.232811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.233560"], ["updated_at", "2017-06-26 05:29:01.233560"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.237577"], ["updated_at", "2017-06-26 05:29:01.237577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.238402"], ["updated_at", "2017-06-26 05:29:01.238402"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:29:01.251618"], ["updated_at", "2017-06-26 05:29:01.251618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:29:01.252578"], ["updated_at", "2017-06-26 05:29:01.252578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:29:01.255100"], ["updated_at", "2017-06-26 05:29:01.255100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:29:01.256215"], ["updated_at", "2017-06-26 05:29:01.256215"]]  (0.1ms) commit transaction  (3.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:29:01.265953"], ["updated_at", "2017-06-26 05:29:01.265953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:29:01.266735"], ["updated_at", "2017-06-26 05:29:01.266735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:29:01.268392"], ["updated_at", "2017-06-26 05:29:01.268392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:29:01.269355"], ["updated_at", "2017-06-26 05:29:01.269355"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.272722"], ["updated_at", "2017-06-26 05:29:01.272722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.273439"], ["updated_at", "2017-06-26 05:29:01.273439"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.279217"], ["updated_at", "2017-06-26 05:29:01.279217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 05:29:01.280029"], ["updated_at", "2017-06-26 05:29:01.280029"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.282255"], ["updated_at", "2017-06-26 05:29:01.282255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.282922"], ["updated_at", "2017-06-26 05:29:01.282922"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.284685"], ["updated_at", "2017-06-26 05:29:01.284685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.285398"], ["updated_at", "2017-06-26 05:29:01.285398"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 05:29:01.288211"], ["updated_at", "2017-06-26 05:29:01.288211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.299097"], ["updated_at", "2017-06-26 05:29:01.299097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.299933"], ["updated_at", "2017-06-26 05:29:01.299933"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.309850"], ["updated_at", "2017-06-26 05:29:01.309850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.314347"], ["updated_at", "2017-06-26 05:29:01.314347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.315060"], ["updated_at", "2017-06-26 05:29:01.315060"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.320731"], ["updated_at", "2017-06-26 05:29:01.320731"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.325623"], ["updated_at", "2017-06-26 05:29:01.325623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.330999"], ["updated_at", "2017-06-26 05:29:01.330999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.332848"], ["updated_at", "2017-06-26 05:29:01.332848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:29:01.336438"], ["updated_at", "2017-06-26 05:29:01.336438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.161458"], ["updated_at", "2017-06-26 05:34:00.161458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.164563"], ["updated_at", "2017-06-26 05:34:00.164563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.183190"], ["updated_at", "2017-06-26 05:34:00.183190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.195223"], ["updated_at", "2017-06-26 05:34:00.195223"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.196268"], ["updated_at", "2017-06-26 05:34:00.196268"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.199392"], ["updated_at", "2017-06-26 05:34:00.199392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.200303"], ["updated_at", "2017-06-26 05:34:00.200303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.210700"], ["updated_at", "2017-06-26 05:34:00.210700"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.212869"], ["updated_at", "2017-06-26 05:34:00.212869"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.213669"], ["updated_at", "2017-06-26 05:34:00.213669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.214505"], ["updated_at", "2017-06-26 05:34:00.214505"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.224438"], ["updated_at", "2017-06-26 05:34:00.224438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:34:00.229033"], ["updated_at", "2017-06-26 05:34:00.229033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:34:00.229993"], ["updated_at", "2017-06-26 05:34:00.229993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:34:00.232500"], ["updated_at", "2017-06-26 05:34:00.232500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:34:00.233373"], ["updated_at", "2017-06-26 05:34:00.233373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.238343"], ["updated_at", "2017-06-26 05:34:00.238343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.241536"], ["updated_at", "2017-06-26 05:34:00.241536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.242352"], ["updated_at", "2017-06-26 05:34:00.242352"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.244820"], ["updated_at", "2017-06-26 05:34:00.244820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.245609"], ["updated_at", "2017-06-26 05:34:00.245609"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.247838"], ["updated_at", "2017-06-26 05:34:00.247838"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.248869"], ["updated_at", "2017-06-26 05:34:00.248869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.257265"], ["updated_at", "2017-06-26 05:34:00.257265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.258062"], ["updated_at", "2017-06-26 05:34:00.258062"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.265959"], ["updated_at", "2017-06-26 05:34:00.265959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.266816"], ["updated_at", "2017-06-26 05:34:00.266816"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.268587"], ["updated_at", "2017-06-26 05:34:00.268587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 05:34:00.269524"], ["updated_at", "2017-06-26 05:34:00.269524"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.271990"], ["updated_at", "2017-06-26 05:34:00.271990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.273954"], ["updated_at", "2017-06-26 05:34:00.273954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 05:34:00.277124"], ["updated_at", "2017-06-26 05:34:00.277124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 05:34:00.279153"], ["updated_at", "2017-06-26 05:34:00.279153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.288289"], ["updated_at", "2017-06-26 05:34:00.288289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.289154"], ["updated_at", "2017-06-26 05:34:00.289154"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.290871"], ["updated_at", "2017-06-26 05:34:00.290871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 05:34:00.296468"], ["updated_at", "2017-06-26 05:34:00.296468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 05:34:00.298334"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:34:00.299787"], ["updated_at", "2017-06-26 05:34:00.299787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 05:34:00.300654"], ["updated_at", "2017-06-26 05:34:00.300654"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.304130"], ["updated_at", "2017-06-26 05:34:00.304130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.305954"], ["updated_at", "2017-06-26 05:34:00.305954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.307735"], ["updated_at", "2017-06-26 05:34:00.307735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.310522"], ["updated_at", "2017-06-26 05:34:00.310522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.311225"], ["updated_at", "2017-06-26 05:34:00.311225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.315543"], ["updated_at", "2017-06-26 05:34:00.315543"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.316466"], ["updated_at", "2017-06-26 05:34:00.316466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.317241"], ["updated_at", "2017-06-26 05:34:00.317241"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.319410"], ["updated_at", "2017-06-26 05:34:00.319410"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.323863"], ["updated_at", "2017-06-26 05:34:00.323863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.325977"], ["updated_at", "2017-06-26 05:34:00.325977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.331711"], ["updated_at", "2017-06-26 05:34:00.331711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.333781"], ["updated_at", "2017-06-26 05:34:00.333781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.337227"], ["updated_at", "2017-06-26 05:34:00.337227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:34:00.342073"], ["updated_at", "2017-06-26 05:34:00.342073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:34:00.343043"], ["updated_at", "2017-06-26 05:34:00.343043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:34:00.344735"], ["updated_at", "2017-06-26 05:34:00.344735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:34:00.345522"], ["updated_at", "2017-06-26 05:34:00.345522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.366859"], ["updated_at", "2017-06-26 05:34:00.366859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.371421"], ["updated_at", "2017-06-26 05:34:00.371421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.380014"], ["updated_at", "2017-06-26 05:34:00.380014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.383568"], ["updated_at", "2017-06-26 05:34:00.383568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.384429"], ["updated_at", "2017-06-26 05:34:00.384429"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.386664"], ["updated_at", "2017-06-26 05:34:00.386664"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.387465"], ["updated_at", "2017-06-26 05:34:00.387465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.389157"], ["updated_at", "2017-06-26 05:34:00.389157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.400078"], ["updated_at", "2017-06-26 05:34:00.400078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.406989"], ["updated_at", "2017-06-26 05:34:00.406989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:34:00.412784"], ["updated_at", "2017-06-26 05:34:00.412784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:34:00.413593"], ["updated_at", "2017-06-26 05:34:00.413593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.414330"], ["updated_at", "2017-06-26 05:34:00.414330"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.416324"], ["updated_at", "2017-06-26 05:34:00.416324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 05:34:00.421697"], ["updated_at", "2017-06-26 05:34:00.421697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.431038"], ["updated_at", "2017-06-26 05:34:00.431038"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:34:00.437820"], ["updated_at", "2017-06-26 05:34:00.437820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.441354"], ["updated_at", "2017-06-26 05:34:00.441354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.442069"], ["updated_at", "2017-06-26 05:34:00.442069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.467129"], ["updated_at", "2017-06-26 05:34:00.467129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.471881"], ["updated_at", "2017-06-26 05:34:00.471881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.474466"], ["updated_at", "2017-06-26 05:34:00.474466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 6], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 05:34:00.497576"], ["updated_at", "2017-06-26 05:34:00.497576"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 05:34:00.501774"], ["updated_at", "2017-06-26 05:34:00.501774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 05:34:00.502726"], ["updated_at", "2017-06-26 05:34:00.502726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:34:00.523856"], ["updated_at", "2017-06-26 05:34:00.523856"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.3ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.234769"], ["updated_at", "2017-06-26 05:36:04.234769"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.269148"], ["updated_at", "2017-06-26 05:36:04.269148"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.273328"], ["updated_at", "2017-06-26 05:36:04.273328"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.287259"], ["updated_at", "2017-06-26 05:36:04.287259"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.289307"], ["updated_at", "2017-06-26 05:36:04.289307"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.296386"], ["updated_at", "2017-06-26 05:36:04.296386"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.317147"], ["updated_at", "2017-06-26 05:36:04.317147"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.321838"], ["updated_at", "2017-06-26 05:36:04.321838"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.328728"], ["updated_at", "2017-06-26 05:36:04.328728"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.330858"], ["updated_at", "2017-06-26 05:36:04.330858"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.335642"], ["updated_at", "2017-06-26 05:36:04.335642"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (1.0ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.348540"], ["updated_at", "2017-06-26 05:36:04.348540"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.366963"], ["updated_at", "2017-06-26 05:36:04.366963"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.2ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.393377"], ["updated_at", "2017-06-26 05:36:04.393377"]]  (0.6ms) commit transaction TestModel Load (1.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.405734"], ["updated_at", "2017-06-26 05:36:04.405734"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.433502"], ["updated_at", "2017-06-26 05:36:04.433502"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.436170"], ["updated_at", "2017-06-26 05:36:04.436170"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.461617"], ["updated_at", "2017-06-26 05:36:04.461617"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.469071"], ["updated_at", "2017-06-26 05:36:04.469071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.470613"], ["updated_at", "2017-06-26 05:36:04.470613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.471844"], ["updated_at", "2017-06-26 05:36:04.471844"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.477265"], ["updated_at", "2017-06-26 05:36:04.477265"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.479149"], ["updated_at", "2017-06-26 05:36:04.479149"]]  (0.5ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.485165"], ["updated_at", "2017-06-26 05:36:04.485165"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.498727"], ["updated_at", "2017-06-26 05:36:04.498727"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.500674"], ["updated_at", "2017-06-26 05:36:04.500674"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.523054"], ["updated_at", "2017-06-26 05:36:04.523054"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.525046"], ["updated_at", "2017-06-26 05:36:04.525046"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.530082"], ["updated_at", "2017-06-26 05:36:04.530082"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:36:04.539210"], ["updated_at", "2017-06-26 05:36:04.539210"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:36:04.541290"], ["updated_at", "2017-06-26 05:36:04.541290"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:36:04.546832"], ["updated_at", "2017-06-26 05:36:04.546832"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:36:04.549489"], ["updated_at", "2017-06-26 05:36:04.549489"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.569983"], ["updated_at", "2017-06-26 05:36:04.569983"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.580173"], ["updated_at", "2017-06-26 05:36:04.580173"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.585473"], ["updated_at", "2017-06-26 05:36:04.585473"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.592963"], ["updated_at", "2017-06-26 05:36:04.592963"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 05:36:04.621141"], ["updated_at", "2017-06-26 05:36:04.621141"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 05:36:04.627217"], ["updated_at", "2017-06-26 05:36:04.627217"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.652449"], ["updated_at", "2017-06-26 05:36:04.652449"]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.655099"], ["updated_at", "2017-06-26 05:36:04.655099"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.661349"], ["updated_at", "2017-06-26 05:36:04.661349"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.663617"], ["updated_at", "2017-06-26 05:36:04.663617"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.677490"], ["updated_at", "2017-06-26 05:36:04.677490"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.683438"], ["updated_at", "2017-06-26 05:36:04.683438"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.711295"], ["updated_at", "2017-06-26 05:36:04.711295"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.713584"], ["updated_at", "2017-06-26 05:36:04.713584"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 05:36:04.724374"], ["updated_at", "2017-06-26 05:36:04.724374"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 05:36:04.728954"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:36:04.732445"], ["updated_at", "2017-06-26 05:36:04.732445"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 05:36:04.734822"], ["updated_at", "2017-06-26 05:36:04.734822"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.743768"], ["updated_at", "2017-06-26 05:36:04.743768"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 05:36:04.746115"], ["updated_at", "2017-06-26 05:36:04.746115"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.753238"], ["updated_at", "2017-06-26 05:36:04.753238"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.755442"], ["updated_at", "2017-06-26 05:36:04.755442"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.802807"], ["updated_at", "2017-06-26 05:36:04.802807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.804455"], ["updated_at", "2017-06-26 05:36:04.804455"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.6ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:36:04.853110"], ["updated_at", "2017-06-26 05:36:04.853110"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:36:04.855581"], ["updated_at", "2017-06-26 05:36:04.855581"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:36:04.861369"], ["updated_at", "2017-06-26 05:36:04.861369"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:36:04.864525"], ["updated_at", "2017-06-26 05:36:04.864525"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.873344"], ["updated_at", "2017-06-26 05:36:04.873344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.887485"], ["updated_at", "2017-06-26 05:36:04.887485"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.890398"], ["updated_at", "2017-06-26 05:36:04.890398"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.893388"], ["updated_at", "2017-06-26 05:36:04.893388"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.916553"], ["updated_at", "2017-06-26 05:36:04.916553"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.918972"], ["updated_at", "2017-06-26 05:36:04.918972"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.923835"], ["updated_at", "2017-06-26 05:36:04.923835"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.925956"], ["updated_at", "2017-06-26 05:36:04.925956"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.934442"], ["updated_at", "2017-06-26 05:36:04.934442"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.936678"], ["updated_at", "2017-06-26 05:36:04.936678"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:36:04.943283"], ["updated_at", "2017-06-26 05:36:04.943283"]]  (0.5ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:36:04.946249"], ["updated_at", "2017-06-26 05:36:04.946249"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.949057"], ["updated_at", "2017-06-26 05:36:04.949057"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:36:04.959514"], ["updated_at", "2017-06-26 05:36:04.959514"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 05:36:04.971662"], ["updated_at", "2017-06-26 05:36:04.971662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:04.992541"], ["updated_at", "2017-06-26 05:36:04.992541"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:05.324460"], ["updated_at", "2017-06-26 05:36:05.324460"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:05.337819"], ["updated_at", "2017-06-26 05:36:05.337819"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:05.343790"], ["updated_at", "2017-06-26 05:36:05.343790"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 05:36:05.356543"], ["updated_at", "2017-06-26 05:36:05.356543"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:05.367489"], ["updated_at", "2017-06-26 05:36:05.367489"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 05:36:05.442965"], ["updated_at", "2017-06-26 05:36:05.442965"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 05:36:05.445044"], ["updated_at", "2017-06-26 05:36:05.445044"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.6ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.3ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.3ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.3ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 13ms (Views: 11.0ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 15ms (Views: 9.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 13ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 18ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 05:36:14.210777"], ["updated_at", "2017-06-26 05:36:14.210777"]]  (0.1ms) commit transaction SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.305947"], ["updated_at", "2017-06-26 05:36:14.305947"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.326721"], ["updated_at", "2017-06-26 05:36:14.326721"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.336496"], ["updated_at", "2017-06-26 05:36:14.336496"]]  (0.1ms) commit transaction  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (13.5ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.439076"], ["updated_at", "2017-06-26 05:36:14.439076"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 05:36:14.456472"], ["updated_at", "2017-06-26 05:36:14.456472"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 05:36:14.459181"], ["updated_at", "2017-06-26 05:36:14.459181"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 12ms (Views: 6.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.4ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 32ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.810292"], ["updated_at", "2017-06-26 05:36:14.810292"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.817297"], ["updated_at", "2017-06-26 05:36:14.817297"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.827928"], ["updated_at", "2017-06-26 05:36:14.827928"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.840274"], ["updated_at", "2017-06-26 05:36:14.840274"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.847594"], ["updated_at", "2017-06-26 05:36:14.847594"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.858524"], ["updated_at", "2017-06-26 05:36:14.858524"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.861033"], ["updated_at", "2017-06-26 05:36:14.861033"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:36:14.890461"], ["updated_at", "2017-06-26 05:36:14.890461"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:36:14.893621"], ["updated_at", "2017-06-26 05:36:14.893621"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:36:14.902794"], ["updated_at", "2017-06-26 05:36:14.902794"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:36:14.906472"], ["updated_at", "2017-06-26 05:36:14.906472"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.4ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.933132"], ["updated_at", "2017-06-26 05:36:14.933132"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.942243"], ["updated_at", "2017-06-26 05:36:14.942243"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.3ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.953008"], ["updated_at", "2017-06-26 05:36:14.953008"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.955351"], ["updated_at", "2017-06-26 05:36:14.955351"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.970667"], ["updated_at", "2017-06-26 05:36:14.970667"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:14.991224"], ["updated_at", "2017-06-26 05:36:14.991224"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.026343"], ["updated_at", "2017-06-26 05:36:15.026343"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.044589"], ["updated_at", "2017-06-26 05:36:15.044589"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.047352"], ["updated_at", "2017-06-26 05:36:15.047352"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.054928"], ["updated_at", "2017-06-26 05:36:15.054928"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.057560"], ["updated_at", "2017-06-26 05:36:15.057560"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.076579"], ["updated_at", "2017-06-26 05:36:15.076579"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.079903"], ["updated_at", "2017-06-26 05:36:15.079903"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (3.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.192335"], ["updated_at", "2017-06-26 05:36:15.192335"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:36:15.201991"], ["updated_at", "2017-06-26 05:36:15.201991"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:36:15.203686"], ["updated_at", "2017-06-26 05:36:15.203686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:36:15.208024"], ["updated_at", "2017-06-26 05:36:15.208024"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:36:15.210513"], ["updated_at", "2017-06-26 05:36:15.210513"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.230855"], ["updated_at", "2017-06-26 05:36:15.230855"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.234592"], ["updated_at", "2017-06-26 05:36:15.234592"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.265917"], ["updated_at", "2017-06-26 05:36:15.265917"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.293880"], ["updated_at", "2017-06-26 05:36:15.293880"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.312392"], ["updated_at", "2017-06-26 05:36:15.312392"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (1.3ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 05:36:15.386661"], ["updated_at", "2017-06-26 05:36:15.386661"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 05:36:15.393572"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:36:15.396673"], ["updated_at", "2017-06-26 05:36:15.396673"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 05:36:15.399770"], ["updated_at", "2017-06-26 05:36:15.399770"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.412841"], ["updated_at", "2017-06-26 05:36:15.412841"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.417925"], ["updated_at", "2017-06-26 05:36:15.417925"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.427037"], ["updated_at", "2017-06-26 05:36:15.427037"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.430019"], ["updated_at", "2017-06-26 05:36:15.430019"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.436225"], ["updated_at", "2017-06-26 05:36:15.436225"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 05:36:15.438795"], ["updated_at", "2017-06-26 05:36:15.438795"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.446191"], ["updated_at", "2017-06-26 05:36:15.446191"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.469263"], ["updated_at", "2017-06-26 05:36:15.469263"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.476064"], ["updated_at", "2017-06-26 05:36:15.476064"]]  (0.1ms) commit transaction TestModel Load (0.5ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.496045"], ["updated_at", "2017-06-26 05:36:15.496045"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.502095"], ["updated_at", "2017-06-26 05:36:15.502095"]]  (2.7ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.531640"], ["updated_at", "2017-06-26 05:36:15.531640"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.534373"], ["updated_at", "2017-06-26 05:36:15.534373"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.536832"], ["updated_at", "2017-06-26 05:36:15.536832"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.545682"], ["updated_at", "2017-06-26 05:36:15.545682"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 05:36:15.579982"], ["updated_at", "2017-06-26 05:36:15.579982"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 05:36:15.590759"], ["updated_at", "2017-06-26 05:36:15.590759"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 05:36:15.627919"], ["updated_at", "2017-06-26 05:36:15.627919"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.669016"], ["updated_at", "2017-06-26 05:36:15.669016"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.671704"], ["updated_at", "2017-06-26 05:36:15.671704"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.679044"], ["updated_at", "2017-06-26 05:36:15.679044"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.685542"], ["updated_at", "2017-06-26 05:36:15.685542"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.697702"], ["updated_at", "2017-06-26 05:36:15.697702"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.708282"], ["updated_at", "2017-06-26 05:36:15.708282"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.723025"], ["updated_at", "2017-06-26 05:36:15.723025"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.725569"], ["updated_at", "2017-06-26 05:36:15.725569"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.739418"], ["updated_at", "2017-06-26 05:36:15.739418"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.742930"], ["updated_at", "2017-06-26 05:36:15.742930"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.751212"], ["updated_at", "2017-06-26 05:36:15.751212"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.754359"], ["updated_at", "2017-06-26 05:36:15.754359"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.763121"], ["updated_at", "2017-06-26 05:36:15.763121"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.6ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.774797"], ["updated_at", "2017-06-26 05:36:15.774797"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.781944"], ["updated_at", "2017-06-26 05:36:15.781944"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:36:15.794527"], ["updated_at", "2017-06-26 05:36:15.794527"]]  (0.1ms) commit transaction  (0.9ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:36:15.798419"], ["updated_at", "2017-06-26 05:36:15.798419"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.800974"], ["updated_at", "2017-06-26 05:36:15.800974"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:36:15.819843"], ["updated_at", "2017-06-26 05:36:15.819843"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.842729"], ["updated_at", "2017-06-26 05:36:15.842729"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:36:15.851098"], ["updated_at", "2017-06-26 05:36:15.851098"]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:55:21.126147"], ["updated_at", "2017-06-26 05:55:21.126147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:55:21.143319"], ["updated_at", "2017-06-26 05:55:21.143319"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:55:21.158285"], ["updated_at", "2017-06-26 05:55:21.158285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:55:21.159266"], ["updated_at", "2017-06-26 05:55:21.159266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.191818"], ["updated_at", "2017-06-26 05:55:21.191818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.192939"], ["updated_at", "2017-06-26 05:55:21.192939"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 05:55:21.195835"], ["updated_at", "2017-06-26 05:55:21.195835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 05:55:21.198538"], ["updated_at", "2017-06-26 05:55:21.198538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.209230"], ["updated_at", "2017-06-26 05:55:21.209230"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.218884"], ["updated_at", "2017-06-26 05:55:21.218884"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.222062"], ["updated_at", "2017-06-26 05:55:21.222062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.223003"], ["updated_at", "2017-06-26 05:55:21.223003"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.225375"], ["updated_at", "2017-06-26 05:55:21.225375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.226367"], ["updated_at", "2017-06-26 05:55:21.226367"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.230888"], ["updated_at", "2017-06-26 05:55:21.230888"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.232942"], ["updated_at", "2017-06-26 05:55:21.232942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.235883"], ["updated_at", "2017-06-26 05:55:21.235883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.238325"], ["updated_at", "2017-06-26 05:55:21.238325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.241840"], ["updated_at", "2017-06-26 05:55:21.241840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.242657"], ["updated_at", "2017-06-26 05:55:21.242657"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.245333"], ["updated_at", "2017-06-26 05:55:21.245333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.249369"], ["updated_at", "2017-06-26 05:55:21.249369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.252037"], ["updated_at", "2017-06-26 05:55:21.252037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:55:21.262962"], ["updated_at", "2017-06-26 05:55:21.262962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.267748"], ["updated_at", "2017-06-26 05:55:21.267748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.273495"], ["updated_at", "2017-06-26 05:55:21.273495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.274400"], ["updated_at", "2017-06-26 05:55:21.274400"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.275321"], ["updated_at", "2017-06-26 05:55:21.275321"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.278099"], ["updated_at", "2017-06-26 05:55:21.278099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.279081"], ["updated_at", "2017-06-26 05:55:21.279081"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.281139"], ["updated_at", "2017-06-26 05:55:21.281139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.282007"], ["updated_at", "2017-06-26 05:55:21.282007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.313408"], ["updated_at", "2017-06-26 05:55:21.313408"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.314680"], ["updated_at", "2017-06-26 05:55:21.314680"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.321014"], ["updated_at", "2017-06-26 05:55:21.321014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.323653"], ["updated_at", "2017-06-26 05:55:21.323653"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 05:55:21.330441"], ["updated_at", "2017-06-26 05:55:21.330441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 05:55:21.333195"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 05:55:21.335048"], ["updated_at", "2017-06-26 05:55:21.335048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 05:55:21.336062"], ["updated_at", "2017-06-26 05:55:21.336062"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.351774"], ["updated_at", "2017-06-26 05:55:21.351774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.358427"], ["updated_at", "2017-06-26 05:55:21.358427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.359603"], ["updated_at", "2017-06-26 05:55:21.359603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.372280"], ["updated_at", "2017-06-26 05:55:21.372280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.376835"], ["updated_at", "2017-06-26 05:55:21.376835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.377889"], ["updated_at", "2017-06-26 05:55:21.377889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.389941"], ["updated_at", "2017-06-26 05:55:21.389941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.390927"], ["updated_at", "2017-06-26 05:55:21.390927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.393402"], ["updated_at", "2017-06-26 05:55:21.393402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.402366"], ["updated_at", "2017-06-26 05:55:21.402366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.403426"], ["updated_at", "2017-06-26 05:55:21.403426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.404632"], ["updated_at", "2017-06-26 05:55:21.404632"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.408162"], ["updated_at", "2017-06-26 05:55:21.408162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.415912"], ["updated_at", "2017-06-26 05:55:21.415912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.423928"], ["updated_at", "2017-06-26 05:55:21.423928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.424933"], ["updated_at", "2017-06-26 05:55:21.424933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.435238"], ["updated_at", "2017-06-26 05:55:21.435238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.443150"], ["updated_at", "2017-06-26 05:55:21.443150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.444444"], ["updated_at", "2017-06-26 05:55:21.444444"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.447635"], ["updated_at", "2017-06-26 05:55:21.447635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 05:55:21.454611"], ["updated_at", "2017-06-26 05:55:21.454611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.472943"], ["updated_at", "2017-06-26 05:55:21.472943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.477620"], ["updated_at", "2017-06-26 05:55:21.477620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.480006"], ["updated_at", "2017-06-26 05:55:21.480006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.484270"], ["updated_at", "2017-06-26 05:55:21.484270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.485173"], ["updated_at", "2017-06-26 05:55:21.485173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.487390"], ["updated_at", "2017-06-26 05:55:21.487390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.491436"], ["updated_at", "2017-06-26 05:55:21.491436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 05:55:21.496533"], ["updated_at", "2017-06-26 05:55:21.496533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 05:55:21.497499"], ["updated_at", "2017-06-26 05:55:21.497499"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 05:55:21.499255"], ["updated_at", "2017-06-26 05:55:21.499255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 05:55:21.500094"], ["updated_at", "2017-06-26 05:55:21.500094"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.503555"], ["updated_at", "2017-06-26 05:55:21.503555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 05:55:21.504538"], ["updated_at", "2017-06-26 05:55:21.504538"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:55:21.507022"], ["updated_at", "2017-06-26 05:55:21.507022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 05:55:21.507869"], ["updated_at", "2017-06-26 05:55:21.507869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.508728"], ["updated_at", "2017-06-26 05:55:21.508728"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.547861"], ["updated_at", "2017-06-26 05:55:21.547861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.553880"], ["updated_at", "2017-06-26 05:55:21.553880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.556763"], ["updated_at", "2017-06-26 05:55:21.556763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 05:55:21.572745"], ["updated_at", "2017-06-26 05:55:21.572745"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 05:55:21.581719"], ["updated_at", "2017-06-26 05:55:21.581719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 05:55:21.582660"], ["updated_at", "2017-06-26 05:55:21.582660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 8], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 05:55:21.625345"], ["updated_at", "2017-06-26 05:55:21.625345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:00:10.380644"], ["updated_at", "2017-06-26 06:00:10.380644"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:00:10.414287"], ["updated_at", "2017-06-26 06:00:10.414287"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.432294"], ["updated_at", "2017-06-26 06:00:10.432294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.433496"], ["updated_at", "2017-06-26 06:00:10.433496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.435734"], ["updated_at", "2017-06-26 06:00:10.435734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:00:10.454075"], ["updated_at", "2017-06-26 06:00:10.454075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:00:10.454895"], ["updated_at", "2017-06-26 06:00:10.454895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 6], ["test_another_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:00:10.456769"], ["updated_at", "2017-06-26 06:00:10.456769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:00:10.457750"], ["updated_at", "2017-06-26 06:00:10.457750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 8], ["test_another_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.459929"], ["updated_at", "2017-06-26 06:00:10.459929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.460709"], ["updated_at", "2017-06-26 06:00:10.460709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.461831"], ["updated_at", "2017-06-26 06:00:10.461831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.462678"], ["updated_at", "2017-06-26 06:00:10.462678"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.464606"], ["updated_at", "2017-06-26 06:00:10.464606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.472753"], ["updated_at", "2017-06-26 06:00:10.472753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.477019"], ["updated_at", "2017-06-26 06:00:10.477019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.478028"], ["updated_at", "2017-06-26 06:00:10.478028"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 4], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.486776"], ["updated_at", "2017-06-26 06:00:10.486776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.488662"], ["updated_at", "2017-06-26 06:00:10.488662"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.490844"], ["updated_at", "2017-06-26 06:00:10.490844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.493078"], ["updated_at", "2017-06-26 06:00:10.493078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.494965"], ["updated_at", "2017-06-26 06:00:10.494965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.497217"], ["updated_at", "2017-06-26 06:00:10.497217"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.504968"], ["updated_at", "2017-06-26 06:00:10.504968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.505969"], ["updated_at", "2017-06-26 06:00:10.505969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.508368"], ["updated_at", "2017-06-26 06:00:10.508368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.510771"], ["updated_at", "2017-06-26 06:00:10.510771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 14]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.513957"], ["updated_at", "2017-06-26 06:00:10.513957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.514772"], ["updated_at", "2017-06-26 06:00:10.514772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.515794"], ["updated_at", "2017-06-26 06:00:10.515794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:00:10.518649"], ["updated_at", "2017-06-26 06:00:10.518649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:00:10.519489"], ["updated_at", "2017-06-26 06:00:10.519489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.520129"], ["updated_at", "2017-06-26 06:00:10.520129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:00:10.521235"], ["updated_at", "2017-06-26 06:00:10.521235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:00:10.522049"], ["updated_at", "2017-06-26 06:00:10.522049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 7], ["test_another_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:00:10.523812"], ["updated_at", "2017-06-26 06:00:10.523812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:00:10.524627"], ["updated_at", "2017-06-26 06:00:10.524627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 9], ["test_another_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.529309"], ["updated_at", "2017-06-26 06:00:10.529309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.530224"], ["updated_at", "2017-06-26 06:00:10.530224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.531295"], ["updated_at", "2017-06-26 06:00:10.531295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.532058"], ["updated_at", "2017-06-26 06:00:10.532058"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 13], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.537986"], ["updated_at", "2017-06-26 06:00:10.537986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 15]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.541118"], ["updated_at", "2017-06-26 06:00:10.541118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.542080"], ["updated_at", "2017-06-26 06:00:10.542080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.542895"], ["updated_at", "2017-06-26 06:00:10.542895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 4], ["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 5], ["company_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.552809"], ["updated_at", "2017-06-26 06:00:10.552809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 19]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 19], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.557694"], ["updated_at", "2017-06-26 06:00:10.557694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.558601"], ["updated_at", "2017-06-26 06:00:10.558601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.560971"], ["updated_at", "2017-06-26 06:00:10.560971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.563586"], ["updated_at", "2017-06-26 06:00:10.563586"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.565879"], ["updated_at", "2017-06-26 06:00:10.565879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.567784"], ["updated_at", "2017-06-26 06:00:10.567784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.570028"], ["updated_at", "2017-06-26 06:00:10.570028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.570770"], ["updated_at", "2017-06-26 06:00:10.570770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.580799"], ["updated_at", "2017-06-26 06:00:10.580799"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:00:10.581667"], ["updated_at", "2017-06-26 06:00:10.581667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.582923"], ["updated_at", "2017-06-26 06:00:10.582923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.583857"], ["updated_at", "2017-06-26 06:00:10.583857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.584995"], ["updated_at", "2017-06-26 06:00:10.584995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.587253"], ["updated_at", "2017-06-26 06:00:10.587253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.590132"], ["updated_at", "2017-06-26 06:00:10.590132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.591431"], ["updated_at", "2017-06-26 06:00:10.591431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:00:10.595081"], ["updated_at", "2017-06-26 06:00:10.595081"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:00:10.597583"], ["id", 17]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:00:10.599057"], ["updated_at", "2017-06-26 06:00:10.599057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:00:10.599971"], ["updated_at", "2017-06-26 06:00:10.599971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.601112"], ["updated_at", "2017-06-26 06:00:10.601112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.601883"], ["updated_at", "2017-06-26 06:00:10.601883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.602926"], ["updated_at", "2017-06-26 06:00:10.602926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 22], ["attr", 111]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:00:10.609255"], ["updated_at", "2017-06-26 06:00:10.609255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.611735"], ["updated_at", "2017-06-26 06:00:10.611735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.612705"], ["updated_at", "2017-06-26 06:00:10.612705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.617188"], ["updated_at", "2017-06-26 06:00:10.617188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.618420"], ["updated_at", "2017-06-26 06:00:10.618420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.619227"], ["updated_at", "2017-06-26 06:00:10.619227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.620020"], ["updated_at", "2017-06-26 06:00:10.620020"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:00:10.622696"], ["updated_at", "2017-06-26 06:00:10.622696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 6], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 7]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 2], ["LIMIT", 1]] ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:00:10.665611"], ["updated_at", "2017-06-26 06:00:10.665611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:00:10.666577"], ["updated_at", "2017-06-26 06:00:10.666577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:00:10.685683"], ["updated_at", "2017-06-26 06:00:10.685683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.691874"], ["updated_at", "2017-06-26 06:00:10.691874"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 4], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 4], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.697380"], ["updated_at", "2017-06-26 06:00:10.697380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.700039"], ["updated_at", "2017-06-26 06:00:10.700039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:00:10.705871"], ["updated_at", "2017-06-26 06:00:10.705871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) SQL (0.8ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:01:25.361983"], ["updated_at", "2017-06-26 06:01:25.361983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:01:25.363259"], ["updated_at", "2017-06-26 06:01:25.363259"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:01:25.414809"], ["updated_at", "2017-06-26 06:01:25.414809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.439895"], ["updated_at", "2017-06-26 06:01:25.439895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.449482"], ["updated_at", "2017-06-26 06:01:25.449482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.455554"], ["updated_at", "2017-06-26 06:01:25.455554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 6], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.458683"], ["updated_at", "2017-06-26 06:01:25.458683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.464474"], ["updated_at", "2017-06-26 06:01:25.464474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.467428"], ["updated_at", "2017-06-26 06:01:25.467428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 9], ["attr", 111]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.471416"], ["updated_at", "2017-06-26 06:01:25.471416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.472367"], ["updated_at", "2017-06-26 06:01:25.472367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.473825"], ["updated_at", "2017-06-26 06:01:25.473825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.474835"], ["updated_at", "2017-06-26 06:01:25.474835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 12], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.481296"], ["updated_at", "2017-06-26 06:01:25.481296"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.484214"], ["updated_at", "2017-06-26 06:01:25.484214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 15]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.486382"], ["updated_at", "2017-06-26 06:01:25.486382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.489288"], ["updated_at", "2017-06-26 06:01:25.489288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.490426"], ["updated_at", "2017-06-26 06:01:25.490426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 17], ["test_another_model_id", 18]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.492769"], ["updated_at", "2017-06-26 06:01:25.492769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 19]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 19]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.498719"], ["updated_at", "2017-06-26 06:01:25.498719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 20]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 20], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.502953"], ["updated_at", "2017-06-26 06:01:25.502953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.503811"], ["updated_at", "2017-06-26 06:01:25.503811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.504618"], ["updated_at", "2017-06-26 06:01:25.504618"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.506375"], ["updated_at", "2017-06-26 06:01:25.506375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.512555"], ["updated_at", "2017-06-26 06:01:25.512555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:01:25.520689"], ["updated_at", "2017-06-26 06:01:25.520689"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:01:25.522981"], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:01:25.524640"], ["updated_at", "2017-06-26 06:01:25.524640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:01:25.525725"], ["updated_at", "2017-06-26 06:01:25.525725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.527291"], ["updated_at", "2017-06-26 06:01:25.527291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.538526"], ["updated_at", "2017-06-26 06:01:25.538526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.539387"], ["updated_at", "2017-06-26 06:01:25.539387"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:01:25.546808"], ["updated_at", "2017-06-26 06:01:25.546808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:01:25.547795"], ["updated_at", "2017-06-26 06:01:25.547795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.548606"], ["updated_at", "2017-06-26 06:01:25.548606"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.549787"], ["updated_at", "2017-06-26 06:01:25.549787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.552175"], ["updated_at", "2017-06-26 06:01:25.552175"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.552925"], ["updated_at", "2017-06-26 06:01:25.552925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.554003"], ["updated_at", "2017-06-26 06:01:25.554003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.554786"], ["updated_at", "2017-06-26 06:01:25.554786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 15]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 15], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.559573"], ["updated_at", "2017-06-26 06:01:25.559573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.562087"], ["updated_at", "2017-06-26 06:01:25.562087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 18]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.565034"], ["updated_at", "2017-06-26 06:01:25.565034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.566015"], ["updated_at", "2017-06-26 06:01:25.566015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.567263"], ["updated_at", "2017-06-26 06:01:25.567263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 21]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.572873"], ["updated_at", "2017-06-26 06:01:25.572873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 22]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.575644"], ["updated_at", "2017-06-26 06:01:25.575644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 23]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.578632"], ["updated_at", "2017-06-26 06:01:25.578632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.579566"], ["updated_at", "2017-06-26 06:01:25.579566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.582034"], ["updated_at", "2017-06-26 06:01:25.582034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:01:25.584793"], ["updated_at", "2017-06-26 06:01:25.584793"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:01:25.585956"], ["updated_at", "2017-06-26 06:01:25.585956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 4], ["test_another_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:01:25.588631"], ["updated_at", "2017-06-26 06:01:25.588631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:01:25.589544"], ["updated_at", "2017-06-26 06:01:25.589544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 6], ["test_another_model_id", 7]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.591738"], ["updated_at", "2017-06-26 06:01:25.591738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.592471"], ["updated_at", "2017-06-26 06:01:25.592471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.593191"], ["updated_at", "2017-06-26 06:01:25.593191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:01:25.594472"], ["updated_at", "2017-06-26 06:01:25.594472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:01:25.597252"], ["updated_at", "2017-06-26 06:01:25.597252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 12], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 11], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.601462"], ["updated_at", "2017-06-26 06:01:25.601462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.603975"], ["updated_at", "2017-06-26 06:01:25.603975"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.604748"], ["updated_at", "2017-06-26 06:01:25.604748"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.607353"], ["updated_at", "2017-06-26 06:01:25.607353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 6], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 7], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:01:25.624394"], ["updated_at", "2017-06-26 06:01:25.624394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 4], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 5]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.631580"], ["updated_at", "2017-06-26 06:01:25.631580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.632673"], ["updated_at", "2017-06-26 06:01:25.632673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:01:25.634225"], ["updated_at", "2017-06-26 06:01:25.634225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:01:25.635121"], ["updated_at", "2017-06-26 06:01:25.635121"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 20], ["test_another_model_id", 21]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:01:25.636866"], ["updated_at", "2017-06-26 06:01:25.636866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:01:25.637755"], ["updated_at", "2017-06-26 06:01:25.637755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 22], ["test_another_model_id", 23]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 22]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 22], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.642388"], ["updated_at", "2017-06-26 06:01:25.642388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 24]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 9], ["company_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 10], ["company_id", 7]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.653563"], ["updated_at", "2017-06-26 06:01:25.653563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:01:25.654548"], ["updated_at", "2017-06-26 06:01:25.654548"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:01:25.659781"], ["updated_at", "2017-06-26 06:01:25.659781"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.662614"], ["updated_at", "2017-06-26 06:01:25.662614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.663794"], ["updated_at", "2017-06-26 06:01:25.663794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.665303"], ["updated_at", "2017-06-26 06:01:25.665303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.666114"], ["updated_at", "2017-06-26 06:01:25.666114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.667442"], ["updated_at", "2017-06-26 06:01:25.667442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.669828"], ["updated_at", "2017-06-26 06:01:25.669828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.672409"], ["updated_at", "2017-06-26 06:01:25.672409"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.673464"], ["updated_at", "2017-06-26 06:01:25.673464"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 8], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 9], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.682621"], ["updated_at", "2017-06-26 06:01:25.682621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:25.683607"], ["updated_at", "2017-06-26 06:01:25.683607"]]  (0.2ms) commit transaction ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.8ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:01:59.229647"], ["updated_at", "2017-06-26 06:01:59.229647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:01:59.231131"], ["updated_at", "2017-06-26 06:01:59.231131"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.312681"], ["updated_at", "2017-06-26 06:01:59.312681"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:01:59.331962"], ["updated_at", "2017-06-26 06:01:59.331962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.334765"], ["updated_at", "2017-06-26 06:01:59.334765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.341002"], ["updated_at", "2017-06-26 06:01:59.341002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.344172"], ["updated_at", "2017-06-26 06:01:59.344172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.513734"], ["updated_at", "2017-06-26 06:01:59.513734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.514817"], ["updated_at", "2017-06-26 06:01:59.514817"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:01:59.516414"], ["updated_at", "2017-06-26 06:01:59.516414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:01:59.517121"], ["updated_at", "2017-06-26 06:01:59.517121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 7], ["test_another_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:01:59.519347"], ["updated_at", "2017-06-26 06:01:59.519347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:01:59.520149"], ["updated_at", "2017-06-26 06:01:59.520149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 9], ["test_another_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 9], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.524537"], ["updated_at", "2017-06-26 06:01:59.524537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.525304"], ["updated_at", "2017-06-26 06:01:59.525304"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.528605"], ["updated_at", "2017-06-26 06:01:59.528605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.530911"], ["updated_at", "2017-06-26 06:01:59.530911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.533525"], ["updated_at", "2017-06-26 06:01:59.533525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 15]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.536626"], ["updated_at", "2017-06-26 06:01:59.536626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.537431"], ["updated_at", "2017-06-26 06:01:59.537431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.539340"], ["updated_at", "2017-06-26 06:01:59.539340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.541851"], ["updated_at", "2017-06-26 06:01:59.541851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 4]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.546741"], ["updated_at", "2017-06-26 06:01:59.546741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.551412"], ["updated_at", "2017-06-26 06:01:59.551412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.555540"], ["updated_at", "2017-06-26 06:01:59.555540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.556445"], ["updated_at", "2017-06-26 06:01:59.556445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.557206"], ["updated_at", "2017-06-26 06:01:59.557206"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:01:59.562283"], ["updated_at", "2017-06-26 06:01:59.562283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:01:59.568639"], ["updated_at", "2017-06-26 06:01:59.568639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:01:59.569534"], ["updated_at", "2017-06-26 06:01:59.569534"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.570297"], ["updated_at", "2017-06-26 06:01:59.570297"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:01:59.571813"], ["updated_at", "2017-06-26 06:01:59.571813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:01:59.574555"], ["updated_at", "2017-06-26 06:01:59.574555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 11], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 10], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:01:59.581448"], ["updated_at", "2017-06-26 06:01:59.581448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.586402"], ["updated_at", "2017-06-26 06:01:59.586402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.587359"], ["updated_at", "2017-06-26 06:01:59.587359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.592751"], ["updated_at", "2017-06-26 06:01:59.592751"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.594293"], ["updated_at", "2017-06-26 06:01:59.594293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.595098"], ["updated_at", "2017-06-26 06:01:59.595098"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:01:59.596684"], ["updated_at", "2017-06-26 06:01:59.596684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:01:59.597435"], ["updated_at", "2017-06-26 06:01:59.597435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 6], ["test_another_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:01:59.598994"], ["updated_at", "2017-06-26 06:01:59.598994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:01:59.599711"], ["updated_at", "2017-06-26 06:01:59.599711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 8], ["test_another_model_id", 9]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 6], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 7], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.612845"], ["updated_at", "2017-06-26 06:01:59.612845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.613691"], ["updated_at", "2017-06-26 06:01:59.613691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 10], ["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.618258"], ["updated_at", "2017-06-26 06:01:59.618258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.620215"], ["updated_at", "2017-06-26 06:01:59.620215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.622094"], ["updated_at", "2017-06-26 06:01:59.622094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.626339"], ["updated_at", "2017-06-26 06:01:59.626339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 15]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.629470"], ["updated_at", "2017-06-26 06:01:59.629470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:01:59.632784"], ["updated_at", "2017-06-26 06:01:59.632784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:01:59.633865"], ["id", 17]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:01:59.634802"], ["updated_at", "2017-06-26 06:01:59.634802"]]  (5.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:01:59.640948"], ["updated_at", "2017-06-26 06:01:59.640948"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.643385"], ["updated_at", "2017-06-26 06:01:59.643385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.644607"], ["updated_at", "2017-06-26 06:01:59.644607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 20], ["test_another_model_id", 21]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.647405"], ["updated_at", "2017-06-26 06:01:59.647405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 22]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.650614"], ["updated_at", "2017-06-26 06:01:59.650614"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.651463"], ["updated_at", "2017-06-26 06:01:59.651463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 23]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.653540"], ["updated_at", "2017-06-26 06:01:59.653540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 25]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.657416"], ["updated_at", "2017-06-26 06:01:59.657416"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 26]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.660014"], ["updated_at", "2017-06-26 06:01:59.660014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 27]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.663743"], ["updated_at", "2017-06-26 06:01:59.663743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.664526"], ["updated_at", "2017-06-26 06:01:59.664526"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.669611"], ["updated_at", "2017-06-26 06:01:59.669611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 30], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 8], ["company_id", 5]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 9], ["company_id", 6]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.681311"], ["updated_at", "2017-06-26 06:01:59.681311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.682299"], ["updated_at", "2017-06-26 06:01:59.682299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.683018"], ["updated_at", "2017-06-26 06:01:59.683018"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.684831"], ["updated_at", "2017-06-26 06:01:59.684831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.685628"], ["updated_at", "2017-06-26 06:01:59.685628"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.687061"], ["updated_at", "2017-06-26 06:01:59.687061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.690465"], ["updated_at", "2017-06-26 06:01:59.690465"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.691303"], ["updated_at", "2017-06-26 06:01:59.691303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.698885"], ["updated_at", "2017-06-26 06:01:59.698885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.700965"], ["updated_at", "2017-06-26 06:01:59.700965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.703573"], ["updated_at", "2017-06-26 06:01:59.703573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.704340"], ["updated_at", "2017-06-26 06:01:59.704340"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.705682"], ["updated_at", "2017-06-26 06:01:59.705682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.706381"], ["updated_at", "2017-06-26 06:01:59.706381"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.708170"], ["updated_at", "2017-06-26 06:01:59.708170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 12], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.711740"], ["updated_at", "2017-06-26 06:01:59.711740"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:01:59.712599"], ["updated_at", "2017-06-26 06:01:59.712599"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.719361"], ["updated_at", "2017-06-26 06:01:59.719361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:01:59.720517"], ["updated_at", "2017-06-26 06:01:59.720517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 15]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 15], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 16], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 15], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models"  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.204051"], ["updated_at", "2017-06-26 06:04:58.204051"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.248234"], ["updated_at", "2017-06-26 06:04:58.248234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.252483"], ["updated_at", "2017-06-26 06:04:58.252483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.254705"], ["updated_at", "2017-06-26 06:04:58.254705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.256805"], ["updated_at", "2017-06-26 06:04:58.256805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.259482"], ["updated_at", "2017-06-26 06:04:58.259482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 111]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.262599"], ["updated_at", "2017-06-26 06:04:58.262599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.263700"], ["updated_at", "2017-06-26 06:04:58.263700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 6], ["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.284886"], ["updated_at", "2017-06-26 06:04:58.284886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.285796"], ["updated_at", "2017-06-26 06:04:58.285796"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.287322"], ["updated_at", "2017-06-26 06:04:58.287322"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.289114"], ["updated_at", "2017-06-26 06:04:58.289114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.291473"], ["updated_at", "2017-06-26 06:04:58.291473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.294574"], ["updated_at", "2017-06-26 06:04:58.294574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.295520"], ["updated_at", "2017-06-26 06:04:58.295520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 13], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:04:58.303331"], ["updated_at", "2017-06-26 06:04:58.303331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:04:58.304325"], ["updated_at", "2017-06-26 06:04:58.304325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 15], ["test_another_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:04:58.306584"], ["updated_at", "2017-06-26 06:04:58.306584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:04:58.307531"], ["updated_at", "2017-06-26 06:04:58.307531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 17], ["test_another_model_id", 18]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.315246"], ["updated_at", "2017-06-26 06:04:58.315246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.316539"], ["updated_at", "2017-06-26 06:04:58.316539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.317538"], ["updated_at", "2017-06-26 06:04:58.317538"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.319607"], ["updated_at", "2017-06-26 06:04:58.319607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.320647"], ["updated_at", "2017-06-26 06:04:58.320647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.321918"], ["updated_at", "2017-06-26 06:04:58.321918"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:04:58.324261"], ["updated_at", "2017-06-26 06:04:58.324261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:04:58.325584"], ["updated_at", "2017-06-26 06:04:58.325584"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 25], ["test_another_model_id", 26]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:04:58.336381"], ["updated_at", "2017-06-26 06:04:58.336381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:04:58.337163"], ["updated_at", "2017-06-26 06:04:58.337163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 27], ["test_another_model_id", 28]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 27]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 27], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.343624"], ["updated_at", "2017-06-26 06:04:58.343624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 29]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.348099"], ["updated_at", "2017-06-26 06:04:58.348099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.349157"], ["updated_at", "2017-06-26 06:04:58.349157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.351931"], ["updated_at", "2017-06-26 06:04:58.351931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.355025"], ["updated_at", "2017-06-26 06:04:58.355025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.355917"], ["updated_at", "2017-06-26 06:04:58.355917"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.357674"], ["updated_at", "2017-06-26 06:04:58.357674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 6]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.361333"], ["updated_at", "2017-06-26 06:04:58.361333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.362124"], ["updated_at", "2017-06-26 06:04:58.362124"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.363625"], ["updated_at", "2017-06-26 06:04:58.363625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.366172"], ["updated_at", "2017-06-26 06:04:58.366172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.369103"], ["updated_at", "2017-06-26 06:04:58.369103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.369824"], ["updated_at", "2017-06-26 06:04:58.369824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.371988"], ["updated_at", "2017-06-26 06:04:58.371988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.374839"], ["updated_at", "2017-06-26 06:04:58.374839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.375725"], ["updated_at", "2017-06-26 06:04:58.375725"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.377558"], ["updated_at", "2017-06-26 06:04:58.377558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.378456"], ["updated_at", "2017-06-26 06:04:58.378456"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.380060"], ["updated_at", "2017-06-26 06:04:58.380060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.380925"], ["updated_at", "2017-06-26 06:04:58.380925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 12], ["test_another_model_id", 13]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.383749"], ["updated_at", "2017-06-26 06:04:58.383749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.384807"], ["updated_at", "2017-06-26 06:04:58.384807"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.386769"], ["updated_at", "2017-06-26 06:04:58.386769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 16]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.392616"], ["updated_at", "2017-06-26 06:04:58.392616"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.394145"], ["updated_at", "2017-06-26 06:04:58.394145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 18]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 17], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.401573"], ["updated_at", "2017-06-26 06:04:58.401573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.411049"], ["updated_at", "2017-06-26 06:04:58.411049"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 5], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.0ms) SELECT "companies".* FROM "companies"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:04:58.428943"], ["updated_at", "2017-06-26 06:04:58.428943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:04:58.431588"], ["updated_at", "2017-06-26 06:04:58.431588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 4], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.437132"], ["updated_at", "2017-06-26 06:04:58.437132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:04:58.443639"], ["updated_at", "2017-06-26 06:04:58.443639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:04:58.446301"], ["id", 6]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:04:58.447940"], ["updated_at", "2017-06-26 06:04:58.447940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:04:58.448988"], ["updated_at", "2017-06-26 06:04:58.448988"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:04:58.454098"], ["updated_at", "2017-06-26 06:04:58.454098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.457428"], ["updated_at", "2017-06-26 06:04:58.457428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.459811"], ["updated_at", "2017-06-26 06:04:58.459811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:04:58.463811"], ["updated_at", "2017-06-26 06:04:58.463811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 5], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 6]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 2], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.471715"], ["updated_at", "2017-06-26 06:04:58.471715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.475342"], ["updated_at", "2017-06-26 06:04:58.475342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.476390"], ["updated_at", "2017-06-26 06:04:58.476390"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:04:58.478070"], ["updated_at", "2017-06-26 06:04:58.478070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:04:58.479010"], ["updated_at", "2017-06-26 06:04:58.479010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.479888"], ["updated_at", "2017-06-26 06:04:58.479888"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.481501"], ["updated_at", "2017-06-26 06:04:58.481501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.482334"], ["updated_at", "2017-06-26 06:04:58.482334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 10], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 11], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 10], ["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.494820"], ["updated_at", "2017-06-26 06:04:58.494820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:04:58.495784"], ["updated_at", "2017-06-26 06:04:58.495784"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 13]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.619132"], ["updated_at", "2017-06-26 06:04:58.619132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 14], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 14], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.624593"], ["updated_at", "2017-06-26 06:04:58.624593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 15], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 15]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.627633"], ["updated_at", "2017-06-26 06:04:58.627633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:04:58.629655"], ["updated_at", "2017-06-26 06:04:58.629655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 18]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:04:58.643077"], ["updated_at", "2017-06-26 06:04:58.643077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:04:58.643877"], ["updated_at", "2017-06-26 06:04:58.643877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:04:58.661805"], ["updated_at", "2017-06-26 06:04:58.661805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.916247"], ["updated_at", "2017-06-26 06:05:37.916247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.939559"], ["updated_at", "2017-06-26 06:05:37.939559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.940677"], ["updated_at", "2017-06-26 06:05:37.940677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.943301"], ["updated_at", "2017-06-26 06:05:37.943301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.945752"], ["updated_at", "2017-06-26 06:05:37.945752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.946478"], ["updated_at", "2017-06-26 06:05:37.946478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.947683"], ["updated_at", "2017-06-26 06:05:37.947683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.948412"], ["updated_at", "2017-06-26 06:05:37.948412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.949680"], ["updated_at", "2017-06-26 06:05:37.949680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.950480"], ["updated_at", "2017-06-26 06:05:37.950480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.951299"], ["updated_at", "2017-06-26 06:05:37.951299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.952315"], ["updated_at", "2017-06-26 06:05:37.952315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.954520"], ["updated_at", "2017-06-26 06:05:37.954520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.957079"], ["updated_at", "2017-06-26 06:05:37.957079"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.957954"], ["updated_at", "2017-06-26 06:05:37.957954"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.958986"], ["updated_at", "2017-06-26 06:05:37.958986"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.960207"], ["updated_at", "2017-06-26 06:05:37.960207"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.960989"], ["updated_at", "2017-06-26 06:05:37.960989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 16], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:05:37.968909"], ["updated_at", "2017-06-26 06:05:37.968909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:05:37.969845"], ["updated_at", "2017-06-26 06:05:37.969845"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.970607"], ["updated_at", "2017-06-26 06:05:37.970607"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.972337"], ["updated_at", "2017-06-26 06:05:37.972337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.981663"], ["updated_at", "2017-06-26 06:05:37.981663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:05:37.988653"], ["updated_at", "2017-06-26 06:05:37.988653"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:37.991694"], ["updated_at", "2017-06-26 06:05:37.991694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.011589"], ["updated_at", "2017-06-26 06:05:38.011589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.012657"], ["updated_at", "2017-06-26 06:05:38.012657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.014100"], ["updated_at", "2017-06-26 06:05:38.014100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.014941"], ["updated_at", "2017-06-26 06:05:38.014941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.017523"], ["updated_at", "2017-06-26 06:05:38.017523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.020073"], ["updated_at", "2017-06-26 06:05:38.020073"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.024925"], ["updated_at", "2017-06-26 06:05:38.024925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 5], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.046367"], ["updated_at", "2017-06-26 06:05:38.046367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.047412"], ["updated_at", "2017-06-26 06:05:38.047412"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:05:38.052461"], ["updated_at", "2017-06-26 06:05:38.052461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 5], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 6]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.060312"], ["updated_at", "2017-06-26 06:05:38.060312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.061672"], ["updated_at", "2017-06-26 06:05:38.061672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.063095"], ["updated_at", "2017-06-26 06:05:38.063095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.064186"], ["updated_at", "2017-06-26 06:05:38.064186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 15], ["test_another_model_id", 16]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.066841"], ["updated_at", "2017-06-26 06:05:38.066841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.069655"], ["updated_at", "2017-06-26 06:05:38.069655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 18]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.071921"], ["updated_at", "2017-06-26 06:05:38.071921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 19]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.074475"], ["updated_at", "2017-06-26 06:05:38.074475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 20]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:05:38.076907"], ["updated_at", "2017-06-26 06:05:38.076907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:05:38.077679"], ["updated_at", "2017-06-26 06:05:38.077679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 21], ["test_another_model_id", 22]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:05:38.079718"], ["updated_at", "2017-06-26 06:05:38.079718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:05:38.080649"], ["updated_at", "2017-06-26 06:05:38.080649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 23], ["test_another_model_id", 24]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.083250"], ["updated_at", "2017-06-26 06:05:38.083250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 25]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.085854"], ["updated_at", "2017-06-26 06:05:38.085854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 26]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:05:38.088751"], ["updated_at", "2017-06-26 06:05:38.088751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:05:38.090209"], ["updated_at", "2017-06-26 06:05:38.090209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 27], ["test_another_model_id", 28]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:05:38.092312"], ["updated_at", "2017-06-26 06:05:38.092312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:05:38.093182"], ["updated_at", "2017-06-26 06:05:38.093182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 29], ["test_another_model_id", 30]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 29]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 29], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:05:38.098289"], ["updated_at", "2017-06-26 06:05:38.098289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:05:38.099758"], ["id", 31]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:05:38.101492"], ["updated_at", "2017-06-26 06:05:38.101492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:05:38.102263"], ["updated_at", "2017-06-26 06:05:38.102263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.103911"], ["updated_at", "2017-06-26 06:05:38.103911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 34]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.108769"], ["updated_at", "2017-06-26 06:05:38.108769"]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.111444"], ["updated_at", "2017-06-26 06:05:38.111444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 36]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.113992"], ["updated_at", "2017-06-26 06:05:38.113992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 37]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.116876"], ["updated_at", "2017-06-26 06:05:38.116876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.117867"], ["updated_at", "2017-06-26 06:05:38.117867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 38]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 38]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 39]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 38], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.128236"], ["updated_at", "2017-06-26 06:05:38.128236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.138879"], ["updated_at", "2017-06-26 06:05:38.138879"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 40]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 40], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 41]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 41], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 40], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.147034"], ["updated_at", "2017-06-26 06:05:38.147034"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.147805"], ["updated_at", "2017-06-26 06:05:38.147805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.148883"], ["updated_at", "2017-06-26 06:05:38.148883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.149787"], ["updated_at", "2017-06-26 06:05:38.149787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 44]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 44]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 44]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 45]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 44], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.156190"], ["updated_at", "2017-06-26 06:05:38.156190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 46]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:05:38.159021"], ["updated_at", "2017-06-26 06:05:38.159021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 47]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:05:38.160967"], ["updated_at", "2017-06-26 06:05:38.160967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 48]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 48], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 47], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.164639"], ["updated_at", "2017-06-26 06:05:38.164639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:05:38.165369"], ["updated_at", "2017-06-26 06:05:38.165369"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.166770"], ["updated_at", "2017-06-26 06:05:38.166770"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.167684"], ["updated_at", "2017-06-26 06:05:38.167684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.169553"], ["updated_at", "2017-06-26 06:05:38.169553"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:05:38.243192"], ["updated_at", "2017-06-26 06:05:38.243192"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:05:38.244223"], ["updated_at", "2017-06-26 06:05:38.244223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 7]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.266295"], ["updated_at", "2017-06-26 06:05:38.266295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 3], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 3], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.271462"], ["updated_at", "2017-06-26 06:05:38.271462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 4], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.275544"], ["updated_at", "2017-06-26 06:05:38.275544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:05:38.277930"], ["updated_at", "2017-06-26 06:05:38.277930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:05:38.281128"], ["updated_at", "2017-06-26 06:05:38.281128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 7], ["LIMIT", 1]] -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.829310"], ["updated_at", "2017-06-26 06:06:54.829310"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.854334"], ["updated_at", "2017-06-26 06:06:54.854334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.855252"], ["updated_at", "2017-06-26 06:06:54.855252"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.857277"], ["updated_at", "2017-06-26 06:06:54.857277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:06:54.859896"], ["updated_at", "2017-06-26 06:06:54.859896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:06:54.862408"], ["updated_at", "2017-06-26 06:06:54.862408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 6], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.869310"], ["updated_at", "2017-06-26 06:06:54.869310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.871913"], ["updated_at", "2017-06-26 06:06:54.871913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.874250"], ["updated_at", "2017-06-26 06:06:54.874250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.890281"], ["updated_at", "2017-06-26 06:06:54.890281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.894068"], ["updated_at", "2017-06-26 06:06:54.894068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.895066"], ["updated_at", "2017-06-26 06:06:54.895066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 11], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.899873"], ["updated_at", "2017-06-26 06:06:54.899873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.902746"], ["updated_at", "2017-06-26 06:06:54.902746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 14], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.906802"], ["updated_at", "2017-06-26 06:06:54.906802"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:06:54.907701"], ["updated_at", "2017-06-26 06:06:54.907701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.908908"], ["updated_at", "2017-06-26 06:06:54.908908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.909676"], ["updated_at", "2017-06-26 06:06:54.909676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 18]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 17], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.914985"], ["updated_at", "2017-06-26 06:06:54.914985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 19], ["attr", 111]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 5], ["attr", 3]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.930584"], ["updated_at", "2017-06-26 06:06:54.930584"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.931576"], ["updated_at", "2017-06-26 06:06:54.931576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.932958"], ["updated_at", "2017-06-26 06:06:54.932958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.936031"], ["updated_at", "2017-06-26 06:06:54.936031"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.937003"], ["updated_at", "2017-06-26 06:06:54.937003"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 4], ["test_another_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.939668"], ["updated_at", "2017-06-26 06:06:54.939668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.940815"], ["updated_at", "2017-06-26 06:06:54.940815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.942039"], ["updated_at", "2017-06-26 06:06:54.942039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.944378"], ["updated_at", "2017-06-26 06:06:54.944378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.946485"], ["updated_at", "2017-06-26 06:06:54.946485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.949840"], ["updated_at", "2017-06-26 06:06:54.949840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.959502"], ["updated_at", "2017-06-26 06:06:54.959502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.964133"], ["updated_at", "2017-06-26 06:06:54.964133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.965189"], ["updated_at", "2017-06-26 06:06:54.965189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.972829"], ["updated_at", "2017-06-26 06:06:54.972829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.973624"], ["updated_at", "2017-06-26 06:06:54.973624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.975202"], ["updated_at", "2017-06-26 06:06:54.975202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.976056"], ["updated_at", "2017-06-26 06:06:54.976056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.976889"], ["updated_at", "2017-06-26 06:06:54.976889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.977988"], ["updated_at", "2017-06-26 06:06:54.977988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.978771"], ["updated_at", "2017-06-26 06:06:54.978771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 10], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 11], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 10], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:06:54.987662"], ["updated_at", "2017-06-26 06:06:54.987662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:06:54.988786"], ["updated_at", "2017-06-26 06:06:54.988786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.989946"], ["updated_at", "2017-06-26 06:06:54.989946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.993984"], ["updated_at", "2017-06-26 06:06:54.993984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 15]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:54.996426"], ["updated_at", "2017-06-26 06:06:54.996426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:06:54.998970"], ["updated_at", "2017-06-26 06:06:54.998970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:06:55.000065"], ["updated_at", "2017-06-26 06:06:55.000065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 17], ["test_another_model_id", 18]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:06:55.002703"], ["updated_at", "2017-06-26 06:06:55.002703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:06:55.004060"], ["updated_at", "2017-06-26 06:06:55.004060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 19], ["test_another_model_id", 20]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 19]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 19], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.008960"], ["updated_at", "2017-06-26 06:06:55.008960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.009726"], ["updated_at", "2017-06-26 06:06:55.009726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.011081"], ["updated_at", "2017-06-26 06:06:55.011081"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.011887"], ["updated_at", "2017-06-26 06:06:55.011887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.013093"], ["updated_at", "2017-06-26 06:06:55.013093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 25]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.023132"], ["updated_at", "2017-06-26 06:06:55.023132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 26]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.029102"], ["updated_at", "2017-06-26 06:06:55.029102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.029855"], ["updated_at", "2017-06-26 06:06:55.029855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.031055"], ["updated_at", "2017-06-26 06:06:55.031055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 29]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:06:55.033535"], ["updated_at", "2017-06-26 06:06:55.033535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:06:55.034360"], ["updated_at", "2017-06-26 06:06:55.034360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 30], ["test_another_model_id", 31]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:06:55.035893"], ["updated_at", "2017-06-26 06:06:55.035893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:06:55.036613"], ["updated_at", "2017-06-26 06:06:55.036613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 32], ["test_another_model_id", 33]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:06:55.042722"], ["updated_at", "2017-06-26 06:06:55.042722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.044873"], ["updated_at", "2017-06-26 06:06:55.044873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.045601"], ["updated_at", "2017-06-26 06:06:55.045601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.046566"], ["updated_at", "2017-06-26 06:06:55.046566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.047284"], ["updated_at", "2017-06-26 06:06:55.047284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.047938"], ["updated_at", "2017-06-26 06:06:55.047938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.048927"], ["updated_at", "2017-06-26 06:06:55.048927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.053340"], ["updated_at", "2017-06-26 06:06:55.053340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.054349"], ["updated_at", "2017-06-26 06:06:55.054349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.056447"], ["updated_at", "2017-06-26 06:06:55.056447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:06:55.061124"], ["updated_at", "2017-06-26 06:06:55.061124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:06:55.063083"], ["id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:06:55.064462"], ["updated_at", "2017-06-26 06:06:55.064462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:06:55.065197"], ["updated_at", "2017-06-26 06:06:55.065197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:06:55.068843"], ["updated_at", "2017-06-26 06:06:55.068843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 6], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 7]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 2], ["LIMIT", 1]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:06:55.244483"], ["updated_at", "2017-06-26 06:06:55.244483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:06:55.245342"], ["updated_at", "2017-06-26 06:06:55.245342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:06:55.259553"], ["updated_at", "2017-06-26 06:06:55.259553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.269596"], ["updated_at", "2017-06-26 06:06:55.269596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.275507"], ["updated_at", "2017-06-26 06:06:55.275507"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.280425"], ["updated_at", "2017-06-26 06:06:55.280425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 6], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:06:55.283008"], ["updated_at", "2017-06-26 06:06:55.283008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.729840"], ["updated_at", "2017-06-26 06:09:55.729840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.730929"], ["updated_at", "2017-06-26 06:09:55.730929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:09:55.744863"], ["updated_at", "2017-06-26 06:09:55.744863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.764561"], ["updated_at", "2017-06-26 06:09:55.764561"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.779538"], ["updated_at", "2017-06-26 06:09:55.779538"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.780357"], ["updated_at", "2017-06-26 06:09:55.780357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.787628"], ["updated_at", "2017-06-26 06:09:55.787628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.788565"], ["updated_at", "2017-06-26 06:09:55.788565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:09:55.792495"], ["updated_at", "2017-06-26 06:09:55.792495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:09:55.795054"], ["updated_at", "2017-06-26 06:09:55.795054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 10], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:09:55.800166"], ["updated_at", "2017-06-26 06:09:55.800166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:09:55.801628"], ["id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:09:55.803431"], ["updated_at", "2017-06-26 06:09:55.803431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:09:55.804292"], ["updated_at", "2017-06-26 06:09:55.804292"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:09:55.805683"], ["updated_at", "2017-06-26 06:09:55.805683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:09:55.806507"], ["updated_at", "2017-06-26 06:09:55.806507"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.807315"], ["updated_at", "2017-06-26 06:09:55.807315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.808382"], ["updated_at", "2017-06-26 06:09:55.808382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.812880"], ["updated_at", "2017-06-26 06:09:55.812880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 18]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.814923"], ["updated_at", "2017-06-26 06:09:55.814923"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 19]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.817591"], ["updated_at", "2017-06-26 06:09:55.817591"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 20]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.820388"], ["updated_at", "2017-06-26 06:09:55.820388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 21]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.822610"], ["updated_at", "2017-06-26 06:09:55.822610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 22]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.824564"], ["updated_at", "2017-06-26 06:09:55.824564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 23]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.826791"], ["updated_at", "2017-06-26 06:09:55.826791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.827636"], ["updated_at", "2017-06-26 06:09:55.827636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 24]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 24]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 25]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 24], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.832941"], ["updated_at", "2017-06-26 06:09:55.832941"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 26]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.836967"], ["updated_at", "2017-06-26 06:09:55.836967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 27]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.840192"], ["updated_at", "2017-06-26 06:09:55.840192"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.841281"], ["updated_at", "2017-06-26 06:09:55.841281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.842233"], ["updated_at", "2017-06-26 06:09:55.842233"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.843817"], ["updated_at", "2017-06-26 06:09:55.843817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.844752"], ["updated_at", "2017-06-26 06:09:55.844752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.846182"], ["updated_at", "2017-06-26 06:09:55.846182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.847004"], ["updated_at", "2017-06-26 06:09:55.847004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:09:55.848338"], ["updated_at", "2017-06-26 06:09:55.848338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:09:55.849309"], ["updated_at", "2017-06-26 06:09:55.849309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 5], ["test_another_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:09:55.851438"], ["updated_at", "2017-06-26 06:09:55.851438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:09:55.852388"], ["updated_at", "2017-06-26 06:09:55.852388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 7], ["test_another_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.856475"], ["updated_at", "2017-06-26 06:09:55.856475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.858635"], ["updated_at", "2017-06-26 06:09:55.858635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.861098"], ["updated_at", "2017-06-26 06:09:55.861098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.861957"], ["updated_at", "2017-06-26 06:09:55.861957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:09:55.863349"], ["updated_at", "2017-06-26 06:09:55.863349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:09:55.864293"], ["updated_at", "2017-06-26 06:09:55.864293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 13], ["test_another_model_id", 14]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:09:55.866414"], ["updated_at", "2017-06-26 06:09:55.866414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:09:55.867670"], ["updated_at", "2017-06-26 06:09:55.867670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 15], ["test_another_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.870530"], ["updated_at", "2017-06-26 06:09:55.870530"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.887532"], ["updated_at", "2017-06-26 06:09:55.887532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.888622"], ["updated_at", "2017-06-26 06:09:55.888622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 18]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 19]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 18], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.893585"], ["updated_at", "2017-06-26 06:09:55.893585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 20]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.897322"], ["updated_at", "2017-06-26 06:09:55.897322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.898312"], ["updated_at", "2017-06-26 06:09:55.898312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 21]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.901122"], ["updated_at", "2017-06-26 06:09:55.901122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 23]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.904260"], ["updated_at", "2017-06-26 06:09:55.904260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.905271"], ["updated_at", "2017-06-26 06:09:55.905271"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 24]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 24], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 25]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 25], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 24], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.913721"], ["updated_at", "2017-06-26 06:09:55.913721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:09:55.914654"], ["updated_at", "2017-06-26 06:09:55.914654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.915992"], ["updated_at", "2017-06-26 06:09:55.915992"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 28], ["attr", 111]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.919150"], ["updated_at", "2017-06-26 06:09:55.919150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.920637"], ["updated_at", "2017-06-26 06:09:55.920637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.921532"], ["updated_at", "2017-06-26 06:09:55.921532"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.923691"], ["updated_at", "2017-06-26 06:09:55.923691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.933612"], ["updated_at", "2017-06-26 06:09:55.933612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 5], ["company_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 6], ["company_id", 6]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:09:55.949260"], ["updated_at", "2017-06-26 06:09:55.949260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.956683"], ["updated_at", "2017-06-26 06:09:55.956683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.957579"], ["updated_at", "2017-06-26 06:09:55.957579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.959852"], ["updated_at", "2017-06-26 06:09:55.959852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.962774"], ["updated_at", "2017-06-26 06:09:55.962774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.965475"], ["updated_at", "2017-06-26 06:09:55.965475"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.966395"], ["updated_at", "2017-06-26 06:09:55.966395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.967899"], ["updated_at", "2017-06-26 06:09:55.967899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.968832"], ["updated_at", "2017-06-26 06:09:55.968832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.969701"], ["updated_at", "2017-06-26 06:09:55.969701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.971109"], ["updated_at", "2017-06-26 06:09:55.971109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.972001"], ["updated_at", "2017-06-26 06:09:55.972001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:55.973340"], ["updated_at", "2017-06-26 06:09:55.973340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:09:56.021250"], ["updated_at", "2017-06-26 06:09:56.021250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:09:56.022752"], ["updated_at", "2017-06-26 06:09:56.022752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:09:56.037554"], ["updated_at", "2017-06-26 06:09:56.037554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:56.044477"], ["updated_at", "2017-06-26 06:09:56.044477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:56.057496"], ["updated_at", "2017-06-26 06:09:56.057496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:56.062945"], ["updated_at", "2017-06-26 06:09:56.062945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 6], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:09:56.065502"], ["updated_at", "2017-06-26 06:09:56.065502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ----------------------- HelperTest: test_permit ----------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test -----------------------------------------------------------  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.397748"], ["updated_at", "2017-06-26 06:10:44.397748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.443411"], ["updated_at", "2017-06-26 06:10:44.443411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.453412"], ["updated_at", "2017-06-26 06:10:44.453412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.456744"], ["updated_at", "2017-06-26 06:10:44.456744"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:10:44.470615"], ["updated_at", "2017-06-26 06:10:44.470615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:10:44.481352"], ["updated_at", "2017-06-26 06:10:44.481352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:10:44.482627"], ["updated_at", "2017-06-26 06:10:44.482627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:10:44.630762"], ["updated_at", "2017-06-26 06:10:44.630762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.633079"], ["updated_at", "2017-06-26 06:10:44.633079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.636714"], ["updated_at", "2017-06-26 06:10:44.636714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.639336"], ["updated_at", "2017-06-26 06:10:44.639336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.641557"], ["updated_at", "2017-06-26 06:10:44.641557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.643599"], ["updated_at", "2017-06-26 06:10:44.643599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.645324"], ["updated_at", "2017-06-26 06:10:44.645324"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.649253"], ["updated_at", "2017-06-26 06:10:44.649253"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.650288"], ["updated_at", "2017-06-26 06:10:44.650288"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.651703"], ["updated_at", "2017-06-26 06:10:44.651703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.652710"], ["updated_at", "2017-06-26 06:10:44.652710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 10], ["test_another_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.654774"], ["updated_at", "2017-06-26 06:10:44.654774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.658144"], ["updated_at", "2017-06-26 06:10:44.658144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.663570"], ["updated_at", "2017-06-26 06:10:44.663570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 6], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 7], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:10:44.678053"], ["updated_at", "2017-06-26 06:10:44.678053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:10:44.678791"], ["updated_at", "2017-06-26 06:10:44.678791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:10:44.680473"], ["updated_at", "2017-06-26 06:10:44.680473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:10:44.681152"], ["updated_at", "2017-06-26 06:10:44.681152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 5], ["test_another_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.683061"], ["updated_at", "2017-06-26 06:10:44.683061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.683820"], ["updated_at", "2017-06-26 06:10:44.683820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.690217"], ["updated_at", "2017-06-26 06:10:44.690217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.691142"], ["updated_at", "2017-06-26 06:10:44.691142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.693089"], ["updated_at", "2017-06-26 06:10:44.693089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:10:44.695281"], ["updated_at", "2017-06-26 06:10:44.695281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:10:44.697125"], ["updated_at", "2017-06-26 06:10:44.697125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.700517"], ["updated_at", "2017-06-26 06:10:44.700517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.701672"], ["updated_at", "2017-06-26 06:10:44.701672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.703739"], ["updated_at", "2017-06-26 06:10:44.703739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.706159"], ["updated_at", "2017-06-26 06:10:44.706159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:10:44.706995"], ["updated_at", "2017-06-26 06:10:44.706995"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:10:44.708546"], ["updated_at", "2017-06-26 06:10:44.708546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:10:44.709268"], ["updated_at", "2017-06-26 06:10:44.709268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 11], ["test_another_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:10:44.710766"], ["updated_at", "2017-06-26 06:10:44.710766"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:10:44.711575"], ["updated_at", "2017-06-26 06:10:44.711575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 13], ["test_another_model_id", 14]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 13], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:10:44.718006"], ["updated_at", "2017-06-26 06:10:44.718006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:10:44.720174"], ["id", 15]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:10:44.721103"], ["updated_at", "2017-06-26 06:10:44.721103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:10:44.722177"], ["updated_at", "2017-06-26 06:10:44.722177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.723500"], ["updated_at", "2017-06-26 06:10:44.723500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.724159"], ["updated_at", "2017-06-26 06:10:44.724159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.724919"], ["updated_at", "2017-06-26 06:10:44.724919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.725829"], ["updated_at", "2017-06-26 06:10:44.725829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 21]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 21]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.729618"], ["updated_at", "2017-06-26 06:10:44.729618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 22]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.731507"], ["updated_at", "2017-06-26 06:10:44.731507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 23]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 8], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 9], ["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.740248"], ["updated_at", "2017-06-26 06:10:44.740248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.741062"], ["updated_at", "2017-06-26 06:10:44.741062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.741821"], ["updated_at", "2017-06-26 06:10:44.741821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.742932"], ["updated_at", "2017-06-26 06:10:44.742932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 27], ["attr", 111]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.748596"], ["updated_at", "2017-06-26 06:10:44.748596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.749359"], ["updated_at", "2017-06-26 06:10:44.749359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.750355"], ["updated_at", "2017-06-26 06:10:44.750355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.751008"], ["updated_at", "2017-06-26 06:10:44.751008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 30]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.753255"], ["updated_at", "2017-06-26 06:10:44.753255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 32]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.761184"], ["updated_at", "2017-06-26 06:10:44.761184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.762174"], ["updated_at", "2017-06-26 06:10:44.762174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.764262"], ["updated_at", "2017-06-26 06:10:44.764262"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 35]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 35], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:10:44.768833"], ["updated_at", "2017-06-26 06:10:44.768833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:10:44.769629"], ["updated_at", "2017-06-26 06:10:44.769629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.770368"], ["updated_at", "2017-06-26 06:10:44.770368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.771457"], ["updated_at", "2017-06-26 06:10:44.771457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.772460"], ["updated_at", "2017-06-26 06:10:44.772460"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.773844"], ["updated_at", "2017-06-26 06:10:44.773844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.774598"], ["updated_at", "2017-06-26 06:10:44.774598"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.775799"], ["updated_at", "2017-06-26 06:10:44.775799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.778960"], ["updated_at", "2017-06-26 06:10:44.778960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.779802"], ["updated_at", "2017-06-26 06:10:44.779802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.781007"], ["updated_at", "2017-06-26 06:10:44.781007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.781752"], ["updated_at", "2017-06-26 06:10:44.781752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.789196"], ["updated_at", "2017-06-26 06:10:44.789196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.790023"], ["updated_at", "2017-06-26 06:10:44.790023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 8], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:10:44.795340"], ["updated_at", "2017-06-26 06:10:44.795340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 6], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 7]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.800937"], ["updated_at", "2017-06-26 06:10:44.800937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.801907"], ["updated_at", "2017-06-26 06:10:44.801907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 11], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 12], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 11], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.809106"], ["updated_at", "2017-06-26 06:10:44.809106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.809891"], ["updated_at", "2017-06-26 06:10:44.809891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.810987"], ["updated_at", "2017-06-26 06:10:44.810987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 15]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:10:44.813666"], ["updated_at", "2017-06-26 06:10:44.813666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- ------------------------- HelperTest: test_has_role ------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params ---------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context --------------------------------------  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ----------------------------------------------------  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:12:53.882676"], ["updated_at", "2017-06-26 06:12:53.882676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:12:53.891092"], ["updated_at", "2017-06-26 06:12:53.891092"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:12:53.903439"], ["updated_at", "2017-06-26 06:12:53.903439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:12:53.904423"], ["updated_at", "2017-06-26 06:12:53.904423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.918002"], ["updated_at", "2017-06-26 06:12:53.918002"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.932084"], ["updated_at", "2017-06-26 06:12:53.932084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.932893"], ["updated_at", "2017-06-26 06:12:53.932893"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.935317"], ["updated_at", "2017-06-26 06:12:53.935317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.939259"], ["updated_at", "2017-06-26 06:12:53.939259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.940058"], ["updated_at", "2017-06-26 06:12:53.940058"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.944894"], ["updated_at", "2017-06-26 06:12:53.944894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.947854"], ["updated_at", "2017-06-26 06:12:53.947854"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.952208"], ["updated_at", "2017-06-26 06:12:53.952208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.953165"], ["updated_at", "2017-06-26 06:12:53.953165"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.955815"], ["updated_at", "2017-06-26 06:12:53.955815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.956692"], ["updated_at", "2017-06-26 06:12:53.956692"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.959759"], ["updated_at", "2017-06-26 06:12:53.959759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:53.960792"], ["updated_at", "2017-06-26 06:12:53.960792"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:12:53.966143"], ["updated_at", "2017-06-26 06:12:53.966143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:12:53.968637"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:12:53.970281"], ["updated_at", "2017-06-26 06:12:53.970281"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:12:53.972047"], ["updated_at", "2017-06-26 06:12:53.972047"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:12:54.000249"], ["updated_at", "2017-06-26 06:12:54.000249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:12:54.003286"], ["updated_at", "2017-06-26 06:12:54.003286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.016491"], ["updated_at", "2017-06-26 06:12:54.016491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.017643"], ["updated_at", "2017-06-26 06:12:54.017643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:12:54.031360"], ["updated_at", "2017-06-26 06:12:54.031360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.043518"], ["updated_at", "2017-06-26 06:12:54.043518"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.046093"], ["updated_at", "2017-06-26 06:12:54.046093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.047035"], ["updated_at", "2017-06-26 06:12:54.047035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.049433"], ["updated_at", "2017-06-26 06:12:54.049433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.053015"], ["updated_at", "2017-06-26 06:12:54.053015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.055156"], ["updated_at", "2017-06-26 06:12:54.055156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.061038"], ["updated_at", "2017-06-26 06:12:54.061038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.061899"], ["updated_at", "2017-06-26 06:12:54.061899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.062829"], ["updated_at", "2017-06-26 06:12:54.062829"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.066334"], ["updated_at", "2017-06-26 06:12:54.066334"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.083936"], ["updated_at", "2017-06-26 06:12:54.083936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.089824"], ["updated_at", "2017-06-26 06:12:54.089824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.090668"], ["updated_at", "2017-06-26 06:12:54.090668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.096806"], ["updated_at", "2017-06-26 06:12:54.096806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.099090"], ["updated_at", "2017-06-26 06:12:54.099090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.101251"], ["updated_at", "2017-06-26 06:12:54.101251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.105281"], ["updated_at", "2017-06-26 06:12:54.105281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.106433"], ["updated_at", "2017-06-26 06:12:54.106433"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:12:54.111052"], ["updated_at", "2017-06-26 06:12:54.111052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:12:54.111922"], ["updated_at", "2017-06-26 06:12:54.111922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.112641"], ["updated_at", "2017-06-26 06:12:54.112641"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.115071"], ["updated_at", "2017-06-26 06:12:54.115071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.124524"], ["updated_at", "2017-06-26 06:12:54.124524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.129607"], ["updated_at", "2017-06-26 06:12:54.129607"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.134503"], ["updated_at", "2017-06-26 06:12:54.134503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.135432"], ["updated_at", "2017-06-26 06:12:54.135432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.137717"], ["updated_at", "2017-06-26 06:12:54.137717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:12:54.144006"], ["updated_at", "2017-06-26 06:12:54.144006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.156501"], ["updated_at", "2017-06-26 06:12:54.156501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.161626"], ["updated_at", "2017-06-26 06:12:54.161626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.163869"], ["updated_at", "2017-06-26 06:12:54.163869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.167780"], ["updated_at", "2017-06-26 06:12:54.167780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:12:54.168592"], ["updated_at", "2017-06-26 06:12:54.168592"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.170990"], ["updated_at", "2017-06-26 06:12:54.170990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.176104"], ["updated_at", "2017-06-26 06:12:54.176104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.177258"], ["updated_at", "2017-06-26 06:12:54.177258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.188434"], ["updated_at", "2017-06-26 06:12:54.188434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.189334"], ["updated_at", "2017-06-26 06:12:54.189334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.190051"], ["updated_at", "2017-06-26 06:12:54.190051"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.192327"], ["updated_at", "2017-06-26 06:12:54.192327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.193248"], ["updated_at", "2017-06-26 06:12:54.193248"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.195422"], ["updated_at", "2017-06-26 06:12:54.195422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.196125"], ["updated_at", "2017-06-26 06:12:54.196125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.200954"], ["updated_at", "2017-06-26 06:12:54.200954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.201864"], ["updated_at", "2017-06-26 06:12:54.201864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:12:54.209177"], ["updated_at", "2017-06-26 06:12:54.209177"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:12:54.210088"], ["updated_at", "2017-06-26 06:12:54.210088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:12:54.211810"], ["updated_at", "2017-06-26 06:12:54.211810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:12:54.212566"], ["updated_at", "2017-06-26 06:12:54.212566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.219525"], ["updated_at", "2017-06-26 06:12:54.219525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:12:54.329611"], ["updated_at", "2017-06-26 06:12:54.329611"]]  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.333092"], ["updated_at", "2017-06-26 06:12:54.333092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.338273"], ["updated_at", "2017-06-26 06:12:54.338273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.340964"], ["updated_at", "2017-06-26 06:12:54.340964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:12:54.349769"], ["updated_at", "2017-06-26 06:12:54.349769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:12:54.350872"], ["updated_at", "2017-06-26 06:12:54.350872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:12:54.383962"], ["updated_at", "2017-06-26 06:12:54.383962"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.234310"], ["updated_at", "2017-06-26 06:13:51.234310"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.280745"], ["updated_at", "2017-06-26 06:13:51.280745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.281848"], ["updated_at", "2017-06-26 06:13:51.281848"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:13:51.295505"], ["updated_at", "2017-06-26 06:13:51.295505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:13:51.300641"], ["updated_at", "2017-06-26 06:13:51.300641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:13:51.301609"], ["updated_at", "2017-06-26 06:13:51.301609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.302431"], ["updated_at", "2017-06-26 06:13:51.302431"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:13:51.307314"], ["updated_at", "2017-06-26 06:13:51.307314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:13:51.309640"], ["id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:13:51.311524"], ["updated_at", "2017-06-26 06:13:51.311524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:13:51.312468"], ["updated_at", "2017-06-26 06:13:51.312468"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.316952"], ["updated_at", "2017-06-26 06:13:51.316952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.317747"], ["updated_at", "2017-06-26 06:13:51.317747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.330576"], ["updated_at", "2017-06-26 06:13:51.330576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.331428"], ["updated_at", "2017-06-26 06:13:51.331428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.339934"], ["updated_at", "2017-06-26 06:13:51.339934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.340881"], ["updated_at", "2017-06-26 06:13:51.340881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.343342"], ["updated_at", "2017-06-26 06:13:51.343342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.347028"], ["updated_at", "2017-06-26 06:13:51.347028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.348181"], ["updated_at", "2017-06-26 06:13:51.348181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.351711"], ["updated_at", "2017-06-26 06:13:51.351711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.3ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.380969"], ["updated_at", "2017-06-26 06:13:51.380969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.387381"], ["updated_at", "2017-06-26 06:13:51.387381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.389887"], ["updated_at", "2017-06-26 06:13:51.389887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.392049"], ["updated_at", "2017-06-26 06:13:51.392049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.395421"], ["updated_at", "2017-06-26 06:13:51.395421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.396273"], ["updated_at", "2017-06-26 06:13:51.396273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:13:51.406726"], ["updated_at", "2017-06-26 06:13:51.406726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:13:51.407656"], ["updated_at", "2017-06-26 06:13:51.407656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:13:51.409475"], ["updated_at", "2017-06-26 06:13:51.409475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:13:51.410386"], ["updated_at", "2017-06-26 06:13:51.410386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.415062"], ["updated_at", "2017-06-26 06:13:51.415062"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.423415"], ["updated_at", "2017-06-26 06:13:51.423415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.446856"], ["updated_at", "2017-06-26 06:13:51.446856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.447833"], ["updated_at", "2017-06-26 06:13:51.447833"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.449984"], ["updated_at", "2017-06-26 06:13:51.449984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.459709"], ["updated_at", "2017-06-26 06:13:51.459709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.467694"], ["updated_at", "2017-06-26 06:13:51.467694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.471993"], ["updated_at", "2017-06-26 06:13:51.471993"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.474034"], ["updated_at", "2017-06-26 06:13:51.474034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.474889"], ["updated_at", "2017-06-26 06:13:51.474889"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.477235"], ["updated_at", "2017-06-26 06:13:51.477235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:13:51.478197"], ["updated_at", "2017-06-26 06:13:51.478197"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.480984"], ["updated_at", "2017-06-26 06:13:51.480984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.484100"], ["updated_at", "2017-06-26 06:13:51.484100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.488759"], ["updated_at", "2017-06-26 06:13:51.488759"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.489898"], ["updated_at", "2017-06-26 06:13:51.489898"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.492398"], ["updated_at", "2017-06-26 06:13:51.492398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.493325"], ["updated_at", "2017-06-26 06:13:51.493325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.494181"], ["updated_at", "2017-06-26 06:13:51.494181"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.497088"], ["updated_at", "2017-06-26 06:13:51.497088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.498286"], ["updated_at", "2017-06-26 06:13:51.498286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.504690"], ["updated_at", "2017-06-26 06:13:51.504690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.505711"], ["updated_at", "2017-06-26 06:13:51.505711"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.508482"], ["updated_at", "2017-06-26 06:13:51.508482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:13:51.514482"], ["updated_at", "2017-06-26 06:13:51.514482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:13:51.515465"], ["updated_at", "2017-06-26 06:13:51.515465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:13:51.517358"], ["updated_at", "2017-06-26 06:13:51.517358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:13:51.518280"], ["updated_at", "2017-06-26 06:13:51.518280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.526440"], ["updated_at", "2017-06-26 06:13:51.526440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.528861"], ["updated_at", "2017-06-26 06:13:51.528861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.535672"], ["updated_at", "2017-06-26 06:13:51.535672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.536721"], ["updated_at", "2017-06-26 06:13:51.536721"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:13:51.541414"], ["updated_at", "2017-06-26 06:13:51.541414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.553500"], ["updated_at", "2017-06-26 06:13:51.553500"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:13:51.565098"], ["updated_at", "2017-06-26 06:13:51.565098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:13:51.568190"], ["updated_at", "2017-06-26 06:13:51.568190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.578088"], ["updated_at", "2017-06-26 06:13:51.578088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.581042"], ["updated_at", "2017-06-26 06:13:51.581042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.584808"], ["updated_at", "2017-06-26 06:13:51.584808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.590350"], ["updated_at", "2017-06-26 06:13:51.590350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.591170"], ["updated_at", "2017-06-26 06:13:51.591170"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.593258"], ["updated_at", "2017-06-26 06:13:51.593258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.602294"], ["updated_at", "2017-06-26 06:13:51.602294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.603347"], ["updated_at", "2017-06-26 06:13:51.603347"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.606106"], ["updated_at", "2017-06-26 06:13:51.606106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.606848"], ["updated_at", "2017-06-26 06:13:51.606848"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:13:51.678458"], ["updated_at", "2017-06-26 06:13:51.678458"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:13:51.689551"], ["updated_at", "2017-06-26 06:13:51.689551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:13:51.690389"], ["updated_at", "2017-06-26 06:13:51.690389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.710094"], ["updated_at", "2017-06-26 06:13:51.710094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.715136"], ["updated_at", "2017-06-26 06:13:51.715136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.719956"], ["updated_at", "2017-06-26 06:13:51.719956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:13:51.722863"], ["updated_at", "2017-06-26 06:13:51.722863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.369748"], ["updated_at", "2017-06-26 06:14:06.369748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.377544"], ["updated_at", "2017-06-26 06:14:06.377544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.419885"], ["updated_at", "2017-06-26 06:14:06.419885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.430813"], ["updated_at", "2017-06-26 06:14:06.430813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.439909"], ["updated_at", "2017-06-26 06:14:06.439909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.446747"], ["updated_at", "2017-06-26 06:14:06.446747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.447766"], ["updated_at", "2017-06-26 06:14:06.447766"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.450547"], ["updated_at", "2017-06-26 06:14:06.450547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.453006"], ["updated_at", "2017-06-26 06:14:06.453006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.457019"], ["updated_at", "2017-06-26 06:14:06.457019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.458002"], ["updated_at", "2017-06-26 06:14:06.458002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.459247"], ["updated_at", "2017-06-26 06:14:06.459247"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.462321"], ["updated_at", "2017-06-26 06:14:06.462321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.463319"], ["updated_at", "2017-06-26 06:14:06.463319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.464294"], ["updated_at", "2017-06-26 06:14:06.464294"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.469237"], ["updated_at", "2017-06-26 06:14:06.469237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.470107"], ["updated_at", "2017-06-26 06:14:06.470107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.481689"], ["updated_at", "2017-06-26 06:14:06.481689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.482781"], ["updated_at", "2017-06-26 06:14:06.482781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.490921"], ["updated_at", "2017-06-26 06:14:06.490921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.492106"], ["updated_at", "2017-06-26 06:14:06.492106"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.497389"], ["updated_at", "2017-06-26 06:14:06.497389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.498378"], ["updated_at", "2017-06-26 06:14:06.498378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.516304"], ["updated_at", "2017-06-26 06:14:06.516304"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.518524"], ["updated_at", "2017-06-26 06:14:06.518524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.520587"], ["updated_at", "2017-06-26 06:14:06.520587"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:14:06.527855"], ["updated_at", "2017-06-26 06:14:06.527855"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.532475"], ["updated_at", "2017-06-26 06:14:06.532475"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.534402"], ["updated_at", "2017-06-26 06:14:06.534402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.535182"], ["updated_at", "2017-06-26 06:14:06.535182"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.536952"], ["updated_at", "2017-06-26 06:14:06.536952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.537963"], ["updated_at", "2017-06-26 06:14:06.537963"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.545308"], ["updated_at", "2017-06-26 06:14:06.545308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.551382"], ["updated_at", "2017-06-26 06:14:06.551382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.552271"], ["updated_at", "2017-06-26 06:14:06.552271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.554643"], ["updated_at", "2017-06-26 06:14:06.554643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.559336"], ["updated_at", "2017-06-26 06:14:06.559336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:14:06.560564"], ["updated_at", "2017-06-26 06:14:06.560564"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:14:06.566524"], ["updated_at", "2017-06-26 06:14:06.566524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:14:06.568737"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:14:06.570512"], ["updated_at", "2017-06-26 06:14:06.570512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:14:06.571879"], ["updated_at", "2017-06-26 06:14:06.571879"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.576730"], ["updated_at", "2017-06-26 06:14:06.576730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.582016"], ["updated_at", "2017-06-26 06:14:06.582016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.584369"], ["updated_at", "2017-06-26 06:14:06.584369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.587543"], ["updated_at", "2017-06-26 06:14:06.587543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:14:06.610126"], ["updated_at", "2017-06-26 06:14:06.610126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:14:06.613137"], ["updated_at", "2017-06-26 06:14:06.613137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.624433"], ["updated_at", "2017-06-26 06:14:06.624433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.625713"], ["updated_at", "2017-06-26 06:14:06.625713"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.628652"], ["updated_at", "2017-06-26 06:14:06.628652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.631497"], ["updated_at", "2017-06-26 06:14:06.631497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:14:06.635893"], ["updated_at", "2017-06-26 06:14:06.635893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:14:06.636803"], ["updated_at", "2017-06-26 06:14:06.636803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:14:06.638817"], ["updated_at", "2017-06-26 06:14:06.638817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:14:06.639868"], ["updated_at", "2017-06-26 06:14:06.639868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.647748"], ["updated_at", "2017-06-26 06:14:06.647748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.657890"], ["updated_at", "2017-06-26 06:14:06.657890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.658976"], ["updated_at", "2017-06-26 06:14:06.658976"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.665228"], ["updated_at", "2017-06-26 06:14:06.665228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:14:06.670356"], ["updated_at", "2017-06-26 06:14:06.670356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:14:06.671536"], ["updated_at", "2017-06-26 06:14:06.671536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.672531"], ["updated_at", "2017-06-26 06:14:06.672531"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.674837"], ["updated_at", "2017-06-26 06:14:06.674837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.675745"], ["updated_at", "2017-06-26 06:14:06.675745"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:14:06.694319"], ["updated_at", "2017-06-26 06:14:06.694319"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:14:06.695549"], ["updated_at", "2017-06-26 06:14:06.695549"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:14:06.697687"], ["updated_at", "2017-06-26 06:14:06.697687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:14:06.698641"], ["updated_at", "2017-06-26 06:14:06.698641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:14:06.704560"], ["updated_at", "2017-06-26 06:14:06.704560"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.717607"], ["updated_at", "2017-06-26 06:14:06.717607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.724142"], ["updated_at", "2017-06-26 06:14:06.724142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.729341"], ["updated_at", "2017-06-26 06:14:06.729341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.730304"], ["updated_at", "2017-06-26 06:14:06.730304"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.733305"], ["updated_at", "2017-06-26 06:14:06.733305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.734195"], ["updated_at", "2017-06-26 06:14:06.734195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.736730"], ["updated_at", "2017-06-26 06:14:06.736730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.779629"], ["updated_at", "2017-06-26 06:14:06.779629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.785749"], ["updated_at", "2017-06-26 06:14:06.785749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.789225"], ["updated_at", "2017-06-26 06:14:06.789225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:14:06.797488"], ["updated_at", "2017-06-26 06:14:06.797488"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:06.800204"], ["updated_at", "2017-06-26 06:14:06.800204"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:14:06.807226"], ["updated_at", "2017-06-26 06:14:06.807226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:14:06.808279"], ["updated_at", "2017-06-26 06:14:06.808279"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.0ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.050494"], ["updated_at", "2017-06-26 06:14:12.050494"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.075853"], ["updated_at", "2017-06-26 06:14:12.075853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.079146"], ["updated_at", "2017-06-26 06:14:12.079146"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.085797"], ["updated_at", "2017-06-26 06:14:12.085797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.095563"], ["updated_at", "2017-06-26 06:14:12.095563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.099187"], ["updated_at", "2017-06-26 06:14:12.099187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.126109"], ["updated_at", "2017-06-26 06:14:12.126109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.134207"], ["updated_at", "2017-06-26 06:14:12.134207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.135016"], ["updated_at", "2017-06-26 06:14:12.135016"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.137627"], ["updated_at", "2017-06-26 06:14:12.137627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.139960"], ["updated_at", "2017-06-26 06:14:12.139960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.143607"], ["updated_at", "2017-06-26 06:14:12.143607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.149976"], ["updated_at", "2017-06-26 06:14:12.149976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.151148"], ["updated_at", "2017-06-26 06:14:12.151148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.160485"], ["updated_at", "2017-06-26 06:14:12.160485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.161419"], ["updated_at", "2017-06-26 06:14:12.161419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (8.9ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.182850"], ["updated_at", "2017-06-26 06:14:12.182850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.183676"], ["updated_at", "2017-06-26 06:14:12.183676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.185731"], ["updated_at", "2017-06-26 06:14:12.185731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:14:12.189318"], ["updated_at", "2017-06-26 06:14:12.189318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:14:12.190269"], ["updated_at", "2017-06-26 06:14:12.190269"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:14:12.192418"], ["updated_at", "2017-06-26 06:14:12.192418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:14:12.193357"], ["updated_at", "2017-06-26 06:14:12.193357"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.201944"], ["updated_at", "2017-06-26 06:14:12.201944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.202858"], ["updated_at", "2017-06-26 06:14:12.202858"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.206565"], ["updated_at", "2017-06-26 06:14:12.206565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.216660"], ["updated_at", "2017-06-26 06:14:12.216660"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:14:12.227570"], ["updated_at", "2017-06-26 06:14:12.227570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.238064"], ["updated_at", "2017-06-26 06:14:12.238064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.238950"], ["updated_at", "2017-06-26 06:14:12.238950"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.239863"], ["updated_at", "2017-06-26 06:14:12.239863"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.242723"], ["updated_at", "2017-06-26 06:14:12.242723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.243566"], ["updated_at", "2017-06-26 06:14:12.243566"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.250408"], ["updated_at", "2017-06-26 06:14:12.250408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:14:12.251284"], ["updated_at", "2017-06-26 06:14:12.251284"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.253702"], ["updated_at", "2017-06-26 06:14:12.253702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.254492"], ["updated_at", "2017-06-26 06:14:12.254492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:14:12.269351"], ["updated_at", "2017-06-26 06:14:12.269351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:14:12.270593"], ["updated_at", "2017-06-26 06:14:12.270593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.271794"], ["updated_at", "2017-06-26 06:14:12.271794"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.274364"], ["updated_at", "2017-06-26 06:14:12.274364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.275338"], ["updated_at", "2017-06-26 06:14:12.275338"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.286891"], ["updated_at", "2017-06-26 06:14:12.286891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.287853"], ["updated_at", "2017-06-26 06:14:12.287853"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.291139"], ["updated_at", "2017-06-26 06:14:12.291139"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:14:12.293936"], ["updated_at", "2017-06-26 06:14:12.293936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:14:12.297053"], ["updated_at", "2017-06-26 06:14:12.297053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.307020"], ["updated_at", "2017-06-26 06:14:12.307020"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.308255"], ["updated_at", "2017-06-26 06:14:12.308255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.309173"], ["updated_at", "2017-06-26 06:14:12.309173"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.312195"], ["updated_at", "2017-06-26 06:14:12.312195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.315669"], ["updated_at", "2017-06-26 06:14:12.315669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.322616"], ["updated_at", "2017-06-26 06:14:12.322616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:14:12.333025"], ["updated_at", "2017-06-26 06:14:12.333025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.337508"], ["updated_at", "2017-06-26 06:14:12.337508"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.338447"], ["updated_at", "2017-06-26 06:14:12.338447"]]  (0.3ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.340703"], ["updated_at", "2017-06-26 06:14:12.340703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.341518"], ["updated_at", "2017-06-26 06:14:12.341518"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.343910"], ["updated_at", "2017-06-26 06:14:12.343910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.344825"], ["updated_at", "2017-06-26 06:14:12.344825"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.347909"], ["updated_at", "2017-06-26 06:14:12.347909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.353955"], ["updated_at", "2017-06-26 06:14:12.353955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:14:12.360517"], ["updated_at", "2017-06-26 06:14:12.360517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:14:12.361762"], ["updated_at", "2017-06-26 06:14:12.361762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:14:12.363984"], ["updated_at", "2017-06-26 06:14:12.363984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:14:12.364784"], ["updated_at", "2017-06-26 06:14:12.364784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.368491"], ["updated_at", "2017-06-26 06:14:12.368491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.369377"], ["updated_at", "2017-06-26 06:14:12.369377"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.371715"], ["updated_at", "2017-06-26 06:14:12.371715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.374994"], ["updated_at", "2017-06-26 06:14:12.374994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:14:12.379597"], ["updated_at", "2017-06-26 06:14:12.379597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:14:12.381449"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:14:12.383044"], ["updated_at", "2017-06-26 06:14:12.383044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:14:12.383983"], ["updated_at", "2017-06-26 06:14:12.383983"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.389267"], ["updated_at", "2017-06-26 06:14:12.389267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.397437"], ["updated_at", "2017-06-26 06:14:12.397437"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.398374"], ["updated_at", "2017-06-26 06:14:12.398374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:14:12.559179"], ["updated_at", "2017-06-26 06:14:12.559179"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.578458"], ["updated_at", "2017-06-26 06:14:12.578458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.583463"], ["updated_at", "2017-06-26 06:14:12.583463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.586046"], ["updated_at", "2017-06-26 06:14:12.586046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:14:12.590717"], ["updated_at", "2017-06-26 06:14:12.590717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:14:12.600746"], ["updated_at", "2017-06-26 06:14:12.600746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:14:12.601695"], ["updated_at", "2017-06-26 06:14:12.601695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.402849"], ["updated_at", "2017-06-26 06:17:53.402849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.434854"], ["updated_at", "2017-06-26 06:17:53.434854"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.437866"], ["updated_at", "2017-06-26 06:17:53.437866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.438850"], ["updated_at", "2017-06-26 06:17:53.438850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 4], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:17:53.450366"], ["updated_at", "2017-06-26 06:17:53.450366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:17:53.451453"], ["updated_at", "2017-06-26 06:17:53.451453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 5], ["test_another_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:17:53.453622"], ["updated_at", "2017-06-26 06:17:53.453622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:17:53.454714"], ["updated_at", "2017-06-26 06:17:53.454714"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 7], ["test_another_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 7], ["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.460381"], ["updated_at", "2017-06-26 06:17:53.460381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.461368"], ["updated_at", "2017-06-26 06:17:53.461368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.463746"], ["updated_at", "2017-06-26 06:17:53.463746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.466345"], ["updated_at", "2017-06-26 06:17:53.466345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.471013"], ["updated_at", "2017-06-26 06:17:53.471013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:17:53.474456"], ["updated_at", "2017-06-26 06:17:53.474456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:17:53.475556"], ["updated_at", "2017-06-26 06:17:53.475556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 6], ["test_another_model_id", 7]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:17:53.477530"], ["updated_at", "2017-06-26 06:17:53.477530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:17:53.478462"], ["updated_at", "2017-06-26 06:17:53.478462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 8], ["test_another_model_id", 9]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.481305"], ["updated_at", "2017-06-26 06:17:53.481305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.482236"], ["updated_at", "2017-06-26 06:17:53.482236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.504087"], ["updated_at", "2017-06-26 06:17:53.504087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.514579"], ["updated_at", "2017-06-26 06:17:53.514579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.518918"], ["updated_at", "2017-06-26 06:17:53.518918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.519962"], ["updated_at", "2017-06-26 06:17:53.519962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.527544"], ["updated_at", "2017-06-26 06:17:53.527544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:17:53.530269"], ["updated_at", "2017-06-26 06:17:53.530269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:17:53.532499"], ["updated_at", "2017-06-26 06:17:53.532499"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 7], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.536572"], ["updated_at", "2017-06-26 06:17:53.536572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.537394"], ["updated_at", "2017-06-26 06:17:53.537394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 9]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.545216"], ["updated_at", "2017-06-26 06:17:53.545216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.546571"], ["updated_at", "2017-06-26 06:17:53.546571"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.548779"], ["updated_at", "2017-06-26 06:17:53.548779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.551362"], ["updated_at", "2017-06-26 06:17:53.551362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.552370"], ["updated_at", "2017-06-26 06:17:53.552370"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.553247"], ["updated_at", "2017-06-26 06:17:53.553247"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:17:53.558284"], ["updated_at", "2017-06-26 06:17:53.558284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:17:53.560862"], ["id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:17:53.562467"], ["updated_at", "2017-06-26 06:17:53.562467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:17:53.563360"], ["updated_at", "2017-06-26 06:17:53.563360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.564698"], ["updated_at", "2017-06-26 06:17:53.564698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.565516"], ["updated_at", "2017-06-26 06:17:53.565516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 19]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 20]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 19], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:17:53.579574"], ["updated_at", "2017-06-26 06:17:53.579574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:17:53.580490"], ["updated_at", "2017-06-26 06:17:53.580490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.581234"], ["updated_at", "2017-06-26 06:17:53.581234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.582615"], ["updated_at", "2017-06-26 06:17:53.582615"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 24]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.586083"], ["updated_at", "2017-06-26 06:17:53.586083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.586930"], ["updated_at", "2017-06-26 06:17:53.586930"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.588433"], ["updated_at", "2017-06-26 06:17:53.588433"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.589385"], ["updated_at", "2017-06-26 06:17:53.589385"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 27], ["test_another_model_id", 28]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.591460"], ["updated_at", "2017-06-26 06:17:53.591460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:17:53.592206"], ["updated_at", "2017-06-26 06:17:53.592206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:17:53.598289"], ["updated_at", "2017-06-26 06:17:53.598289"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 4], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 2], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 5]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.605957"], ["updated_at", "2017-06-26 06:17:53.605957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 32]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.609397"], ["updated_at", "2017-06-26 06:17:53.609397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.610275"], ["updated_at", "2017-06-26 06:17:53.610275"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.611737"], ["updated_at", "2017-06-26 06:17:53.611737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 35]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.614018"], ["updated_at", "2017-06-26 06:17:53.614018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 36]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.616081"], ["updated_at", "2017-06-26 06:17:53.616081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 37]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.618392"], ["updated_at", "2017-06-26 06:17:53.618392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 38]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.620522"], ["updated_at", "2017-06-26 06:17:53.620522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 39]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.623414"], ["updated_at", "2017-06-26 06:17:53.623414"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.624377"], ["updated_at", "2017-06-26 06:17:53.624377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 40]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.627065"], ["updated_at", "2017-06-26 06:17:53.627065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 42]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.629640"], ["updated_at", "2017-06-26 06:17:53.629640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.630456"], ["updated_at", "2017-06-26 06:17:53.630456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.631486"], ["updated_at", "2017-06-26 06:17:53.631486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.632177"], ["updated_at", "2017-06-26 06:17:53.632177"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:17:53.636578"], ["updated_at", "2017-06-26 06:17:53.636578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.638856"], ["updated_at", "2017-06-26 06:17:53.638856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 111]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.641818"], ["updated_at", "2017-06-26 06:17:53.641818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.642672"], ["updated_at", "2017-06-26 06:17:53.642672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.643866"], ["updated_at", "2017-06-26 06:17:53.643866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.646329"], ["updated_at", "2017-06-26 06:17:53.646329"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.651525"], ["updated_at", "2017-06-26 06:17:53.651525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.652753"], ["updated_at", "2017-06-26 06:17:53.652753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.654165"], ["updated_at", "2017-06-26 06:17:53.654165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.655188"], ["updated_at", "2017-06-26 06:17:53.655188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.656183"], ["updated_at", "2017-06-26 06:17:53.656183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 5], ["company_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 6], ["company_id", 7]]  (0.0ms) commit transaction ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.697522"], ["updated_at", "2017-06-26 06:17:53.697522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 12], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 12], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.705546"], ["updated_at", "2017-06-26 06:17:53.705546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 13], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.708782"], ["updated_at", "2017-06-26 06:17:53.708782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:17:53.711488"], ["updated_at", "2017-06-26 06:17:53.711488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 15]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 15], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:17:53.720142"], ["updated_at", "2017-06-26 06:17:53.720142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:17:53.721428"], ["updated_at", "2017-06-26 06:17:53.721428"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:17:53.745883"], ["updated_at", "2017-06-26 06:17:53.745883"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.843747"], ["updated_at", "2017-06-26 06:18:02.843747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.849219"], ["updated_at", "2017-06-26 06:18:02.849219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:18:02.879044"], ["updated_at", "2017-06-26 06:18:02.879044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:18:02.880342"], ["updated_at", "2017-06-26 06:18:02.880342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:18:02.882698"], ["updated_at", "2017-06-26 06:18:02.882698"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:18:02.883669"], ["updated_at", "2017-06-26 06:18:02.883669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.890387"], ["updated_at", "2017-06-26 06:18:02.890387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.898940"], ["updated_at", "2017-06-26 06:18:02.898940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:18:02.909278"], ["updated_at", "2017-06-26 06:18:02.909278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:18:02.911349"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:18:02.912785"], ["updated_at", "2017-06-26 06:18:02.912785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:18:02.913533"], ["updated_at", "2017-06-26 06:18:02.913533"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.918107"], ["updated_at", "2017-06-26 06:18:02.918107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.923744"], ["updated_at", "2017-06-26 06:18:02.923744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:18:02.930903"], ["updated_at", "2017-06-26 06:18:02.930903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:18:02.931908"], ["updated_at", "2017-06-26 06:18:02.931908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.932856"], ["updated_at", "2017-06-26 06:18:02.932856"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.935209"], ["updated_at", "2017-06-26 06:18:02.935209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.936225"], ["updated_at", "2017-06-26 06:18:02.936225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.937637"], ["updated_at", "2017-06-26 06:18:02.937637"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.939978"], ["updated_at", "2017-06-26 06:18:02.939978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.941032"], ["updated_at", "2017-06-26 06:18:02.941032"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 4)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 4)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.965762"], ["updated_at", "2017-06-26 06:18:02.965762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.970380"], ["updated_at", "2017-06-26 06:18:02.970380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.971415"], ["updated_at", "2017-06-26 06:18:02.971415"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.972316"], ["updated_at", "2017-06-26 06:18:02.972316"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.975130"], ["updated_at", "2017-06-26 06:18:02.975130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.975970"], ["updated_at", "2017-06-26 06:18:02.975970"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:18:02.978992"], ["updated_at", "2017-06-26 06:18:02.978992"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:18:02.979873"], ["updated_at", "2017-06-26 06:18:02.979873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:18:02.981508"], ["updated_at", "2017-06-26 06:18:02.981508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:18:02.982420"], ["updated_at", "2017-06-26 06:18:02.982420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.992497"], ["updated_at", "2017-06-26 06:18:02.992497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:02.993562"], ["updated_at", "2017-06-26 06:18:02.993562"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:18:02.996112"], ["updated_at", "2017-06-26 06:18:02.996112"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:18:02.998908"], ["updated_at", "2017-06-26 06:18:02.998908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.013343"], ["updated_at", "2017-06-26 06:18:03.013343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.018429"], ["updated_at", "2017-06-26 06:18:03.018429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.020700"], ["updated_at", "2017-06-26 06:18:03.020700"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.023146"], ["updated_at", "2017-06-26 06:18:03.023146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:18:03.030180"], ["updated_at", "2017-06-26 06:18:03.030180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.034715"], ["updated_at", "2017-06-26 06:18:03.034715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.035767"], ["updated_at", "2017-06-26 06:18:03.035767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.044342"], ["updated_at", "2017-06-26 06:18:03.044342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.050009"], ["updated_at", "2017-06-26 06:18:03.050009"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.063665"], ["updated_at", "2017-06-26 06:18:03.063665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.064433"], ["updated_at", "2017-06-26 06:18:03.064433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.066692"], ["updated_at", "2017-06-26 06:18:03.066692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.069591"], ["updated_at", "2017-06-26 06:18:03.069591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.070402"], ["updated_at", "2017-06-26 06:18:03.070402"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.073132"], ["updated_at", "2017-06-26 06:18:03.073132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.073937"], ["updated_at", "2017-06-26 06:18:03.073937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.076054"], ["updated_at", "2017-06-26 06:18:03.076054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.079454"], ["updated_at", "2017-06-26 06:18:03.079454"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.081613"], ["updated_at", "2017-06-26 06:18:03.081613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.084821"], ["updated_at", "2017-06-26 06:18:03.084821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.085544"], ["updated_at", "2017-06-26 06:18:03.085544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.090904"], ["updated_at", "2017-06-26 06:18:03.090904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.093218"], ["updated_at", "2017-06-26 06:18:03.093218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.100959"], ["updated_at", "2017-06-26 06:18:03.100959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:18:03.101785"], ["updated_at", "2017-06-26 06:18:03.101785"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.103933"], ["updated_at", "2017-06-26 06:18:03.103933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.105031"], ["updated_at", "2017-06-26 06:18:03.105031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:18:03.115993"], ["updated_at", "2017-06-26 06:18:03.115993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.125011"], ["updated_at", "2017-06-26 06:18:03.125011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.125743"], ["updated_at", "2017-06-26 06:18:03.125743"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.127516"], ["updated_at", "2017-06-26 06:18:03.127516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.131191"], ["updated_at", "2017-06-26 06:18:03.131191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.131936"], ["updated_at", "2017-06-26 06:18:03.131936"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.133593"], ["updated_at", "2017-06-26 06:18:03.133593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.135799"], ["updated_at", "2017-06-26 06:18:03.135799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.139789"], ["updated_at", "2017-06-26 06:18:03.139789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.145684"], ["updated_at", "2017-06-26 06:18:03.145684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.146607"], ["updated_at", "2017-06-26 06:18:03.146607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.147387"], ["updated_at", "2017-06-26 06:18:03.147387"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.149697"], ["updated_at", "2017-06-26 06:18:03.149697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.150431"], ["updated_at", "2017-06-26 06:18:03.150431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:18:03.297331"], ["updated_at", "2017-06-26 06:18:03.297331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:18:03.298223"], ["updated_at", "2017-06-26 06:18:03.298223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.310387"], ["updated_at", "2017-06-26 06:18:03.310387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:18:03.316096"], ["updated_at", "2017-06-26 06:18:03.316096"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.325610"], ["updated_at", "2017-06-26 06:18:03.325610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.331414"], ["updated_at", "2017-06-26 06:18:03.331414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:18:03.334153"], ["updated_at", "2017-06-26 06:18:03.334153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.656452"], ["updated_at", "2017-06-26 06:19:07.656452"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:19:07.667406"], ["updated_at", "2017-06-26 06:19:07.667406"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:19:07.687300"], ["updated_at", "2017-06-26 06:19:07.687300"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.704456"], ["updated_at", "2017-06-26 06:19:07.704456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.705424"], ["updated_at", "2017-06-26 06:19:07.705424"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:19:07.713934"], ["updated_at", "2017-06-26 06:19:07.713934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.718615"], ["updated_at", "2017-06-26 06:19:07.718615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.719368"], ["updated_at", "2017-06-26 06:19:07.719368"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:19:07.726346"], ["updated_at", "2017-06-26 06:19:07.726346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.753742"], ["updated_at", "2017-06-26 06:19:07.753742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.754644"], ["updated_at", "2017-06-26 06:19:07.754644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.760480"], ["updated_at", "2017-06-26 06:19:07.760480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:19:07.766555"], ["updated_at", "2017-06-26 06:19:07.766555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:19:07.767534"], ["updated_at", "2017-06-26 06:19:07.767534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:19:07.769594"], ["updated_at", "2017-06-26 06:19:07.769594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:19:07.770577"], ["updated_at", "2017-06-26 06:19:07.770577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.777015"], ["updated_at", "2017-06-26 06:19:07.777015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.777981"], ["updated_at", "2017-06-26 06:19:07.777981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.778786"], ["updated_at", "2017-06-26 06:19:07.778786"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.781608"], ["updated_at", "2017-06-26 06:19:07.781608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.782406"], ["updated_at", "2017-06-26 06:19:07.782406"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.787571"], ["updated_at", "2017-06-26 06:19:07.787571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.788368"], ["updated_at", "2017-06-26 06:19:07.788368"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.791132"], ["updated_at", "2017-06-26 06:19:07.791132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.795122"], ["updated_at", "2017-06-26 06:19:07.795122"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.805495"], ["updated_at", "2017-06-26 06:19:07.805495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.809301"], ["updated_at", "2017-06-26 06:19:07.809301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.813509"], ["updated_at", "2017-06-26 06:19:07.813509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:19:07.814304"], ["updated_at", "2017-06-26 06:19:07.814304"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.816517"], ["updated_at", "2017-06-26 06:19:07.816517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.817457"], ["updated_at", "2017-06-26 06:19:07.817457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.818287"], ["updated_at", "2017-06-26 06:19:07.818287"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.820709"], ["updated_at", "2017-06-26 06:19:07.820709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.821775"], ["updated_at", "2017-06-26 06:19:07.821775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.833033"], ["updated_at", "2017-06-26 06:19:07.833033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.835702"], ["updated_at", "2017-06-26 06:19:07.835702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:19:07.839727"], ["updated_at", "2017-06-26 06:19:07.839727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:19:07.840586"], ["updated_at", "2017-06-26 06:19:07.840586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:19:07.842342"], ["updated_at", "2017-06-26 06:19:07.842342"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:19:07.843225"], ["updated_at", "2017-06-26 06:19:07.843225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.849425"], ["updated_at", "2017-06-26 06:19:07.849425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.854492"], ["updated_at", "2017-06-26 06:19:07.854492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.855451"], ["updated_at", "2017-06-26 06:19:07.855451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.878709"], ["updated_at", "2017-06-26 06:19:07.878709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.885567"], ["updated_at", "2017-06-26 06:19:07.885567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.892623"], ["updated_at", "2017-06-26 06:19:07.892623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.895189"], ["updated_at", "2017-06-26 06:19:07.895189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:19:07.898917"], ["updated_at", "2017-06-26 06:19:07.898917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:19:07.900334"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:19:07.901889"], ["updated_at", "2017-06-26 06:19:07.901889"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:19:07.902664"], ["updated_at", "2017-06-26 06:19:07.902664"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.906890"], ["updated_at", "2017-06-26 06:19:07.906890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.909786"], ["updated_at", "2017-06-26 06:19:07.909786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.913442"], ["updated_at", "2017-06-26 06:19:07.913442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.914494"], ["updated_at", "2017-06-26 06:19:07.914494"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.927312"], ["updated_at", "2017-06-26 06:19:07.927312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.928189"], ["updated_at", "2017-06-26 06:19:07.928189"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.930150"], ["updated_at", "2017-06-26 06:19:07.930150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.932674"], ["updated_at", "2017-06-26 06:19:07.932674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.934941"], ["updated_at", "2017-06-26 06:19:07.934941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.938221"], ["updated_at", "2017-06-26 06:19:07.938221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.942742"], ["updated_at", "2017-06-26 06:19:07.942742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:19:07.947551"], ["updated_at", "2017-06-26 06:19:07.947551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:19:07.948462"], ["updated_at", "2017-06-26 06:19:07.948462"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.949420"], ["updated_at", "2017-06-26 06:19:07.949420"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.952129"], ["updated_at", "2017-06-26 06:19:07.952129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.953051"], ["updated_at", "2017-06-26 06:19:07.953051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.955644"], ["updated_at", "2017-06-26 06:19:07.955644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.963014"], ["updated_at", "2017-06-26 06:19:07.963014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.963751"], ["updated_at", "2017-06-26 06:19:07.963751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.972240"], ["updated_at", "2017-06-26 06:19:07.972240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.973229"], ["updated_at", "2017-06-26 06:19:07.973229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.978648"], ["updated_at", "2017-06-26 06:19:07.978648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.979435"], ["updated_at", "2017-06-26 06:19:07.979435"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.981814"], ["updated_at", "2017-06-26 06:19:07.981814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.982532"], ["updated_at", "2017-06-26 06:19:07.982532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.984418"], ["updated_at", "2017-06-26 06:19:07.984418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.989918"], ["updated_at", "2017-06-26 06:19:07.989918"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.995400"], ["updated_at", "2017-06-26 06:19:07.995400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:07.997932"], ["updated_at", "2017-06-26 06:19:07.997932"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:08.005200"], ["updated_at", "2017-06-26 06:19:08.005200"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:19:08.017614"], ["updated_at", "2017-06-26 06:19:08.017614"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:19:08.020802"], ["updated_at", "2017-06-26 06:19:08.020802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:19:08.021634"], ["updated_at", "2017-06-26 06:19:08.021634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.457456"], ["updated_at", "2017-06-26 06:19:42.457456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.508453"], ["updated_at", "2017-06-26 06:19:42.508453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.515599"], ["updated_at", "2017-06-26 06:19:42.515599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.519411"], ["updated_at", "2017-06-26 06:19:42.519411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:19:42.550304"], ["updated_at", "2017-06-26 06:19:42.550304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:19:42.551324"], ["updated_at", "2017-06-26 06:19:42.551324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:19:42.573178"], ["updated_at", "2017-06-26 06:19:42.573178"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:19:42.693538"], ["updated_at", "2017-06-26 06:19:42.693538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:19:42.694516"], ["updated_at", "2017-06-26 06:19:42.694516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:19:42.696283"], ["updated_at", "2017-06-26 06:19:42.696283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:19:42.696988"], ["updated_at", "2017-06-26 06:19:42.696988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.700914"], ["updated_at", "2017-06-26 06:19:42.700914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.706911"], ["updated_at", "2017-06-26 06:19:42.706911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.707773"], ["updated_at", "2017-06-26 06:19:42.707773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.709659"], ["updated_at", "2017-06-26 06:19:42.709659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:19:42.716866"], ["updated_at", "2017-06-26 06:19:42.716866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.727526"], ["updated_at", "2017-06-26 06:19:42.727526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.728374"], ["updated_at", "2017-06-26 06:19:42.728374"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:19:42.734471"], ["updated_at", "2017-06-26 06:19:42.734471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:19:42.735818"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:19:42.737014"], ["updated_at", "2017-06-26 06:19:42.737014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:19:42.737855"], ["updated_at", "2017-06-26 06:19:42.737855"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.741655"], ["updated_at", "2017-06-26 06:19:42.741655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.742393"], ["updated_at", "2017-06-26 06:19:42.742393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.745246"], ["updated_at", "2017-06-26 06:19:42.745246"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.752283"], ["updated_at", "2017-06-26 06:19:42.752283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.753367"], ["updated_at", "2017-06-26 06:19:42.753367"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.758010"], ["updated_at", "2017-06-26 06:19:42.758010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.758795"], ["updated_at", "2017-06-26 06:19:42.758795"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:19:42.764229"], ["updated_at", "2017-06-26 06:19:42.764229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.768069"], ["updated_at", "2017-06-26 06:19:42.768069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:19:42.768903"], ["updated_at", "2017-06-26 06:19:42.768903"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.771528"], ["updated_at", "2017-06-26 06:19:42.771528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.772487"], ["updated_at", "2017-06-26 06:19:42.772487"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.774919"], ["updated_at", "2017-06-26 06:19:42.774919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.775687"], ["updated_at", "2017-06-26 06:19:42.775687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.781735"], ["updated_at", "2017-06-26 06:19:42.781735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:19:42.786422"], ["updated_at", "2017-06-26 06:19:42.786422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:19:42.787400"], ["updated_at", "2017-06-26 06:19:42.787400"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.788490"], ["updated_at", "2017-06-26 06:19:42.788490"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:19:42.790623"], ["updated_at", "2017-06-26 06:19:42.790623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:19:42.791431"], ["updated_at", "2017-06-26 06:19:42.791431"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:19:42.793406"], ["updated_at", "2017-06-26 06:19:42.793406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:19:42.794413"], ["updated_at", "2017-06-26 06:19:42.794413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.802362"], ["updated_at", "2017-06-26 06:19:42.802362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.808481"], ["updated_at", "2017-06-26 06:19:42.808481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.809585"], ["updated_at", "2017-06-26 06:19:42.809585"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.811796"], ["updated_at", "2017-06-26 06:19:42.811796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.812712"], ["updated_at", "2017-06-26 06:19:42.812712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.818306"], ["updated_at", "2017-06-26 06:19:42.818306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.821114"], ["updated_at", "2017-06-26 06:19:42.821114"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.827028"], ["updated_at", "2017-06-26 06:19:42.827028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.828003"], ["updated_at", "2017-06-26 06:19:42.828003"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.830576"], ["updated_at", "2017-06-26 06:19:42.830576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.836093"], ["updated_at", "2017-06-26 06:19:42.836093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.841655"], ["updated_at", "2017-06-26 06:19:42.841655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.853918"], ["updated_at", "2017-06-26 06:19:42.853918"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.856665"], ["updated_at", "2017-06-26 06:19:42.856665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.858765"], ["updated_at", "2017-06-26 06:19:42.858765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.862204"], ["updated_at", "2017-06-26 06:19:42.862204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.866258"], ["updated_at", "2017-06-26 06:19:42.866258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.868655"], ["updated_at", "2017-06-26 06:19:42.868655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.872280"], ["updated_at", "2017-06-26 06:19:42.872280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.873249"], ["updated_at", "2017-06-26 06:19:42.873249"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.874287"], ["updated_at", "2017-06-26 06:19:42.874287"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.877051"], ["updated_at", "2017-06-26 06:19:42.877051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.879267"], ["updated_at", "2017-06-26 06:19:42.879267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.890289"], ["updated_at", "2017-06-26 06:19:42.890289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:19:42.894587"], ["updated_at", "2017-06-26 06:19:42.894587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:19:42.897044"], ["updated_at", "2017-06-26 06:19:42.897044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.907037"], ["updated_at", "2017-06-26 06:19:42.907037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.907928"], ["updated_at", "2017-06-26 06:19:42.907928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.908708"], ["updated_at", "2017-06-26 06:19:42.908708"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.911149"], ["updated_at", "2017-06-26 06:19:42.911149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.917371"], ["updated_at", "2017-06-26 06:19:42.917371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.923788"], ["updated_at", "2017-06-26 06:19:42.923788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.930924"], ["updated_at", "2017-06-26 06:19:42.930924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.936497"], ["updated_at", "2017-06-26 06:19:42.936497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.937321"], ["updated_at", "2017-06-26 06:19:42.937321"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.939229"], ["updated_at", "2017-06-26 06:19:42.939229"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.941343"], ["updated_at", "2017-06-26 06:19:42.941343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.942152"], ["updated_at", "2017-06-26 06:19:42.942152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.950141"], ["updated_at", "2017-06-26 06:19:42.950141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:42.951042"], ["updated_at", "2017-06-26 06:19:42.951042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.181042"], ["updated_at", "2017-06-26 06:19:56.181042"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.207654"], ["updated_at", "2017-06-26 06:19:56.207654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.215166"], ["updated_at", "2017-06-26 06:19:56.215166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.224992"], ["updated_at", "2017-06-26 06:19:56.224992"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.230159"], ["updated_at", "2017-06-26 06:19:56.230159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:19:56.231068"], ["updated_at", "2017-06-26 06:19:56.231068"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:19:56.234450"], ["updated_at", "2017-06-26 06:19:56.234450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:19:56.235449"], ["updated_at", "2017-06-26 06:19:56.235449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.236325"], ["updated_at", "2017-06-26 06:19:56.236325"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:19:56.243477"], ["updated_at", "2017-06-26 06:19:56.243477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.248563"], ["updated_at", "2017-06-26 06:19:56.248563"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.251089"], ["updated_at", "2017-06-26 06:19:56.251089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.251889"], ["updated_at", "2017-06-26 06:19:56.251889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.252702"], ["updated_at", "2017-06-26 06:19:56.252702"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.255734"], ["updated_at", "2017-06-26 06:19:56.255734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.256611"], ["updated_at", "2017-06-26 06:19:56.256611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.259224"], ["updated_at", "2017-06-26 06:19:56.259224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.263012"], ["updated_at", "2017-06-26 06:19:56.263012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.263825"], ["updated_at", "2017-06-26 06:19:56.263825"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.266262"], ["updated_at", "2017-06-26 06:19:56.266262"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.267453"], ["updated_at", "2017-06-26 06:19:56.267453"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.270656"], ["updated_at", "2017-06-26 06:19:56.270656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.273491"], ["updated_at", "2017-06-26 06:19:56.273491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.277224"], ["updated_at", "2017-06-26 06:19:56.277224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.278201"], ["updated_at", "2017-06-26 06:19:56.278201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.279318"], ["updated_at", "2017-06-26 06:19:56.279318"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:19:56.282486"], ["updated_at", "2017-06-26 06:19:56.282486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:19:56.283362"], ["updated_at", "2017-06-26 06:19:56.283362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:19:56.286429"], ["updated_at", "2017-06-26 06:19:56.286429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:19:56.287580"], ["updated_at", "2017-06-26 06:19:56.287580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.291786"], ["updated_at", "2017-06-26 06:19:56.291786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.309116"], ["updated_at", "2017-06-26 06:19:56.309116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.310100"], ["updated_at", "2017-06-26 06:19:56.310100"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.314634"], ["updated_at", "2017-06-26 06:19:56.314634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.315546"], ["updated_at", "2017-06-26 06:19:56.315546"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.317538"], ["updated_at", "2017-06-26 06:19:56.317538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.318306"], ["updated_at", "2017-06-26 06:19:56.318306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.328665"], ["updated_at", "2017-06-26 06:19:56.328665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:19:56.338237"], ["updated_at", "2017-06-26 06:19:56.338237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.357318"], ["updated_at", "2017-06-26 06:19:56.357318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.360167"], ["updated_at", "2017-06-26 06:19:56.360167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.373367"], ["updated_at", "2017-06-26 06:19:56.373367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.375853"], ["updated_at", "2017-06-26 06:19:56.375853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.377866"], ["updated_at", "2017-06-26 06:19:56.377866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.382073"], ["updated_at", "2017-06-26 06:19:56.382073"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.383226"], ["updated_at", "2017-06-26 06:19:56.383226"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.394333"], ["updated_at", "2017-06-26 06:19:56.394333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.395241"], ["updated_at", "2017-06-26 06:19:56.395241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:19:56.405406"], ["updated_at", "2017-06-26 06:19:56.405406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:19:56.406707"], ["updated_at", "2017-06-26 06:19:56.406707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:19:56.408455"], ["updated_at", "2017-06-26 06:19:56.408455"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:19:56.409451"], ["updated_at", "2017-06-26 06:19:56.409451"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.416914"], ["updated_at", "2017-06-26 06:19:56.416914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.423271"], ["updated_at", "2017-06-26 06:19:56.423271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.429276"], ["updated_at", "2017-06-26 06:19:56.429276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.430112"], ["updated_at", "2017-06-26 06:19:56.430112"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.432713"], ["updated_at", "2017-06-26 06:19:56.432713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.433534"], ["updated_at", "2017-06-26 06:19:56.433534"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.438639"], ["updated_at", "2017-06-26 06:19:56.438639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.442770"], ["updated_at", "2017-06-26 06:19:56.442770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.443541"], ["updated_at", "2017-06-26 06:19:56.443541"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.445726"], ["updated_at", "2017-06-26 06:19:56.445726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.446614"], ["updated_at", "2017-06-26 06:19:56.446614"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.449012"], ["updated_at", "2017-06-26 06:19:56.449012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.452415"], ["updated_at", "2017-06-26 06:19:56.452415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.470494"], ["updated_at", "2017-06-26 06:19:56.470494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.471429"], ["updated_at", "2017-06-26 06:19:56.471429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:19:56.476744"], ["updated_at", "2017-06-26 06:19:56.476744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:19:56.479045"], ["updated_at", "2017-06-26 06:19:56.479045"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.488624"], ["updated_at", "2017-06-26 06:19:56.488624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:19:56.494850"], ["updated_at", "2017-06-26 06:19:56.494850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:19:56.496601"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:19:56.498160"], ["updated_at", "2017-06-26 06:19:56.498160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:19:56.499016"], ["updated_at", "2017-06-26 06:19:56.499016"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.502991"], ["updated_at", "2017-06-26 06:19:56.502991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.503929"], ["updated_at", "2017-06-26 06:19:56.503929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.515688"], ["updated_at", "2017-06-26 06:19:56.515688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.633874"], ["updated_at", "2017-06-26 06:19:56.633874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:19:56.639320"], ["updated_at", "2017-06-26 06:19:56.639320"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:19:56.648024"], ["updated_at", "2017-06-26 06:19:56.648024"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:19:56.648920"], ["updated_at", "2017-06-26 06:19:56.648920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.661079"], ["updated_at", "2017-06-26 06:19:56.661079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.667065"], ["updated_at", "2017-06-26 06:19:56.667065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:19:56.669514"], ["updated_at", "2017-06-26 06:19:56.669514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.146701"], ["updated_at", "2017-06-26 06:20:04.146701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.173261"], ["updated_at", "2017-06-26 06:20:04.173261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.184071"], ["updated_at", "2017-06-26 06:20:04.184071"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.213673"], ["updated_at", "2017-06-26 06:20:04.213673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.214761"], ["updated_at", "2017-06-26 06:20:04.214761"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.216750"], ["updated_at", "2017-06-26 06:20:04.216750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.217597"], ["updated_at", "2017-06-26 06:20:04.217597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.228865"], ["updated_at", "2017-06-26 06:20:04.228865"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.231516"], ["updated_at", "2017-06-26 06:20:04.231516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.237371"], ["updated_at", "2017-06-26 06:20:04.237371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.238105"], ["updated_at", "2017-06-26 06:20:04.238105"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.244673"], ["updated_at", "2017-06-26 06:20:04.244673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.245458"], ["updated_at", "2017-06-26 06:20:04.245458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.248803"], ["updated_at", "2017-06-26 06:20:04.248803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.252587"], ["updated_at", "2017-06-26 06:20:04.252587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.254773"], ["updated_at", "2017-06-26 06:20:04.254773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.256983"], ["updated_at", "2017-06-26 06:20:04.256983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:20:04.263579"], ["updated_at", "2017-06-26 06:20:04.263579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:20:04.265862"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:20:04.267431"], ["updated_at", "2017-06-26 06:20:04.267431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:20:04.268324"], ["updated_at", "2017-06-26 06:20:04.268324"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.273393"], ["updated_at", "2017-06-26 06:20:04.273393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.280251"], ["updated_at", "2017-06-26 06:20:04.280251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.281485"], ["updated_at", "2017-06-26 06:20:04.281485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.284400"], ["updated_at", "2017-06-26 06:20:04.284400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.287855"], ["updated_at", "2017-06-26 06:20:04.287855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.288694"], ["updated_at", "2017-06-26 06:20:04.288694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.304627"], ["updated_at", "2017-06-26 06:20:04.304627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.305373"], ["updated_at", "2017-06-26 06:20:04.305373"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.307014"], ["updated_at", "2017-06-26 06:20:04.307014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:20:04.307699"], ["updated_at", "2017-06-26 06:20:04.307699"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.309859"], ["updated_at", "2017-06-26 06:20:04.309859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.310541"], ["updated_at", "2017-06-26 06:20:04.310541"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.313265"], ["updated_at", "2017-06-26 06:20:04.313265"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.315323"], ["updated_at", "2017-06-26 06:20:04.315323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.319854"], ["updated_at", "2017-06-26 06:20:04.319854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.324536"], ["updated_at", "2017-06-26 06:20:04.324536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.325372"], ["updated_at", "2017-06-26 06:20:04.325372"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.327671"], ["updated_at", "2017-06-26 06:20:04.327671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.328501"], ["updated_at", "2017-06-26 06:20:04.328501"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.331134"], ["updated_at", "2017-06-26 06:20:04.331134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.335827"], ["updated_at", "2017-06-26 06:20:04.335827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.338274"], ["updated_at", "2017-06-26 06:20:04.338274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.341676"], ["updated_at", "2017-06-26 06:20:04.341676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.344460"], ["updated_at", "2017-06-26 06:20:04.344460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.349122"], ["updated_at", "2017-06-26 06:20:04.349122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:20:04.354711"], ["updated_at", "2017-06-26 06:20:04.354711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:20:04.356732"], ["updated_at", "2017-06-26 06:20:04.356732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:20:04.374443"], ["updated_at", "2017-06-26 06:20:04.374443"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:20:04.375460"], ["updated_at", "2017-06-26 06:20:04.375460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.376267"], ["updated_at", "2017-06-26 06:20:04.376267"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:20:04.380272"], ["updated_at", "2017-06-26 06:20:04.380272"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.389424"], ["updated_at", "2017-06-26 06:20:04.389424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.390193"], ["updated_at", "2017-06-26 06:20:04.390193"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.392043"], ["updated_at", "2017-06-26 06:20:04.392043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.396050"], ["updated_at", "2017-06-26 06:20:04.396050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.397243"], ["updated_at", "2017-06-26 06:20:04.397243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:20:04.406600"], ["updated_at", "2017-06-26 06:20:04.406600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:20:04.407397"], ["updated_at", "2017-06-26 06:20:04.407397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:20:04.409037"], ["updated_at", "2017-06-26 06:20:04.409037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:20:04.409803"], ["updated_at", "2017-06-26 06:20:04.409803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.413655"], ["updated_at", "2017-06-26 06:20:04.413655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.418673"], ["updated_at", "2017-06-26 06:20:04.418673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.419424"], ["updated_at", "2017-06-26 06:20:04.419424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:20:04.432665"], ["updated_at", "2017-06-26 06:20:04.432665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.436663"], ["updated_at", "2017-06-26 06:20:04.436663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.437416"], ["updated_at", "2017-06-26 06:20:04.437416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.438078"], ["updated_at", "2017-06-26 06:20:04.438078"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.440525"], ["updated_at", "2017-06-26 06:20:04.440525"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.441358"], ["updated_at", "2017-06-26 06:20:04.441358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.442286"], ["updated_at", "2017-06-26 06:20:04.442286"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:20:04.444985"], ["updated_at", "2017-06-26 06:20:04.444985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:20:04.445896"], ["updated_at", "2017-06-26 06:20:04.445896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:20:04.447676"], ["updated_at", "2017-06-26 06:20:04.447676"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:20:04.448502"], ["updated_at", "2017-06-26 06:20:04.448502"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.456326"], ["updated_at", "2017-06-26 06:20:04.456326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.457277"], ["updated_at", "2017-06-26 06:20:04.457277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:20:04.525618"], ["updated_at", "2017-06-26 06:20:04.525618"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.541485"], ["updated_at", "2017-06-26 06:20:04.541485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.547312"], ["updated_at", "2017-06-26 06:20:04.547312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.550139"], ["updated_at", "2017-06-26 06:20:04.550139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:20:04.556414"], ["updated_at", "2017-06-26 06:20:04.556414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:20:04.557241"], ["updated_at", "2017-06-26 06:20:04.557241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:20:04.577292"], ["updated_at", "2017-06-26 06:20:04.577292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 9], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.634612"], ["updated_at", "2017-06-26 06:21:44.634612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.664444"], ["updated_at", "2017-06-26 06:21:44.664444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.665622"], ["updated_at", "2017-06-26 06:21:44.665622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.672836"], ["updated_at", "2017-06-26 06:21:44.672836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.678919"], ["updated_at", "2017-06-26 06:21:44.678919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.679952"], ["updated_at", "2017-06-26 06:21:44.679952"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.683005"], ["updated_at", "2017-06-26 06:21:44.683005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.687265"], ["updated_at", "2017-06-26 06:21:44.687265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.688113"], ["updated_at", "2017-06-26 06:21:44.688113"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:21:44.692826"], ["updated_at", "2017-06-26 06:21:44.692826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:21:44.693798"], ["updated_at", "2017-06-26 06:21:44.693798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:21:44.695907"], ["updated_at", "2017-06-26 06:21:44.695907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:21:44.696809"], ["updated_at", "2017-06-26 06:21:44.696809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.700243"], ["updated_at", "2017-06-26 06:21:44.700243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.703472"], ["updated_at", "2017-06-26 06:21:44.703472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.716148"], ["updated_at", "2017-06-26 06:21:44.716148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:21:44.736088"], ["updated_at", "2017-06-26 06:21:44.736088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.747928"], ["updated_at", "2017-06-26 06:21:44.747928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.750242"], ["updated_at", "2017-06-26 06:21:44.750242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:21:44.758219"], ["updated_at", "2017-06-26 06:21:44.758219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.763096"], ["updated_at", "2017-06-26 06:21:44.763096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.764033"], ["updated_at", "2017-06-26 06:21:44.764033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.764703"], ["updated_at", "2017-06-26 06:21:44.764703"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.767256"], ["updated_at", "2017-06-26 06:21:44.767256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.771938"], ["updated_at", "2017-06-26 06:21:44.771938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.772753"], ["updated_at", "2017-06-26 06:21:44.772753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.774868"], ["updated_at", "2017-06-26 06:21:44.774868"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.778546"], ["updated_at", "2017-06-26 06:21:44.778546"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.786454"], ["updated_at", "2017-06-26 06:21:44.786454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.787216"], ["updated_at", "2017-06-26 06:21:44.787216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.796759"], ["updated_at", "2017-06-26 06:21:44.796759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.801761"], ["updated_at", "2017-06-26 06:21:44.801761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.809587"], ["updated_at", "2017-06-26 06:21:44.809587"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:21:44.817444"], ["updated_at", "2017-06-26 06:21:44.817444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:21:44.818332"], ["updated_at", "2017-06-26 06:21:44.818332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:21:44.820230"], ["updated_at", "2017-06-26 06:21:44.820230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:21:44.821239"], ["updated_at", "2017-06-26 06:21:44.821239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.828915"], ["updated_at", "2017-06-26 06:21:44.828915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.829714"], ["updated_at", "2017-06-26 06:21:44.829714"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.831339"], ["updated_at", "2017-06-26 06:21:44.831339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.832036"], ["updated_at", "2017-06-26 06:21:44.832036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.840983"], ["updated_at", "2017-06-26 06:21:44.840983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.841844"], ["updated_at", "2017-06-26 06:21:44.841844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.842695"], ["updated_at", "2017-06-26 06:21:44.842695"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.845335"], ["updated_at", "2017-06-26 06:21:44.845335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.847423"], ["updated_at", "2017-06-26 06:21:44.847423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.850468"], ["updated_at", "2017-06-26 06:21:44.850468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.851190"], ["updated_at", "2017-06-26 06:21:44.851190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.854240"], ["updated_at", "2017-06-26 06:21:44.854240"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.856103"], ["updated_at", "2017-06-26 06:21:44.856103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.856866"], ["updated_at", "2017-06-26 06:21:44.856866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 4], ["test_another_model_id", 5]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.861661"], ["updated_at", "2017-06-26 06:21:44.861661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.862801"], ["updated_at", "2017-06-26 06:21:44.862801"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.865313"], ["updated_at", "2017-06-26 06:21:44.865313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.869034"], ["updated_at", "2017-06-26 06:21:44.869034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:21:44.869891"], ["updated_at", "2017-06-26 06:21:44.869891"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.872083"], ["updated_at", "2017-06-26 06:21:44.872083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.874727"], ["updated_at", "2017-06-26 06:21:44.874727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.876729"], ["updated_at", "2017-06-26 06:21:44.876729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:21:44.896129"], ["updated_at", "2017-06-26 06:21:44.896129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:21:44.897625"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:21:44.899175"], ["updated_at", "2017-06-26 06:21:44.899175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:21:44.900053"], ["updated_at", "2017-06-26 06:21:44.900053"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.904678"], ["updated_at", "2017-06-26 06:21:44.904678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.905688"], ["updated_at", "2017-06-26 06:21:44.905688"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.907600"], ["updated_at", "2017-06-26 06:21:44.907600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.908378"], ["updated_at", "2017-06-26 06:21:44.908378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:21:44.915937"], ["updated_at", "2017-06-26 06:21:44.915937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:21:44.922876"], ["updated_at", "2017-06-26 06:21:44.922876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:21:44.932188"], ["updated_at", "2017-06-26 06:21:44.932188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:21:44.933067"], ["updated_at", "2017-06-26 06:21:44.933067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.933757"], ["updated_at", "2017-06-26 06:21:44.933757"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.935399"], ["updated_at", "2017-06-26 06:21:44.935399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.936136"], ["updated_at", "2017-06-26 06:21:44.936136"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.938340"], ["updated_at", "2017-06-26 06:21:44.938340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.942545"], ["updated_at", "2017-06-26 06:21:44.942545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.943427"], ["updated_at", "2017-06-26 06:21:44.943427"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.966791"], ["updated_at", "2017-06-26 06:21:44.966791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.972059"], ["updated_at", "2017-06-26 06:21:44.972059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:44.974791"], ["updated_at", "2017-06-26 06:21:44.974791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:21:45.007726"], ["updated_at", "2017-06-26 06:21:45.007726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:21:45.008644"], ["updated_at", "2017-06-26 06:21:45.008644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:21:45.020098"], ["updated_at", "2017-06-26 06:21:45.020098"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:21:45.022662"], ["updated_at", "2017-06-26 06:21:45.022662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.341098"], ["updated_at", "2017-06-26 06:22:07.341098"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.382883"], ["updated_at", "2017-06-26 06:22:07.382883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.385379"], ["updated_at", "2017-06-26 06:22:07.385379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.388447"], ["updated_at", "2017-06-26 06:22:07.388447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.389469"], ["updated_at", "2017-06-26 06:22:07.389469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:22:07.403589"], ["updated_at", "2017-06-26 06:22:07.403589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.408046"], ["updated_at", "2017-06-26 06:22:07.408046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.410246"], ["updated_at", "2017-06-26 06:22:07.410246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.412232"], ["updated_at", "2017-06-26 06:22:07.412232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.415391"], ["updated_at", "2017-06-26 06:22:07.415391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.416177"], ["updated_at", "2017-06-26 06:22:07.416177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.435503"], ["updated_at", "2017-06-26 06:22:07.435503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.441098"], ["updated_at", "2017-06-26 06:22:07.441098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.447900"], ["updated_at", "2017-06-26 06:22:07.447900"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.454125"], ["updated_at", "2017-06-26 06:22:07.454125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.455074"], ["updated_at", "2017-06-26 06:22:07.455074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.456070"], ["updated_at", "2017-06-26 06:22:07.456070"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.471505"], ["updated_at", "2017-06-26 06:22:07.471505"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.472631"], ["updated_at", "2017-06-26 06:22:07.472631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.473889"], ["updated_at", "2017-06-26 06:22:07.473889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.474638"], ["updated_at", "2017-06-26 06:22:07.474638"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 3) OR (1=1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:22:07.476583"], ["updated_at", "2017-06-26 06:22:07.476583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:22:07.478779"], ["updated_at", "2017-06-26 06:22:07.478779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 6], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 5], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 6], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.489043"], ["updated_at", "2017-06-26 06:22:07.489043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.494855"], ["updated_at", "2017-06-26 06:22:07.494855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.495757"], ["updated_at", "2017-06-26 06:22:07.495757"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.498107"], ["updated_at", "2017-06-26 06:22:07.498107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.498879"], ["updated_at", "2017-06-26 06:22:07.498879"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.500530"], ["updated_at", "2017-06-26 06:22:07.500530"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.501325"], ["updated_at", "2017-06-26 06:22:07.501325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.506817"], ["updated_at", "2017-06-26 06:22:07.506817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.507892"], ["updated_at", "2017-06-26 06:22:07.507892"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.512790"], ["updated_at", "2017-06-26 06:22:07.512790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.513597"], ["updated_at", "2017-06-26 06:22:07.513597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.514310"], ["updated_at", "2017-06-26 06:22:07.514310"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.516628"], ["updated_at", "2017-06-26 06:22:07.516628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.517327"], ["updated_at", "2017-06-26 06:22:07.517327"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.519479"], ["updated_at", "2017-06-26 06:22:07.519479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.524348"], ["updated_at", "2017-06-26 06:22:07.524348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.529985"], ["updated_at", "2017-06-26 06:22:07.529985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.530861"], ["updated_at", "2017-06-26 06:22:07.530861"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.533225"], ["updated_at", "2017-06-26 06:22:07.533225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:22:07.537889"], ["updated_at", "2017-06-26 06:22:07.537889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:22:07.538964"], ["updated_at", "2017-06-26 06:22:07.538964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:22:07.541120"], ["updated_at", "2017-06-26 06:22:07.541120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:22:07.542055"], ["updated_at", "2017-06-26 06:22:07.542055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.549027"], ["updated_at", "2017-06-26 06:22:07.549027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.549888"], ["updated_at", "2017-06-26 06:22:07.549888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.552079"], ["updated_at", "2017-06-26 06:22:07.552079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:22:07.558851"], ["updated_at", "2017-06-26 06:22:07.558851"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:22:07.560907"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:22:07.562447"], ["updated_at", "2017-06-26 06:22:07.562447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:22:07.563300"], ["updated_at", "2017-06-26 06:22:07.563300"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.567025"], ["updated_at", "2017-06-26 06:22:07.567025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.569135"], ["updated_at", "2017-06-26 06:22:07.569135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.581937"], ["updated_at", "2017-06-26 06:22:07.581937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.582854"], ["updated_at", "2017-06-26 06:22:07.582854"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.592736"], ["updated_at", "2017-06-26 06:22:07.592736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.597730"], ["updated_at", "2017-06-26 06:22:07.597730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:22:07.598509"], ["updated_at", "2017-06-26 06:22:07.598509"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.600992"], ["updated_at", "2017-06-26 06:22:07.600992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.601727"], ["updated_at", "2017-06-26 06:22:07.601727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.603671"], ["updated_at", "2017-06-26 06:22:07.603671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:22:07.607118"], ["updated_at", "2017-06-26 06:22:07.607118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:22:07.607930"], ["updated_at", "2017-06-26 06:22:07.607930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:22:07.609464"], ["updated_at", "2017-06-26 06:22:07.609464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:22:07.610177"], ["updated_at", "2017-06-26 06:22:07.610177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.613218"], ["updated_at", "2017-06-26 06:22:07.613218"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.614943"], ["updated_at", "2017-06-26 06:22:07.614943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.615699"], ["updated_at", "2017-06-26 06:22:07.615699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:22:07.623830"], ["updated_at", "2017-06-26 06:22:07.623830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.637300"], ["updated_at", "2017-06-26 06:22:07.637300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.645556"], ["updated_at", "2017-06-26 06:22:07.645556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.648033"], ["updated_at", "2017-06-26 06:22:07.648033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:22:07.651154"], ["updated_at", "2017-06-26 06:22:07.651154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:22:07.651921"], ["updated_at", "2017-06-26 06:22:07.651921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.652604"], ["updated_at", "2017-06-26 06:22:07.652604"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.689744"], ["updated_at", "2017-06-26 06:22:07.689744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:22:07.702961"], ["updated_at", "2017-06-26 06:22:07.702961"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:22:07.714534"], ["updated_at", "2017-06-26 06:22:07.714534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:22:07.715384"], ["updated_at", "2017-06-26 06:22:07.715384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.729374"], ["updated_at", "2017-06-26 06:22:07.729374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.735758"], ["updated_at", "2017-06-26 06:22:07.735758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:07.739077"], ["updated_at", "2017-06-26 06:22:07.739077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:18.991048"], ["updated_at", "2017-06-26 06:22:18.991048"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.022281"], ["updated_at", "2017-06-26 06:22:19.022281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.025832"], ["updated_at", "2017-06-26 06:22:19.025832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:22:19.030497"], ["updated_at", "2017-06-26 06:22:19.030497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:22:19.031398"], ["updated_at", "2017-06-26 06:22:19.031398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:22:19.056563"], ["updated_at", "2017-06-26 06:22:19.056563"]]  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.064707"], ["updated_at", "2017-06-26 06:22:19.064707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.084278"], ["updated_at", "2017-06-26 06:22:19.084278"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 111]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.087537"], ["updated_at", "2017-06-26 06:22:19.087537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.088258"], ["updated_at", "2017-06-26 06:22:19.088258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.095653"], ["updated_at", "2017-06-26 06:22:19.095653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.096556"], ["updated_at", "2017-06-26 06:22:19.096556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.097618"], ["updated_at", "2017-06-26 06:22:19.097618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.098412"], ["updated_at", "2017-06-26 06:22:19.098412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.100675"], ["updated_at", "2017-06-26 06:22:19.100675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.112963"], ["updated_at", "2017-06-26 06:22:19.112963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 13]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.115751"], ["updated_at", "2017-06-26 06:22:19.115751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.119299"], ["updated_at", "2017-06-26 06:22:19.119299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.120050"], ["updated_at", "2017-06-26 06:22:19.120050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.120973"], ["updated_at", "2017-06-26 06:22:19.120973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 17]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.122846"], ["updated_at", "2017-06-26 06:22:19.122846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 18]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.125075"], ["updated_at", "2017-06-26 06:22:19.125075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.125747"], ["updated_at", "2017-06-26 06:22:19.125747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 19]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 20]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 19], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.129343"], ["updated_at", "2017-06-26 06:22:19.129343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.130069"], ["updated_at", "2017-06-26 06:22:19.130069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:22:19.131087"], ["updated_at", "2017-06-26 06:22:19.131087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:22:19.131803"], ["updated_at", "2017-06-26 06:22:19.131803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.132494"], ["updated_at", "2017-06-26 06:22:19.132494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.136392"], ["updated_at", "2017-06-26 06:22:19.136392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.137223"], ["updated_at", "2017-06-26 06:22:19.137223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.138284"], ["updated_at", "2017-06-26 06:22:19.138284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.139039"], ["updated_at", "2017-06-26 06:22:19.139039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.139907"], ["updated_at", "2017-06-26 06:22:19.139907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.141602"], ["updated_at", "2017-06-26 06:22:19.141602"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 31]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 31], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.145043"], ["updated_at", "2017-06-26 06:22:19.145043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.145934"], ["updated_at", "2017-06-26 06:22:19.145934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 32]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 32]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 32]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 33]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 32], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.152724"], ["updated_at", "2017-06-26 06:22:19.152724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 34]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.154672"], ["updated_at", "2017-06-26 06:22:19.154672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 35]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.157206"], ["updated_at", "2017-06-26 06:22:19.157206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.158216"], ["updated_at", "2017-06-26 06:22:19.158216"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.159955"], ["updated_at", "2017-06-26 06:22:19.159955"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.160852"], ["updated_at", "2017-06-26 06:22:19.160852"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.162703"], ["updated_at", "2017-06-26 06:22:19.162703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.168898"], ["updated_at", "2017-06-26 06:22:19.168898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.172979"], ["updated_at", "2017-06-26 06:22:19.172979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.173839"], ["updated_at", "2017-06-26 06:22:19.173839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.175604"], ["updated_at", "2017-06-26 06:22:19.175604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.176323"], ["updated_at", "2017-06-26 06:22:19.176323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 6], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.183820"], ["updated_at", "2017-06-26 06:22:19.183820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:22:19.187159"], ["updated_at", "2017-06-26 06:22:19.187159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:22:19.187930"], ["updated_at", "2017-06-26 06:22:19.187930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 8], ["test_another_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:22:19.189887"], ["updated_at", "2017-06-26 06:22:19.189887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:22:19.190631"], ["updated_at", "2017-06-26 06:22:19.190631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 10], ["test_another_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 10], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:22:19.197703"], ["updated_at", "2017-06-26 06:22:19.197703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.205084"], ["updated_at", "2017-06-26 06:22:19.205084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:22:19.205982"], ["updated_at", "2017-06-26 06:22:19.205982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:22:19.207134"], ["updated_at", "2017-06-26 06:22:19.207134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 15]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:22:19.209305"], ["updated_at", "2017-06-26 06:22:19.209305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 16], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 15], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:22:19.212803"], ["updated_at", "2017-06-26 06:22:19.212803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:22:19.213571"], ["updated_at", "2017-06-26 06:22:19.213571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 17], ["test_another_model_id", 18]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:22:19.215030"], ["updated_at", "2017-06-26 06:22:19.215030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:22:19.215772"], ["updated_at", "2017-06-26 06:22:19.215772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 19], ["test_another_model_id", 20]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 6], ["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 7], ["company_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.225814"], ["updated_at", "2017-06-26 06:22:19.225814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 21]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.227794"], ["updated_at", "2017-06-26 06:22:19.227794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 22]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.229724"], ["updated_at", "2017-06-26 06:22:19.229724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 23]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.231792"], ["updated_at", "2017-06-26 06:22:19.231792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.233006"], ["updated_at", "2017-06-26 06:22:19.233006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 25]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:22:19.239699"], ["updated_at", "2017-06-26 06:22:19.239699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.241937"], ["updated_at", "2017-06-26 06:22:19.241937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:22:19.246562"], ["updated_at", "2017-06-26 06:22:19.246562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:22:19.247647"], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:22:19.248608"], ["updated_at", "2017-06-26 06:22:19.248608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:22:19.249369"], ["updated_at", "2017-06-26 06:22:19.249369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.250741"], ["updated_at", "2017-06-26 06:22:19.250741"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.251855"], ["updated_at", "2017-06-26 06:22:19.251855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.252629"], ["updated_at", "2017-06-26 06:22:19.252629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.253697"], ["updated_at", "2017-06-26 06:22:19.253697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.256797"], ["updated_at", "2017-06-26 06:22:19.256797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.259534"], ["updated_at", "2017-06-26 06:22:19.259534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 6]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 9], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 10], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.272758"], ["updated_at", "2017-06-26 06:22:19.272758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.273746"], ["updated_at", "2017-06-26 06:22:19.273746"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.275221"], ["updated_at", "2017-06-26 06:22:19.275221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.276218"], ["updated_at", "2017-06-26 06:22:19.276218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:19.278750"], ["updated_at", "2017-06-26 06:22:19.278750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:22:48.570508"], ["updated_at", "2017-06-26 06:22:48.570508"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.612869"], ["updated_at", "2017-06-26 06:22:48.612869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:22:48.638562"], ["updated_at", "2017-06-26 06:22:48.638562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:22:48.639590"], ["updated_at", "2017-06-26 06:22:48.639590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.679482"], ["updated_at", "2017-06-26 06:22:48.679482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.685826"], ["updated_at", "2017-06-26 06:22:48.685826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.688780"], ["updated_at", "2017-06-26 06:22:48.688780"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:22:48.847798"], ["updated_at", "2017-06-26 06:22:48.847798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:22:48.848850"], ["updated_at", "2017-06-26 06:22:48.848850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.849535"], ["updated_at", "2017-06-26 06:22:48.849535"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.851427"], ["updated_at", "2017-06-26 06:22:48.851427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.852266"], ["updated_at", "2017-06-26 06:22:48.852266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.857709"], ["updated_at", "2017-06-26 06:22:48.857709"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.859272"], ["updated_at", "2017-06-26 06:22:48.859272"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.861971"], ["updated_at", "2017-06-26 06:22:48.861971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.862753"], ["updated_at", "2017-06-26 06:22:48.862753"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.867051"], ["updated_at", "2017-06-26 06:22:48.867051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.867853"], ["updated_at", "2017-06-26 06:22:48.867853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.868671"], ["updated_at", "2017-06-26 06:22:48.868671"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.870793"], ["updated_at", "2017-06-26 06:22:48.870793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.871460"], ["updated_at", "2017-06-26 06:22:48.871460"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.872934"], ["updated_at", "2017-06-26 06:22:48.872934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.873570"], ["updated_at", "2017-06-26 06:22:48.873570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.878344"], ["updated_at", "2017-06-26 06:22:48.878344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.879088"], ["updated_at", "2017-06-26 06:22:48.879088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.881612"], ["updated_at", "2017-06-26 06:22:48.881612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.884538"], ["updated_at", "2017-06-26 06:22:48.884538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.885264"], ["updated_at", "2017-06-26 06:22:48.885264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:22:48.894351"], ["updated_at", "2017-06-26 06:22:48.894351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:22:48.896357"], ["updated_at", "2017-06-26 06:22:48.896357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.905846"], ["updated_at", "2017-06-26 06:22:48.905846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.906636"], ["updated_at", "2017-06-26 06:22:48.906636"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.908333"], ["updated_at", "2017-06-26 06:22:48.908333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.909073"], ["updated_at", "2017-06-26 06:22:48.909073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.921735"], ["updated_at", "2017-06-26 06:22:48.921735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.923713"], ["updated_at", "2017-06-26 06:22:48.923713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.926433"], ["updated_at", "2017-06-26 06:22:48.926433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.927140"], ["updated_at", "2017-06-26 06:22:48.927140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.927778"], ["updated_at", "2017-06-26 06:22:48.927778"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.929873"], ["updated_at", "2017-06-26 06:22:48.929873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.935754"], ["updated_at", "2017-06-26 06:22:48.935754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.941087"], ["updated_at", "2017-06-26 06:22:48.941087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:22:48.950009"], ["updated_at", "2017-06-26 06:22:48.950009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.954000"], ["updated_at", "2017-06-26 06:22:48.954000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.967614"], ["updated_at", "2017-06-26 06:22:48.967614"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.968517"], ["updated_at", "2017-06-26 06:22:48.968517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.970633"], ["updated_at", "2017-06-26 06:22:48.970633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.973657"], ["updated_at", "2017-06-26 06:22:48.973657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:22:48.974456"], ["updated_at", "2017-06-26 06:22:48.974456"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:22:48.976569"], ["updated_at", "2017-06-26 06:22:48.976569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:22:48.977286"], ["updated_at", "2017-06-26 06:22:48.977286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:22:48.978730"], ["updated_at", "2017-06-26 06:22:48.978730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:22:48.979440"], ["updated_at", "2017-06-26 06:22:48.979440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.985773"], ["updated_at", "2017-06-26 06:22:48.985773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.988205"], ["updated_at", "2017-06-26 06:22:48.988205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.994010"], ["updated_at", "2017-06-26 06:22:48.994010"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.997378"], ["updated_at", "2017-06-26 06:22:48.997378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:48.999433"], ["updated_at", "2017-06-26 06:22:48.999433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.003988"], ["updated_at", "2017-06-26 06:22:49.003988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.010132"], ["updated_at", "2017-06-26 06:22:49.010132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.015407"], ["updated_at", "2017-06-26 06:22:49.015407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.016231"], ["updated_at", "2017-06-26 06:22:49.016231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.026140"], ["updated_at", "2017-06-26 06:22:49.026140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.030878"], ["updated_at", "2017-06-26 06:22:49.030878"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.032832"], ["updated_at", "2017-06-26 06:22:49.032832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.049034"], ["updated_at", "2017-06-26 06:22:49.049034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.050004"], ["updated_at", "2017-06-26 06:22:49.050004"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.052817"], ["updated_at", "2017-06-26 06:22:49.052817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.058058"], ["updated_at", "2017-06-26 06:22:49.058058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.058855"], ["updated_at", "2017-06-26 06:22:49.058855"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.061158"], ["updated_at", "2017-06-26 06:22:49.061158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.063825"], ["updated_at", "2017-06-26 06:22:49.063825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:22:49.067448"], ["updated_at", "2017-06-26 06:22:49.067448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:22:49.068356"], ["updated_at", "2017-06-26 06:22:49.068356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:22:49.070325"], ["updated_at", "2017-06-26 06:22:49.070325"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:22:49.071215"], ["updated_at", "2017-06-26 06:22:49.071215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.074721"], ["updated_at", "2017-06-26 06:22:49.074721"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.076242"], ["updated_at", "2017-06-26 06:22:49.076242"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:22:49.082120"], ["updated_at", "2017-06-26 06:22:49.082120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:22:49.084462"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:22:49.085731"], ["updated_at", "2017-06-26 06:22:49.085731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:22:49.086793"], ["updated_at", "2017-06-26 06:22:49.086793"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:22:49.090417"], ["updated_at", "2017-06-26 06:22:49.090417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:22:49.096005"], ["updated_at", "2017-06-26 06:22:49.096005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:31.868703"], ["updated_at", "2017-06-26 06:23:31.868703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:31.901924"], ["updated_at", "2017-06-26 06:23:31.901924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:31.905449"], ["updated_at", "2017-06-26 06:23:31.905449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:23:31.918029"], ["updated_at", "2017-06-26 06:23:31.918029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:23:31.919325"], ["updated_at", "2017-06-26 06:23:31.919325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:23:31.959319"], ["updated_at", "2017-06-26 06:23:31.959319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:31.962705"], ["updated_at", "2017-06-26 06:23:31.962705"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 4], ["LIMIT", 1]] ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.076400"], ["updated_at", "2017-06-26 06:23:32.076400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.079272"], ["updated_at", "2017-06-26 06:23:32.079272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.081359"], ["updated_at", "2017-06-26 06:23:32.081359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.083497"], ["updated_at", "2017-06-26 06:23:32.083497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.084870"], ["updated_at", "2017-06-26 06:23:32.084870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.085617"], ["updated_at", "2017-06-26 06:23:32.085617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:23:32.086562"], ["updated_at", "2017-06-26 06:23:32.086562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:23:32.087293"], ["updated_at", "2017-06-26 06:23:32.087293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 11], ["test_another_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:23:32.088987"], ["updated_at", "2017-06-26 06:23:32.088987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:23:32.089667"], ["updated_at", "2017-06-26 06:23:32.089667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 13], ["test_another_model_id", 14]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:23:32.091431"], ["updated_at", "2017-06-26 06:23:32.091431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:23:32.092134"], ["updated_at", "2017-06-26 06:23:32.092134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.092774"], ["updated_at", "2017-06-26 06:23:32.092774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.093755"], ["updated_at", "2017-06-26 06:23:32.093755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.094402"], ["updated_at", "2017-06-26 06:23:32.094402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 18]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.096204"], ["updated_at", "2017-06-26 06:23:32.096204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 20]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.098213"], ["updated_at", "2017-06-26 06:23:32.098213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.098934"], ["updated_at", "2017-06-26 06:23:32.098934"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:23:32.106091"], ["updated_at", "2017-06-26 06:23:32.106091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:23:32.112961"], ["updated_at", "2017-06-26 06:23:32.112961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:23:32.114063"], ["id", 24]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:23:32.115060"], ["updated_at", "2017-06-26 06:23:32.115060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:23:32.115888"], ["updated_at", "2017-06-26 06:23:32.115888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.117116"], ["updated_at", "2017-06-26 06:23:32.117116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.117811"], ["updated_at", "2017-06-26 06:23:32.117811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 27]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 28]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 27], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.122142"], ["updated_at", "2017-06-26 06:23:32.122142"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.123033"], ["updated_at", "2017-06-26 06:23:32.123033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.124172"], ["updated_at", "2017-06-26 06:23:32.124172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.124951"], ["updated_at", "2017-06-26 06:23:32.124951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 4], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.131606"], ["updated_at", "2017-06-26 06:23:32.131606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.133626"], ["updated_at", "2017-06-26 06:23:32.133626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.136044"], ["updated_at", "2017-06-26 06:23:32.136044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.138356"], ["updated_at", "2017-06-26 06:23:32.138356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.139066"], ["updated_at", "2017-06-26 06:23:32.139066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.142224"], ["updated_at", "2017-06-26 06:23:32.142224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.144230"], ["updated_at", "2017-06-26 06:23:32.144230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:23:32.146393"], ["updated_at", "2017-06-26 06:23:32.146393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:23:32.147113"], ["updated_at", "2017-06-26 06:23:32.147113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 12], ["test_another_model_id", 13]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:23:32.148966"], ["updated_at", "2017-06-26 06:23:32.148966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:23:32.149952"], ["updated_at", "2017-06-26 06:23:32.149952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 14], ["test_another_model_id", 15]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 14]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 14], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.153787"], ["updated_at", "2017-06-26 06:23:32.153787"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 16]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.156164"], ["updated_at", "2017-06-26 06:23:32.156164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.156861"], ["updated_at", "2017-06-26 06:23:32.156861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.157606"], ["updated_at", "2017-06-26 06:23:32.157606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.158512"], ["updated_at", "2017-06-26 06:23:32.158512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.159166"], ["updated_at", "2017-06-26 06:23:32.159166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.159796"], ["updated_at", "2017-06-26 06:23:32.159796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.160641"], ["updated_at", "2017-06-26 06:23:32.160641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.161342"], ["updated_at", "2017-06-26 06:23:32.161342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.162180"], ["updated_at", "2017-06-26 06:23:32.162180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 25]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 25]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 6], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 7], ["company_id", 4]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.174443"], ["updated_at", "2017-06-26 06:23:32.174443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.179269"], ["updated_at", "2017-06-26 06:23:32.179269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.182388"], ["updated_at", "2017-06-26 06:23:32.182388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.183294"], ["updated_at", "2017-06-26 06:23:32.183294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.184388"], ["updated_at", "2017-06-26 06:23:32.184388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 5], ["attr", 111]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.187320"], ["updated_at", "2017-06-26 06:23:32.187320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.191289"], ["updated_at", "2017-06-26 06:23:32.191289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.194124"], ["updated_at", "2017-06-26 06:23:32.194124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.194817"], ["updated_at", "2017-06-26 06:23:32.194817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 8], ["test_another_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.196493"], ["updated_at", "2017-06-26 06:23:32.196493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 10]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:23:32.199313"], ["updated_at", "2017-06-26 06:23:32.199313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 11]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:23:32.201855"], ["updated_at", "2017-06-26 06:23:32.201855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 12]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 12], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 11], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:23:32.213685"], ["updated_at", "2017-06-26 06:23:32.213685"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.215908"], ["updated_at", "2017-06-26 06:23:32.215908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.216953"], ["updated_at", "2017-06-26 06:23:32.216953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.218472"], ["updated_at", "2017-06-26 06:23:32.218472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:23:32.219279"], ["updated_at", "2017-06-26 06:23:32.219279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.220406"], ["updated_at", "2017-06-26 06:23:32.220406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.222683"], ["updated_at", "2017-06-26 06:23:32.222683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.225356"], ["updated_at", "2017-06-26 06:23:32.225356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.226103"], ["updated_at", "2017-06-26 06:23:32.226103"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.227938"], ["updated_at", "2017-06-26 06:23:32.227938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.230161"], ["updated_at", "2017-06-26 06:23:32.230161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.230970"], ["updated_at", "2017-06-26 06:23:32.230970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 5]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 8]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 6]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 9], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 10], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.247282"], ["updated_at", "2017-06-26 06:23:32.247282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.248100"], ["updated_at", "2017-06-26 06:23:32.248100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 7]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:23:32.255283"], ["updated_at", "2017-06-26 06:23:32.255283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.130433"], ["updated_at", "2017-06-26 06:28:49.130433"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.160261"], ["updated_at", "2017-06-26 06:28:49.160261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.163210"], ["updated_at", "2017-06-26 06:28:49.163210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.171207"], ["updated_at", "2017-06-26 06:28:49.171207"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.172312"], ["updated_at", "2017-06-26 06:28:49.172312"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:28:49.180072"], ["updated_at", "2017-06-26 06:28:49.180072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.192082"], ["updated_at", "2017-06-26 06:28:49.192082"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.193184"], ["updated_at", "2017-06-26 06:28:49.193184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:28:49.204719"], ["updated_at", "2017-06-26 06:28:49.204719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:28:49.207081"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:28:49.208637"], ["updated_at", "2017-06-26 06:28:49.208637"]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:28:49.210239"], ["updated_at", "2017-06-26 06:28:49.210239"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.216164"], ["updated_at", "2017-06-26 06:28:49.216164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.222888"], ["updated_at", "2017-06-26 06:28:49.222888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.223895"], ["updated_at", "2017-06-26 06:28:49.223895"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.225950"], ["updated_at", "2017-06-26 06:28:49.225950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:28:49.226924"], ["updated_at", "2017-06-26 06:28:49.226924"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.230271"], ["updated_at", "2017-06-26 06:28:49.230271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.231206"], ["updated_at", "2017-06-26 06:28:49.231206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.233852"], ["updated_at", "2017-06-26 06:28:49.233852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.241539"], ["updated_at", "2017-06-26 06:28:49.241539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.244105"], ["updated_at", "2017-06-26 06:28:49.244105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:28:49.249249"], ["updated_at", "2017-06-26 06:28:49.249249"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.268371"], ["updated_at", "2017-06-26 06:28:49.268371"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.269402"], ["updated_at", "2017-06-26 06:28:49.269402"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.270396"], ["updated_at", "2017-06-26 06:28:49.270396"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.273301"], ["updated_at", "2017-06-26 06:28:49.273301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.274155"], ["updated_at", "2017-06-26 06:28:49.274155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.283319"], ["updated_at", "2017-06-26 06:28:49.283319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.288873"], ["updated_at", "2017-06-26 06:28:49.288873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.289919"], ["updated_at", "2017-06-26 06:28:49.289919"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.292360"], ["updated_at", "2017-06-26 06:28:49.292360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.298807"], ["updated_at", "2017-06-26 06:28:49.298807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.305828"], ["updated_at", "2017-06-26 06:28:49.305828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.323365"], ["updated_at", "2017-06-26 06:28:49.323365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.324306"], ["updated_at", "2017-06-26 06:28:49.324306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.331712"], ["updated_at", "2017-06-26 06:28:49.331712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.332480"], ["updated_at", "2017-06-26 06:28:49.332480"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.334736"], ["updated_at", "2017-06-26 06:28:49.334736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.335528"], ["updated_at", "2017-06-26 06:28:49.335528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:28:49.346139"], ["updated_at", "2017-06-26 06:28:49.346139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:28:49.347198"], ["updated_at", "2017-06-26 06:28:49.347198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.348126"], ["updated_at", "2017-06-26 06:28:49.348126"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.351025"], ["updated_at", "2017-06-26 06:28:49.351025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.358781"], ["updated_at", "2017-06-26 06:28:49.358781"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.362482"], ["updated_at", "2017-06-26 06:28:49.362482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.364721"], ["updated_at", "2017-06-26 06:28:49.364721"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.367535"], ["updated_at", "2017-06-26 06:28:49.367535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.368236"], ["updated_at", "2017-06-26 06:28:49.368236"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.370465"], ["updated_at", "2017-06-26 06:28:49.370465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.371275"], ["updated_at", "2017-06-26 06:28:49.371275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:28:49.381000"], ["updated_at", "2017-06-26 06:28:49.381000"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:28:49.382126"], ["updated_at", "2017-06-26 06:28:49.382126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:28:49.384064"], ["updated_at", "2017-06-26 06:28:49.384064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:28:49.385081"], ["updated_at", "2017-06-26 06:28:49.385081"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.388677"], ["updated_at", "2017-06-26 06:28:49.388677"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.390407"], ["updated_at", "2017-06-26 06:28:49.390407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.391064"], ["updated_at", "2017-06-26 06:28:49.391064"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.391908"], ["updated_at", "2017-06-26 06:28:49.391908"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.394203"], ["updated_at", "2017-06-26 06:28:49.394203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.394944"], ["updated_at", "2017-06-26 06:28:49.394944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.396876"], ["updated_at", "2017-06-26 06:28:49.396876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:28:49.417528"], ["updated_at", "2017-06-26 06:28:49.417528"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:28:49.420933"], ["updated_at", "2017-06-26 06:28:49.420933"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.430369"], ["updated_at", "2017-06-26 06:28:49.430369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.443193"], ["updated_at", "2017-06-26 06:28:49.443193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.447900"], ["updated_at", "2017-06-26 06:28:49.447900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.451712"], ["updated_at", "2017-06-26 06:28:49.451712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.454302"], ["updated_at", "2017-06-26 06:28:49.454302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:28:49.457742"], ["updated_at", "2017-06-26 06:28:49.457742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:28:49.458558"], ["updated_at", "2017-06-26 06:28:49.458558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:28:49.460346"], ["updated_at", "2017-06-26 06:28:49.460346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:28:49.461179"], ["updated_at", "2017-06-26 06:28:49.461179"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.467449"], ["updated_at", "2017-06-26 06:28:49.467449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.468274"], ["updated_at", "2017-06-26 06:28:49.468274"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.469893"], ["updated_at", "2017-06-26 06:28:49.469893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.470674"], ["updated_at", "2017-06-26 06:28:49.470674"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:28:49.649005"], ["updated_at", "2017-06-26 06:28:49.649005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:28:49.649994"], ["updated_at", "2017-06-26 06:28:49.649994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:28:49.663107"], ["updated_at", "2017-06-26 06:28:49.663107"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.684704"], ["updated_at", "2017-06-26 06:28:49.684704"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.691117"], ["updated_at", "2017-06-26 06:28:49.691117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.696412"], ["updated_at", "2017-06-26 06:28:49.696412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:28:49.699141"], ["updated_at", "2017-06-26 06:28:49.699141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:13.931586"], ["updated_at", "2017-06-26 06:29:13.931586"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:13.940431"], ["updated_at", "2017-06-26 06:29:13.940431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:13.941328"], ["updated_at", "2017-06-26 06:29:13.941328"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:13.970024"], ["updated_at", "2017-06-26 06:29:13.970024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:13.971101"], ["updated_at", "2017-06-26 06:29:13.971101"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:13.973317"], ["updated_at", "2017-06-26 06:29:13.973317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:13.974231"], ["updated_at", "2017-06-26 06:29:13.974231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:29:13.986736"], ["updated_at", "2017-06-26 06:29:13.986736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:29:13.988082"], ["updated_at", "2017-06-26 06:29:13.988082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:29:13.990389"], ["updated_at", "2017-06-26 06:29:13.990389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:29:13.991426"], ["updated_at", "2017-06-26 06:29:13.991426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.001863"], ["updated_at", "2017-06-26 06:29:14.001863"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.003475"], ["updated_at", "2017-06-26 06:29:14.003475"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.010241"], ["updated_at", "2017-06-26 06:29:14.010241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.015758"], ["updated_at", "2017-06-26 06:29:14.015758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:29:14.045432"], ["updated_at", "2017-06-26 06:29:14.045432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:29:14.046443"], ["updated_at", "2017-06-26 06:29:14.046443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:29:14.048495"], ["updated_at", "2017-06-26 06:29:14.048495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:29:14.049408"], ["updated_at", "2017-06-26 06:29:14.049408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.053678"], ["updated_at", "2017-06-26 06:29:14.053678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.054616"], ["updated_at", "2017-06-26 06:29:14.054616"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:29:14.057349"], ["updated_at", "2017-06-26 06:29:14.057349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:29:14.058226"], ["updated_at", "2017-06-26 06:29:14.058226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.059085"], ["updated_at", "2017-06-26 06:29:14.059085"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.061057"], ["updated_at", "2017-06-26 06:29:14.061057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.061925"], ["updated_at", "2017-06-26 06:29:14.061925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.072419"], ["updated_at", "2017-06-26 06:29:14.072419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.078359"], ["updated_at", "2017-06-26 06:29:14.078359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.084471"], ["updated_at", "2017-06-26 06:29:14.084471"]]  (0.0ms) commit transaction  (7.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.095007"], ["updated_at", "2017-06-26 06:29:14.095007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.097240"], ["updated_at", "2017-06-26 06:29:14.097240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.100907"], ["updated_at", "2017-06-26 06:29:14.100907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.101842"], ["updated_at", "2017-06-26 06:29:14.101842"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.102763"], ["updated_at", "2017-06-26 06:29:14.102763"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.106137"], ["updated_at", "2017-06-26 06:29:14.106137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.107038"], ["updated_at", "2017-06-26 06:29:14.107038"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.108710"], ["updated_at", "2017-06-26 06:29:14.108710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.109519"], ["updated_at", "2017-06-26 06:29:14.109519"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.110314"], ["updated_at", "2017-06-26 06:29:14.110314"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.112673"], ["updated_at", "2017-06-26 06:29:14.112673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.116995"], ["updated_at", "2017-06-26 06:29:14.116995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.117966"], ["updated_at", "2017-06-26 06:29:14.117966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.121522"], ["updated_at", "2017-06-26 06:29:14.121522"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.125319"], ["updated_at", "2017-06-26 06:29:14.125319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:29:14.126122"], ["updated_at", "2017-06-26 06:29:14.126122"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.128532"], ["updated_at", "2017-06-26 06:29:14.128532"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.129413"], ["updated_at", "2017-06-26 06:29:14.129413"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.141365"], ["updated_at", "2017-06-26 06:29:14.141365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.142221"], ["updated_at", "2017-06-26 06:29:14.142221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.147953"], ["updated_at", "2017-06-26 06:29:14.147953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.150220"], ["updated_at", "2017-06-26 06:29:14.150220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.153834"], ["updated_at", "2017-06-26 06:29:14.153834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.156296"], ["updated_at", "2017-06-26 06:29:14.156296"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.160531"], ["updated_at", "2017-06-26 06:29:14.160531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.161398"], ["updated_at", "2017-06-26 06:29:14.161398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.163384"], ["updated_at", "2017-06-26 06:29:14.163384"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:29:14.172106"], ["updated_at", "2017-06-26 06:29:14.172106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.180114"], ["updated_at", "2017-06-26 06:29:14.180114"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.188561"], ["updated_at", "2017-06-26 06:29:14.188561"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.189487"], ["updated_at", "2017-06-26 06:29:14.189487"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:29:14.195471"], ["updated_at", "2017-06-26 06:29:14.195471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 06:29:14.198049"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:29:14.199730"], ["updated_at", "2017-06-26 06:29:14.199730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:29:14.200794"], ["updated_at", "2017-06-26 06:29:14.200794"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.206194"], ["updated_at", "2017-06-26 06:29:14.206194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.214482"], ["updated_at", "2017-06-26 06:29:14.214482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.222940"], ["updated_at", "2017-06-26 06:29:14.222940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.226363"], ["updated_at", "2017-06-26 06:29:14.226363"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.229852"], ["updated_at", "2017-06-26 06:29:14.229852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.230940"], ["updated_at", "2017-06-26 06:29:14.230940"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.234002"], ["updated_at", "2017-06-26 06:29:14.234002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:29:14.240842"], ["updated_at", "2017-06-26 06:29:14.240842"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:29:14.251822"], ["updated_at", "2017-06-26 06:29:14.251822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:29:14.254595"], ["updated_at", "2017-06-26 06:29:14.254595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.266059"], ["updated_at", "2017-06-26 06:29:14.266059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.266996"], ["updated_at", "2017-06-26 06:29:14.266996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.278220"], ["updated_at", "2017-06-26 06:29:14.278220"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:29:14.427952"], ["updated_at", "2017-06-26 06:29:14.427952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:29:14.428849"], ["updated_at", "2017-06-26 06:29:14.428849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.459572"], ["updated_at", "2017-06-26 06:29:14.459572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.464883"], ["updated_at", "2017-06-26 06:29:14.464883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.467712"], ["updated_at", "2017-06-26 06:29:14.467712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:29:14.474155"], ["updated_at", "2017-06-26 06:29:14.474155"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:29:14.476621"], ["updated_at", "2017-06-26 06:29:14.476621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:09.851938"], ["updated_at", "2017-06-26 06:31:09.851938"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:31:09.895207"], ["updated_at", "2017-06-26 06:31:09.895207"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.2ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:09.926495"], ["updated_at", "2017-06-26 06:31:09.926495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:09.932871"], ["updated_at", "2017-06-26 06:31:09.932871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:09.936323"], ["updated_at", "2017-06-26 06:31:09.936323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:31:09.948546"], ["updated_at", "2017-06-26 06:31:09.948546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:31:09.949481"], ["updated_at", "2017-06-26 06:31:09.949481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.016310"], ["updated_at", "2017-06-26 06:31:10.016310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.019702"], ["updated_at", "2017-06-26 06:31:10.019702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.021868"], ["updated_at", "2017-06-26 06:31:10.021868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.025522"], ["updated_at", "2017-06-26 06:31:10.025522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.030324"], ["updated_at", "2017-06-26 06:31:10.030324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.031388"], ["updated_at", "2017-06-26 06:31:10.031388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.046531"], ["updated_at", "2017-06-26 06:31:10.046531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.047409"], ["updated_at", "2017-06-26 06:31:10.047409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.057545"], ["updated_at", "2017-06-26 06:31:10.057545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.058433"], ["updated_at", "2017-06-26 06:31:10.058433"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.061024"], ["updated_at", "2017-06-26 06:31:10.061024"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:31:10.068336"], ["updated_at", "2017-06-26 06:31:10.068336"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:31:10.084109"], ["updated_at", "2017-06-26 06:31:10.084109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:31:10.089180"], ["updated_at", "2017-06-26 06:31:10.089180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:31:10.091338"], ["updated_at", "2017-06-26 06:31:10.091338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.108062"], ["updated_at", "2017-06-26 06:31:10.108062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.113623"], ["updated_at", "2017-06-26 06:31:10.113623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.114447"], ["updated_at", "2017-06-26 06:31:10.114447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.115246"], ["updated_at", "2017-06-26 06:31:10.115246"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.118809"], ["updated_at", "2017-06-26 06:31:10.118809"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.125051"], ["updated_at", "2017-06-26 06:31:10.125051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.131790"], ["updated_at", "2017-06-26 06:31:10.131790"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.140300"], ["updated_at", "2017-06-26 06:31:10.140300"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.141337"], ["updated_at", "2017-06-26 06:31:10.141337"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:31:10.144137"], ["updated_at", "2017-06-26 06:31:10.144137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:31:10.145779"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:31:10.147214"], ["updated_at", "2017-06-26 06:31:10.147214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:31:10.148127"], ["updated_at", "2017-06-26 06:31:10.148127"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.152950"], ["updated_at", "2017-06-26 06:31:10.152950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.155585"], ["updated_at", "2017-06-26 06:31:10.155585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.161091"], ["updated_at", "2017-06-26 06:31:10.161091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.161931"], ["updated_at", "2017-06-26 06:31:10.161931"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.164407"], ["updated_at", "2017-06-26 06:31:10.164407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.166623"], ["updated_at", "2017-06-26 06:31:10.166623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.171146"], ["updated_at", "2017-06-26 06:31:10.171146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:31:10.180696"], ["updated_at", "2017-06-26 06:31:10.180696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:31:10.181718"], ["updated_at", "2017-06-26 06:31:10.181718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:31:10.183521"], ["updated_at", "2017-06-26 06:31:10.183521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:31:10.184373"], ["updated_at", "2017-06-26 06:31:10.184373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:31:10.193555"], ["updated_at", "2017-06-26 06:31:10.193555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:31:10.194523"], ["updated_at", "2017-06-26 06:31:10.194523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:31:10.196304"], ["updated_at", "2017-06-26 06:31:10.196304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:31:10.197169"], ["updated_at", "2017-06-26 06:31:10.197169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.200729"], ["updated_at", "2017-06-26 06:31:10.200729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.201638"], ["updated_at", "2017-06-26 06:31:10.201638"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.204758"], ["updated_at", "2017-06-26 06:31:10.204758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.205924"], ["updated_at", "2017-06-26 06:31:10.205924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.206974"], ["updated_at", "2017-06-26 06:31:10.206974"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.209857"], ["updated_at", "2017-06-26 06:31:10.209857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.210718"], ["updated_at", "2017-06-26 06:31:10.210718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.221515"], ["updated_at", "2017-06-26 06:31:10.221515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.222293"], ["updated_at", "2017-06-26 06:31:10.222293"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.224729"], ["updated_at", "2017-06-26 06:31:10.224729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.225542"], ["updated_at", "2017-06-26 06:31:10.225542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.227651"], ["updated_at", "2017-06-26 06:31:10.227651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.230971"], ["updated_at", "2017-06-26 06:31:10.230971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.233199"], ["updated_at", "2017-06-26 06:31:10.233199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.237099"], ["updated_at", "2017-06-26 06:31:10.237099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.238132"], ["updated_at", "2017-06-26 06:31:10.238132"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.240354"], ["updated_at", "2017-06-26 06:31:10.240354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.244252"], ["updated_at", "2017-06-26 06:31:10.244252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.245371"], ["updated_at", "2017-06-26 06:31:10.245371"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.248380"], ["updated_at", "2017-06-26 06:31:10.248380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.249243"], ["updated_at", "2017-06-26 06:31:10.249243"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.252069"], ["updated_at", "2017-06-26 06:31:10.252069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.256755"], ["updated_at", "2017-06-26 06:31:10.256755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:31:10.257547"], ["updated_at", "2017-06-26 06:31:10.257547"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:31:10.260268"], ["updated_at", "2017-06-26 06:31:10.260268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:31:10.269397"], ["updated_at", "2017-06-26 06:31:10.269397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.270358"], ["updated_at", "2017-06-26 06:31:10.270358"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.273500"], ["updated_at", "2017-06-26 06:31:10.273500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.294886"], ["updated_at", "2017-06-26 06:31:10.294886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.295856"], ["updated_at", "2017-06-26 06:31:10.295856"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.300968"], ["updated_at", "2017-06-26 06:31:10.300968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.301762"], ["updated_at", "2017-06-26 06:31:10.301762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.306784"], ["updated_at", "2017-06-26 06:31:10.306784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:31:10.310188"], ["updated_at", "2017-06-26 06:31:10.310188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) SQL (1.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.352425"], ["updated_at", "2017-06-26 06:32:40.352425"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.382711"], ["updated_at", "2017-06-26 06:32:40.382711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.398844"], ["updated_at", "2017-06-26 06:32:40.398844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.399762"], ["updated_at", "2017-06-26 06:32:40.399762"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.402117"], ["updated_at", "2017-06-26 06:32:40.402117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:32:40.409810"], ["updated_at", "2017-06-26 06:32:40.409810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.413645"], ["updated_at", "2017-06-26 06:32:40.413645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.415598"], ["updated_at", "2017-06-26 06:32:40.415598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:32:40.418709"], ["updated_at", "2017-06-26 06:32:40.418709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:32:40.419542"], ["updated_at", "2017-06-26 06:32:40.419542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:32:40.422403"], ["updated_at", "2017-06-26 06:32:40.422403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:32:40.423376"], ["updated_at", "2017-06-26 06:32:40.423376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.435286"], ["updated_at", "2017-06-26 06:32:40.435286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.436487"], ["updated_at", "2017-06-26 06:32:40.436487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.437503"], ["updated_at", "2017-06-26 06:32:40.437503"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.440706"], ["updated_at", "2017-06-26 06:32:40.440706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.443010"], ["updated_at", "2017-06-26 06:32:40.443010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.448426"], ["updated_at", "2017-06-26 06:32:40.448426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.449420"], ["updated_at", "2017-06-26 06:32:40.449420"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.452009"], ["updated_at", "2017-06-26 06:32:40.452009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.454684"], ["updated_at", "2017-06-26 06:32:40.454684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.458403"], ["updated_at", "2017-06-26 06:32:40.458403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.459480"], ["updated_at", "2017-06-26 06:32:40.459480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.461645"], ["updated_at", "2017-06-26 06:32:40.461645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.465328"], ["updated_at", "2017-06-26 06:32:40.465328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.466143"], ["updated_at", "2017-06-26 06:32:40.466143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.466768"], ["updated_at", "2017-06-26 06:32:40.466768"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.2ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:32:40.494369"], ["updated_at", "2017-06-26 06:32:40.494369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.3ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.507754"], ["updated_at", "2017-06-26 06:32:40.507754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.508985"], ["updated_at", "2017-06-26 06:32:40.508985"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.511617"], ["updated_at", "2017-06-26 06:32:40.511617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.512625"], ["updated_at", "2017-06-26 06:32:40.512625"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.514841"], ["updated_at", "2017-06-26 06:32:40.514841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.515692"], ["updated_at", "2017-06-26 06:32:40.515692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:32:40.542189"], ["updated_at", "2017-06-26 06:32:40.542189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:32:40.542974"], ["updated_at", "2017-06-26 06:32:40.542974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:32:40.544560"], ["updated_at", "2017-06-26 06:32:40.544560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:32:40.545383"], ["updated_at", "2017-06-26 06:32:40.545383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.548321"], ["updated_at", "2017-06-26 06:32:40.548321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.549030"], ["updated_at", "2017-06-26 06:32:40.549030"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.551067"], ["updated_at", "2017-06-26 06:32:40.551067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.551758"], ["updated_at", "2017-06-26 06:32:40.551758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.562412"], ["updated_at", "2017-06-26 06:32:40.562412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.565981"], ["updated_at", "2017-06-26 06:32:40.565981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.566719"], ["updated_at", "2017-06-26 06:32:40.566719"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.568912"], ["updated_at", "2017-06-26 06:32:40.568912"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.569686"], ["updated_at", "2017-06-26 06:32:40.569686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:32:40.579141"], ["updated_at", "2017-06-26 06:32:40.579141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:32:40.580113"], ["updated_at", "2017-06-26 06:32:40.580113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.580869"], ["updated_at", "2017-06-26 06:32:40.580869"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.582897"], ["updated_at", "2017-06-26 06:32:40.582897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.587712"], ["updated_at", "2017-06-26 06:32:40.587712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.588714"], ["updated_at", "2017-06-26 06:32:40.588714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.590763"], ["updated_at", "2017-06-26 06:32:40.590763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:32:40.597132"], ["updated_at", "2017-06-26 06:32:40.597132"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:32:40.598329"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:32:40.599682"], ["updated_at", "2017-06-26 06:32:40.599682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:32:40.600518"], ["updated_at", "2017-06-26 06:32:40.600518"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.603889"], ["updated_at", "2017-06-26 06:32:40.603889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:32:40.604921"], ["updated_at", "2017-06-26 06:32:40.604921"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.607390"], ["updated_at", "2017-06-26 06:32:40.607390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.608150"], ["updated_at", "2017-06-26 06:32:40.608150"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.610477"], ["updated_at", "2017-06-26 06:32:40.610477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.611425"], ["updated_at", "2017-06-26 06:32:40.611425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.620606"], ["updated_at", "2017-06-26 06:32:40.620606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.624586"], ["updated_at", "2017-06-26 06:32:40.624586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.629238"], ["updated_at", "2017-06-26 06:32:40.629238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.632445"], ["updated_at", "2017-06-26 06:32:40.632445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.633206"], ["updated_at", "2017-06-26 06:32:40.633206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.637653"], ["updated_at", "2017-06-26 06:32:40.637653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.639685"], ["updated_at", "2017-06-26 06:32:40.639685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.641581"], ["updated_at", "2017-06-26 06:32:40.641581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:32:40.644924"], ["updated_at", "2017-06-26 06:32:40.644924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:32:40.646757"], ["updated_at", "2017-06-26 06:32:40.646757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.656317"], ["updated_at", "2017-06-26 06:32:40.656317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.661563"], ["updated_at", "2017-06-26 06:32:40.661563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.665616"], ["updated_at", "2017-06-26 06:32:40.665616"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.739349"], ["updated_at", "2017-06-26 06:32:40.739349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.744108"], ["updated_at", "2017-06-26 06:32:40.744108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.749178"], ["updated_at", "2017-06-26 06:32:40.749178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:40.751637"], ["updated_at", "2017-06-26 06:32:40.751637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:32:40.759159"], ["updated_at", "2017-06-26 06:32:40.759159"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:32:40.761600"], ["updated_at", "2017-06-26 06:32:40.761600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:32:40.762307"], ["updated_at", "2017-06-26 06:32:40.762307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:32:44.023507"], ["updated_at", "2017-06-26 06:32:44.023507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:32:44.024810"], ["updated_at", "2017-06-26 06:32:44.024810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.3ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:32:44.088539"], ["updated_at", "2017-06-26 06:32:44.088539"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.122476"], ["updated_at", "2017-06-26 06:32:44.122476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.128370"], ["updated_at", "2017-06-26 06:32:44.128370"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.135141"], ["updated_at", "2017-06-26 06:32:44.135141"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.138344"], ["updated_at", "2017-06-26 06:32:44.138344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.156479"], ["updated_at", "2017-06-26 06:32:44.156479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.157499"], ["updated_at", "2017-06-26 06:32:44.157499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.158318"], ["updated_at", "2017-06-26 06:32:44.158318"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.161034"], ["updated_at", "2017-06-26 06:32:44.161034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.161923"], ["updated_at", "2017-06-26 06:32:44.161923"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:32:44.164852"], ["updated_at", "2017-06-26 06:32:44.164852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:32:44.165689"], ["updated_at", "2017-06-26 06:32:44.165689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:32:44.167762"], ["updated_at", "2017-06-26 06:32:44.167762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:32:44.168628"], ["updated_at", "2017-06-26 06:32:44.168628"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.180974"], ["updated_at", "2017-06-26 06:32:44.180974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.183981"], ["updated_at", "2017-06-26 06:32:44.183981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.186517"], ["updated_at", "2017-06-26 06:32:44.186517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.190326"], ["updated_at", "2017-06-26 06:32:44.190326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.191183"], ["updated_at", "2017-06-26 06:32:44.191183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.193621"], ["updated_at", "2017-06-26 06:32:44.193621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.199471"], ["updated_at", "2017-06-26 06:32:44.199471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.200535"], ["updated_at", "2017-06-26 06:32:44.200535"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.203843"], ["updated_at", "2017-06-26 06:32:44.203843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.205025"], ["updated_at", "2017-06-26 06:32:44.205025"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:32:44.212414"], ["updated_at", "2017-06-26 06:32:44.212414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.224018"], ["updated_at", "2017-06-26 06:32:44.224018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.225008"], ["updated_at", "2017-06-26 06:32:44.225008"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.230176"], ["updated_at", "2017-06-26 06:32:44.230176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.235999"], ["updated_at", "2017-06-26 06:32:44.235999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.236898"], ["updated_at", "2017-06-26 06:32:44.236898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.247444"], ["updated_at", "2017-06-26 06:32:44.247444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.253405"], ["updated_at", "2017-06-26 06:32:44.253405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.260617"], ["updated_at", "2017-06-26 06:32:44.260617"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:32:44.267672"], ["updated_at", "2017-06-26 06:32:44.267672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:32:44.269246"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:32:44.270286"], ["updated_at", "2017-06-26 06:32:44.270286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:32:44.271348"], ["updated_at", "2017-06-26 06:32:44.271348"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:32:44.275993"], ["updated_at", "2017-06-26 06:32:44.275993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:32:44.277129"], ["updated_at", "2017-06-26 06:32:44.277129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:32:44.279073"], ["updated_at", "2017-06-26 06:32:44.279073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:32:44.280159"], ["updated_at", "2017-06-26 06:32:44.280159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.283843"], ["updated_at", "2017-06-26 06:32:44.283843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.287881"], ["updated_at", "2017-06-26 06:32:44.287881"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.288788"], ["updated_at", "2017-06-26 06:32:44.288788"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.291618"], ["updated_at", "2017-06-26 06:32:44.291618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:32:44.292351"], ["updated_at", "2017-06-26 06:32:44.292351"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.294943"], ["updated_at", "2017-06-26 06:32:44.294943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.297726"], ["updated_at", "2017-06-26 06:32:44.297726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.301645"], ["updated_at", "2017-06-26 06:32:44.301645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.302538"], ["updated_at", "2017-06-26 06:32:44.302538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.317636"], ["updated_at", "2017-06-26 06:32:44.317636"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.319978"], ["updated_at", "2017-06-26 06:32:44.319978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.325138"], ["updated_at", "2017-06-26 06:32:44.325138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.328754"], ["updated_at", "2017-06-26 06:32:44.328754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.331037"], ["updated_at", "2017-06-26 06:32:44.331037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.334325"], ["updated_at", "2017-06-26 06:32:44.334325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.335121"], ["updated_at", "2017-06-26 06:32:44.335121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.336957"], ["updated_at", "2017-06-26 06:32:44.336957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:32:44.340431"], ["updated_at", "2017-06-26 06:32:44.340431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:32:44.341315"], ["updated_at", "2017-06-26 06:32:44.341315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.342071"], ["updated_at", "2017-06-26 06:32:44.342071"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.344084"], ["updated_at", "2017-06-26 06:32:44.344084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.351208"], ["updated_at", "2017-06-26 06:32:44.351208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.355278"], ["updated_at", "2017-06-26 06:32:44.355278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.357699"], ["updated_at", "2017-06-26 06:32:44.357699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.368658"], ["updated_at", "2017-06-26 06:32:44.368658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:32:44.377588"], ["updated_at", "2017-06-26 06:32:44.377588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.381852"], ["updated_at", "2017-06-26 06:32:44.381852"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.382837"], ["updated_at", "2017-06-26 06:32:44.382837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.387781"], ["updated_at", "2017-06-26 06:32:44.387781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.388558"], ["updated_at", "2017-06-26 06:32:44.388558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.393587"], ["updated_at", "2017-06-26 06:32:44.393587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.394521"], ["updated_at", "2017-06-26 06:32:44.394521"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.412964"], ["updated_at", "2017-06-26 06:32:44.412964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.413833"], ["updated_at", "2017-06-26 06:32:44.413833"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.415625"], ["updated_at", "2017-06-26 06:32:44.415625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.416396"], ["updated_at", "2017-06-26 06:32:44.416396"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:32:44.426204"], ["updated_at", "2017-06-26 06:32:44.426204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:32:44.428418"], ["updated_at", "2017-06-26 06:32:44.428418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.436553"], ["updated_at", "2017-06-26 06:32:44.436553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.437428"], ["updated_at", "2017-06-26 06:32:44.437428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:44.438178"], ["updated_at", "2017-06-26 06:32:44.438178"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:46.983198"], ["updated_at", "2017-06-26 06:32:46.983198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.008635"], ["updated_at", "2017-06-26 06:32:47.008635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.012564"], ["updated_at", "2017-06-26 06:32:47.012564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.2ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.074732"], ["updated_at", "2017-06-26 06:32:47.074732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 06:32:47.081491"], ["updated_at", "2017-06-26 06:32:47.081491"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 06:32:47.085357"], ["updated_at", "2017-06-26 06:32:47.085357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 06:32:47.086487"], ["updated_at", "2017-06-26 06:32:47.086487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:32:47.202184"], ["updated_at", "2017-06-26 06:32:47.202184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:32:47.203399"], ["updated_at", "2017-06-26 06:32:47.203399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:32:47.205510"], ["updated_at", "2017-06-26 06:32:47.205510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:32:47.206602"], ["updated_at", "2017-06-26 06:32:47.206602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.214505"], ["updated_at", "2017-06-26 06:32:47.214505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.215701"], ["updated_at", "2017-06-26 06:32:47.215701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.230540"], ["updated_at", "2017-06-26 06:32:47.230540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.231429"], ["updated_at", "2017-06-26 06:32:47.231429"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.233216"], ["updated_at", "2017-06-26 06:32:47.233216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.234059"], ["updated_at", "2017-06-26 06:32:47.234059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.235322"], ["updated_at", "2017-06-26 06:32:47.235322"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.238593"], ["updated_at", "2017-06-26 06:32:47.238593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 06:32:47.248728"], ["updated_at", "2017-06-26 06:32:47.248728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.260192"], ["updated_at", "2017-06-26 06:32:47.260192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.261287"], ["updated_at", "2017-06-26 06:32:47.261287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.277488"], ["updated_at", "2017-06-26 06:32:47.277488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.283558"], ["updated_at", "2017-06-26 06:32:47.283558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 06:32:47.284597"], ["updated_at", "2017-06-26 06:32:47.284597"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.290487"], ["updated_at", "2017-06-26 06:32:47.290487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.291491"], ["updated_at", "2017-06-26 06:32:47.291491"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.294163"], ["updated_at", "2017-06-26 06:32:47.294163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.295047"], ["updated_at", "2017-06-26 06:32:47.295047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.295817"], ["updated_at", "2017-06-26 06:32:47.295817"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 06:32:47.300290"], ["updated_at", "2017-06-26 06:32:47.300290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 06:32:47.302956"], ["updated_at", "2017-06-26 06:32:47.302956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.311947"], ["updated_at", "2017-06-26 06:32:47.311947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.312905"], ["updated_at", "2017-06-26 06:32:47.312905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.334055"], ["updated_at", "2017-06-26 06:32:47.334055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.335000"], ["updated_at", "2017-06-26 06:32:47.335000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:32:47.345425"], ["updated_at", "2017-06-26 06:32:47.345425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 06:32:47.346401"], ["updated_at", "2017-06-26 06:32:47.346401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.347392"], ["updated_at", "2017-06-26 06:32:47.347392"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.349160"], ["updated_at", "2017-06-26 06:32:47.349160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.353318"], ["updated_at", "2017-06-26 06:32:47.353318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.354150"], ["updated_at", "2017-06-26 06:32:47.354150"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.358293"], ["updated_at", "2017-06-26 06:32:47.358293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.364902"], ["updated_at", "2017-06-26 06:32:47.364902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.368554"], ["updated_at", "2017-06-26 06:32:47.368554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.373342"], ["updated_at", "2017-06-26 06:32:47.373342"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.380952"], ["updated_at", "2017-06-26 06:32:47.380952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.384000"], ["updated_at", "2017-06-26 06:32:47.384000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.387392"], ["updated_at", "2017-06-26 06:32:47.387392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.388448"], ["updated_at", "2017-06-26 06:32:47.388448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.390775"], ["updated_at", "2017-06-26 06:32:47.390775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.395175"], ["updated_at", "2017-06-26 06:32:47.395175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.401144"], ["updated_at", "2017-06-26 06:32:47.401144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.409175"], ["updated_at", "2017-06-26 06:32:47.409175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.413550"], ["updated_at", "2017-06-26 06:32:47.413550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 06:32:47.419190"], ["updated_at", "2017-06-26 06:32:47.419190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 06:32:47.420125"], ["updated_at", "2017-06-26 06:32:47.420125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 06:32:47.421977"], ["updated_at", "2017-06-26 06:32:47.421977"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 06:32:47.422876"], ["updated_at", "2017-06-26 06:32:47.422876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.427074"], ["updated_at", "2017-06-26 06:32:47.427074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.428265"], ["updated_at", "2017-06-26 06:32:47.428265"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.430973"], ["updated_at", "2017-06-26 06:32:47.430973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.432210"], ["updated_at", "2017-06-26 06:32:47.432210"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 06:32:47.435849"], ["updated_at", "2017-06-26 06:32:47.435849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 06:32:47.437302"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:32:47.438495"], ["updated_at", "2017-06-26 06:32:47.438495"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 06:32:47.439932"], ["updated_at", "2017-06-26 06:32:47.439932"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.443962"], ["updated_at", "2017-06-26 06:32:47.443962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.446529"], ["updated_at", "2017-06-26 06:32:47.446529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.449963"], ["updated_at", "2017-06-26 06:32:47.449963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.452034"], ["updated_at", "2017-06-26 06:32:47.452034"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.455313"], ["updated_at", "2017-06-26 06:32:47.455313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 06:32:47.463775"], ["updated_at", "2017-06-26 06:32:47.463775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.468397"], ["updated_at", "2017-06-26 06:32:47.468397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.469311"], ["updated_at", "2017-06-26 06:32:47.469311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.475028"], ["updated_at", "2017-06-26 06:32:47.475028"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.476566"], ["updated_at", "2017-06-26 06:32:47.476566"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.479284"], ["updated_at", "2017-06-26 06:32:47.479284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.483034"], ["updated_at", "2017-06-26 06:32:47.483034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.487170"], ["updated_at", "2017-06-26 06:32:47.487170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.488144"], ["updated_at", "2017-06-26 06:32:47.488144"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.490714"], ["updated_at", "2017-06-26 06:32:47.490714"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.492614"], ["updated_at", "2017-06-26 06:32:47.492614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 06:32:47.493489"], ["updated_at", "2017-06-26 06:32:47.493489"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.094418"], ["updated_at", "2017-06-26 07:03:54.094418"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.149382"], ["updated_at", "2017-06-26 07:03:54.149382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:03:54.150535"], ["updated_at", "2017-06-26 07:03:54.150535"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.155116"], ["updated_at", "2017-06-26 07:03:54.155116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.156080"], ["updated_at", "2017-06-26 07:03:54.156080"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:03:54.162519"], ["updated_at", "2017-06-26 07:03:54.162519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:03:54.180083"], ["updated_at", "2017-06-26 07:03:54.180083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:03:54.181187"], ["updated_at", "2017-06-26 07:03:54.181187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:03:54.183179"], ["updated_at", "2017-06-26 07:03:54.183179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:03:54.184156"], ["updated_at", "2017-06-26 07:03:54.184156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.192493"], ["updated_at", "2017-06-26 07:03:54.192493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.199488"], ["updated_at", "2017-06-26 07:03:54.199488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.200368"], ["updated_at", "2017-06-26 07:03:54.200368"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.202824"], ["updated_at", "2017-06-26 07:03:54.202824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.203723"], ["updated_at", "2017-06-26 07:03:54.203723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.214540"], ["updated_at", "2017-06-26 07:03:54.214540"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.215522"], ["updated_at", "2017-06-26 07:03:54.215522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.216374"], ["updated_at", "2017-06-26 07:03:54.216374"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.219048"], ["updated_at", "2017-06-26 07:03:54.219048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.221746"], ["updated_at", "2017-06-26 07:03:54.221746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.226275"], ["updated_at", "2017-06-26 07:03:54.226275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.231616"], ["updated_at", "2017-06-26 07:03:54.231616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.238890"], ["updated_at", "2017-06-26 07:03:54.238890"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.256388"], ["updated_at", "2017-06-26 07:03:54.256388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.265403"], ["updated_at", "2017-06-26 07:03:54.265403"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.266342"], ["updated_at", "2017-06-26 07:03:54.266342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.273814"], ["updated_at", "2017-06-26 07:03:54.273814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.278185"], ["updated_at", "2017-06-26 07:03:54.278185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.279122"], ["updated_at", "2017-06-26 07:03:54.279122"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.281621"], ["updated_at", "2017-06-26 07:03:54.281621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.282412"], ["updated_at", "2017-06-26 07:03:54.282412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.287750"], ["updated_at", "2017-06-26 07:03:54.287750"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:03:54.290582"], ["updated_at", "2017-06-26 07:03:54.290582"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:03:54.291960"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:03:54.293605"], ["updated_at", "2017-06-26 07:03:54.293605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:03:54.294409"], ["updated_at", "2017-06-26 07:03:54.294409"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.297669"], ["updated_at", "2017-06-26 07:03:54.297669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.298431"], ["updated_at", "2017-06-26 07:03:54.298431"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.300171"], ["updated_at", "2017-06-26 07:03:54.300171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.306034"], ["updated_at", "2017-06-26 07:03:54.306034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:03:54.310759"], ["updated_at", "2017-06-26 07:03:54.310759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:03:54.313226"], ["updated_at", "2017-06-26 07:03:54.313226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.321427"], ["updated_at", "2017-06-26 07:03:54.321427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.322440"], ["updated_at", "2017-06-26 07:03:54.322440"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.323301"], ["updated_at", "2017-06-26 07:03:54.323301"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.334122"], ["updated_at", "2017-06-26 07:03:54.334122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.334875"], ["updated_at", "2017-06-26 07:03:54.334875"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.337472"], ["updated_at", "2017-06-26 07:03:54.337472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.339805"], ["updated_at", "2017-06-26 07:03:54.339805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:03:54.343000"], ["updated_at", "2017-06-26 07:03:54.343000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:03:54.343783"], ["updated_at", "2017-06-26 07:03:54.343783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.344558"], ["updated_at", "2017-06-26 07:03:54.344558"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.346325"], ["updated_at", "2017-06-26 07:03:54.346325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.347067"], ["updated_at", "2017-06-26 07:03:54.347067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.356260"], ["updated_at", "2017-06-26 07:03:54.356260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.357046"], ["updated_at", "2017-06-26 07:03:54.357046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.359239"], ["updated_at", "2017-06-26 07:03:54.359239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.362451"], ["updated_at", "2017-06-26 07:03:54.362451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.363187"], ["updated_at", "2017-06-26 07:03:54.363187"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:03:54.367666"], ["updated_at", "2017-06-26 07:03:54.367666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:03:54.368572"], ["updated_at", "2017-06-26 07:03:54.368572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:03:54.370294"], ["updated_at", "2017-06-26 07:03:54.370294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:03:54.371043"], ["updated_at", "2017-06-26 07:03:54.371043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:03:54.377018"], ["updated_at", "2017-06-26 07:03:54.377018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.380827"], ["updated_at", "2017-06-26 07:03:54.380827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.382890"], ["updated_at", "2017-06-26 07:03:54.382890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.386421"], ["updated_at", "2017-06-26 07:03:54.386421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.391426"], ["updated_at", "2017-06-26 07:03:54.391426"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.393497"], ["updated_at", "2017-06-26 07:03:54.393497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.395403"], ["updated_at", "2017-06-26 07:03:54.395403"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.401327"], ["updated_at", "2017-06-26 07:03:54.401327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.402415"], ["updated_at", "2017-06-26 07:03:54.402415"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.420792"], ["updated_at", "2017-06-26 07:03:54.420792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.421676"], ["updated_at", "2017-06-26 07:03:54.421676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.423770"], ["updated_at", "2017-06-26 07:03:54.423770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.427799"], ["updated_at", "2017-06-26 07:03:54.427799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.428694"], ["updated_at", "2017-06-26 07:03:54.428694"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.553173"], ["updated_at", "2017-06-26 07:03:54.553173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.558469"], ["updated_at", "2017-06-26 07:03:54.558469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.560898"], ["updated_at", "2017-06-26 07:03:54.560898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:54.584839"], ["updated_at", "2017-06-26 07:03:54.584839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:03:54.595774"], ["updated_at", "2017-06-26 07:03:54.595774"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:03:54.612620"], ["updated_at", "2017-06-26 07:03:54.612620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:03:54.613492"], ["updated_at", "2017-06-26 07:03:54.613492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.551531"], ["updated_at", "2017-06-26 07:03:57.551531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:03:57.571205"], ["updated_at", "2017-06-26 07:03:57.571205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:03:57.618994"], ["updated_at", "2017-06-26 07:03:57.618994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:03:57.620714"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:03:57.622313"], ["updated_at", "2017-06-26 07:03:57.622313"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:03:57.623344"], ["updated_at", "2017-06-26 07:03:57.623344"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.628057"], ["updated_at", "2017-06-26 07:03:57.628057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.629183"], ["updated_at", "2017-06-26 07:03:57.629183"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.632227"], ["updated_at", "2017-06-26 07:03:57.632227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.637640"], ["updated_at", "2017-06-26 07:03:57.637640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.638824"], ["updated_at", "2017-06-26 07:03:57.638824"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:03:57.688430"], ["updated_at", "2017-06-26 07:03:57.688430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:03:57.689433"], ["updated_at", "2017-06-26 07:03:57.689433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:03:57.691733"], ["updated_at", "2017-06-26 07:03:57.691733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:03:57.692580"], ["updated_at", "2017-06-26 07:03:57.692580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.696195"], ["updated_at", "2017-06-26 07:03:57.696195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.697042"], ["updated_at", "2017-06-26 07:03:57.697042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:03:57.707282"], ["updated_at", "2017-06-26 07:03:57.707282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:03:57.709810"], ["updated_at", "2017-06-26 07:03:57.709810"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:03:57.726144"], ["updated_at", "2017-06-26 07:03:57.726144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.731839"], ["updated_at", "2017-06-26 07:03:57.731839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.739235"], ["updated_at", "2017-06-26 07:03:57.739235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.762768"], ["updated_at", "2017-06-26 07:03:57.762768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.763905"], ["updated_at", "2017-06-26 07:03:57.763905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.766305"], ["updated_at", "2017-06-26 07:03:57.766305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.769931"], ["updated_at", "2017-06-26 07:03:57.769931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.773682"], ["updated_at", "2017-06-26 07:03:57.773682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.774634"], ["updated_at", "2017-06-26 07:03:57.774634"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.777578"], ["updated_at", "2017-06-26 07:03:57.777578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.778584"], ["updated_at", "2017-06-26 07:03:57.778584"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:03:57.784952"], ["updated_at", "2017-06-26 07:03:57.784952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:03:57.786094"], ["updated_at", "2017-06-26 07:03:57.786094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.787001"], ["updated_at", "2017-06-26 07:03:57.787001"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:03:57.789226"], ["updated_at", "2017-06-26 07:03:57.789226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:03:57.790149"], ["updated_at", "2017-06-26 07:03:57.790149"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:03:57.791885"], ["updated_at", "2017-06-26 07:03:57.791885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:03:57.792934"], ["updated_at", "2017-06-26 07:03:57.792934"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.812248"], ["updated_at", "2017-06-26 07:03:57.812248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.813180"], ["updated_at", "2017-06-26 07:03:57.813180"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.814952"], ["updated_at", "2017-06-26 07:03:57.814952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.815706"], ["updated_at", "2017-06-26 07:03:57.815706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.820293"], ["updated_at", "2017-06-26 07:03:57.820293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.821083"], ["updated_at", "2017-06-26 07:03:57.821083"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.823003"], ["updated_at", "2017-06-26 07:03:57.823003"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.828625"], ["updated_at", "2017-06-26 07:03:57.828625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.832339"], ["updated_at", "2017-06-26 07:03:57.832339"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.834001"], ["updated_at", "2017-06-26 07:03:57.834001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.834723"], ["updated_at", "2017-06-26 07:03:57.834723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.835458"], ["updated_at", "2017-06-26 07:03:57.835458"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.837708"], ["updated_at", "2017-06-26 07:03:57.837708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.843367"], ["updated_at", "2017-06-26 07:03:57.843367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.844200"], ["updated_at", "2017-06-26 07:03:57.844200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.858706"], ["updated_at", "2017-06-26 07:03:57.858706"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.860265"], ["updated_at", "2017-06-26 07:03:57.860265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.863297"], ["updated_at", "2017-06-26 07:03:57.863297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.870890"], ["updated_at", "2017-06-26 07:03:57.870890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:03:57.871779"], ["updated_at", "2017-06-26 07:03:57.871779"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.873854"], ["updated_at", "2017-06-26 07:03:57.873854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.876048"], ["updated_at", "2017-06-26 07:03:57.876048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.879245"], ["updated_at", "2017-06-26 07:03:57.879245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.879993"], ["updated_at", "2017-06-26 07:03:57.879993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.880645"], ["updated_at", "2017-06-26 07:03:57.880645"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.882790"], ["updated_at", "2017-06-26 07:03:57.882790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.884694"], ["updated_at", "2017-06-26 07:03:57.884694"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.889024"], ["updated_at", "2017-06-26 07:03:57.889024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.889795"], ["updated_at", "2017-06-26 07:03:57.889795"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.892276"], ["updated_at", "2017-06-26 07:03:57.892276"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.894400"], ["updated_at", "2017-06-26 07:03:57.894400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.896475"], ["updated_at", "2017-06-26 07:03:57.896475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.899577"], ["updated_at", "2017-06-26 07:03:57.899577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.901433"], ["updated_at", "2017-06-26 07:03:57.901433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.905901"], ["updated_at", "2017-06-26 07:03:57.905901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.911243"], ["updated_at", "2017-06-26 07:03:57.911243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.912238"], ["updated_at", "2017-06-26 07:03:57.912238"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.914864"], ["updated_at", "2017-06-26 07:03:57.914864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.915601"], ["updated_at", "2017-06-26 07:03:57.915601"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:57.917340"], ["updated_at", "2017-06-26 07:03:57.917340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:03:58.050990"], ["updated_at", "2017-06-26 07:03:58.050990"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:03:58.052053"], ["updated_at", "2017-06-26 07:03:58.052053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:58.076116"], ["updated_at", "2017-06-26 07:03:58.076116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:58.088239"], ["updated_at", "2017-06-26 07:03:58.088239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:58.093186"], ["updated_at", "2017-06-26 07:03:58.093186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:03:58.096312"], ["updated_at", "2017-06-26 07:03:58.096312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:03:58.105764"], ["updated_at", "2017-06-26 07:03:58.105764"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:04:01.065934"], ["updated_at", "2017-06-26 07:04:01.065934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:04:01.067043"], ["updated_at", "2017-06-26 07:04:01.067043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.088527"], ["updated_at", "2017-06-26 07:04:01.088527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:04:01.093007"], ["updated_at", "2017-06-26 07:04:01.093007"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.108563"], ["updated_at", "2017-06-26 07:04:01.108563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.116604"], ["updated_at", "2017-06-26 07:04:01.116604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.119387"], ["updated_at", "2017-06-26 07:04:01.119387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:01.175417"], ["updated_at", "2017-06-26 07:04:01.175417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:01.176370"], ["updated_at", "2017-06-26 07:04:01.176370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:01.177994"], ["updated_at", "2017-06-26 07:04:01.177994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:01.178834"], ["updated_at", "2017-06-26 07:04:01.178834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.182459"], ["updated_at", "2017-06-26 07:04:01.182459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.183388"], ["updated_at", "2017-06-26 07:04:01.183388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.193066"], ["updated_at", "2017-06-26 07:04:01.193066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.195273"], ["updated_at", "2017-06-26 07:04:01.195273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.198487"], ["updated_at", "2017-06-26 07:04:01.198487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.199227"], ["updated_at", "2017-06-26 07:04:01.199227"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.201343"], ["updated_at", "2017-06-26 07:04:01.201343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.205069"], ["updated_at", "2017-06-26 07:04:01.205069"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.206002"], ["updated_at", "2017-06-26 07:04:01.206002"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.208227"], ["updated_at", "2017-06-26 07:04:01.208227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.213901"], ["updated_at", "2017-06-26 07:04:01.213901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.214790"], ["updated_at", "2017-06-26 07:04:01.214790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.220172"], ["updated_at", "2017-06-26 07:04:01.220172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.221095"], ["updated_at", "2017-06-26 07:04:01.221095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.231123"], ["updated_at", "2017-06-26 07:04:01.231123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.240882"], ["updated_at", "2017-06-26 07:04:01.240882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.241602"], ["updated_at", "2017-06-26 07:04:01.241602"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.248712"], ["updated_at", "2017-06-26 07:04:01.248712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.249548"], ["updated_at", "2017-06-26 07:04:01.249548"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.251362"], ["updated_at", "2017-06-26 07:04:01.251362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:01.258853"], ["updated_at", "2017-06-26 07:04:01.258853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.263240"], ["updated_at", "2017-06-26 07:04:01.263240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.264322"], ["updated_at", "2017-06-26 07:04:01.264322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.274694"], ["updated_at", "2017-06-26 07:04:01.274694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.275543"], ["updated_at", "2017-06-26 07:04:01.275543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.276353"], ["updated_at", "2017-06-26 07:04:01.276353"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:04:01.278828"], ["updated_at", "2017-06-26 07:04:01.278828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:04:01.281344"], ["updated_at", "2017-06-26 07:04:01.281344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.289478"], ["updated_at", "2017-06-26 07:04:01.289478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.290284"], ["updated_at", "2017-06-26 07:04:01.290284"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.292413"], ["updated_at", "2017-06-26 07:04:01.292413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.293139"], ["updated_at", "2017-06-26 07:04:01.293139"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.294745"], ["updated_at", "2017-06-26 07:04:01.294745"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.296332"], ["updated_at", "2017-06-26 07:04:01.296332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.297083"], ["updated_at", "2017-06-26 07:04:01.297083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.298016"], ["updated_at", "2017-06-26 07:04:01.298016"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.311045"], ["updated_at", "2017-06-26 07:04:01.311045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.313859"], ["updated_at", "2017-06-26 07:04:01.313859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.317552"], ["updated_at", "2017-06-26 07:04:01.317552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.318300"], ["updated_at", "2017-06-26 07:04:01.318300"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.320225"], ["updated_at", "2017-06-26 07:04:01.320225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:01.324278"], ["updated_at", "2017-06-26 07:04:01.324278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:01.325180"], ["updated_at", "2017-06-26 07:04:01.325180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.325941"], ["updated_at", "2017-06-26 07:04:01.325941"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:04:01.331300"], ["updated_at", "2017-06-26 07:04:01.331300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.341582"], ["updated_at", "2017-06-26 07:04:01.341582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.342440"], ["updated_at", "2017-06-26 07:04:01.342440"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.345238"], ["updated_at", "2017-06-26 07:04:01.345238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.351620"], ["updated_at", "2017-06-26 07:04:01.351620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.358378"], ["updated_at", "2017-06-26 07:04:01.358378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.359289"], ["updated_at", "2017-06-26 07:04:01.359289"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.361606"], ["updated_at", "2017-06-26 07:04:01.361606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:04:01.366478"], ["updated_at", "2017-06-26 07:04:01.366478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:04:01.368091"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:01.369103"], ["updated_at", "2017-06-26 07:04:01.369103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:04:01.369856"], ["updated_at", "2017-06-26 07:04:01.369856"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.377250"], ["updated_at", "2017-06-26 07:04:01.377250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.383201"], ["updated_at", "2017-06-26 07:04:01.383201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.385415"], ["updated_at", "2017-06-26 07:04:01.385415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.388945"], ["updated_at", "2017-06-26 07:04:01.388945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:01.397820"], ["updated_at", "2017-06-26 07:04:01.397820"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:01.398885"], ["updated_at", "2017-06-26 07:04:01.398885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:01.400814"], ["updated_at", "2017-06-26 07:04:01.400814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:01.401624"], ["updated_at", "2017-06-26 07:04:01.401624"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.408948"], ["updated_at", "2017-06-26 07:04:01.408948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:04:01.409836"], ["updated_at", "2017-06-26 07:04:01.409836"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.412320"], ["updated_at", "2017-06-26 07:04:01.412320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.416723"], ["updated_at", "2017-06-26 07:04:01.416723"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.417589"], ["updated_at", "2017-06-26 07:04:01.417589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.419651"], ["updated_at", "2017-06-26 07:04:01.419651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.423511"], ["updated_at", "2017-06-26 07:04:01.423511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.425669"], ["updated_at", "2017-06-26 07:04:01.425669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:01.427850"], ["updated_at", "2017-06-26 07:04:01.427850"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:04:04.083714"], ["updated_at", "2017-06-26 07:04:04.083714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:04:04.084907"], ["updated_at", "2017-06-26 07:04:04.084907"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:04:04.128027"], ["updated_at", "2017-06-26 07:04:04.128027"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.130904"], ["updated_at", "2017-06-26 07:04:04.130904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.154879"], ["updated_at", "2017-06-26 07:04:04.154879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.160755"], ["updated_at", "2017-06-26 07:04:04.160755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.164191"], ["updated_at", "2017-06-26 07:04:04.164191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.296833"], ["updated_at", "2017-06-26 07:04:04.296833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.299408"], ["updated_at", "2017-06-26 07:04:04.299408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.302674"], ["updated_at", "2017-06-26 07:04:04.302674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:04.309647"], ["updated_at", "2017-06-26 07:04:04.309647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.313680"], ["updated_at", "2017-06-26 07:04:04.313680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.314452"], ["updated_at", "2017-06-26 07:04:04.314452"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.316127"], ["updated_at", "2017-06-26 07:04:04.316127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.319787"], ["updated_at", "2017-06-26 07:04:04.319787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.320552"], ["updated_at", "2017-06-26 07:04:04.320552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.321253"], ["updated_at", "2017-06-26 07:04:04.321253"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.324114"], ["updated_at", "2017-06-26 07:04:04.324114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.325161"], ["updated_at", "2017-06-26 07:04:04.325161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.331565"], ["updated_at", "2017-06-26 07:04:04.331565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.332302"], ["updated_at", "2017-06-26 07:04:04.332302"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.336355"], ["updated_at", "2017-06-26 07:04:04.336355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.341021"], ["updated_at", "2017-06-26 07:04:04.341021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:04:04.341753"], ["updated_at", "2017-06-26 07:04:04.341753"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.344033"], ["updated_at", "2017-06-26 07:04:04.344033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.344730"], ["updated_at", "2017-06-26 07:04:04.344730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.347241"], ["updated_at", "2017-06-26 07:04:04.347241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.350353"], ["updated_at", "2017-06-26 07:04:04.350353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.351031"], ["updated_at", "2017-06-26 07:04:04.351031"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:04:04.353117"], ["updated_at", "2017-06-26 07:04:04.353117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:04:04.354978"], ["updated_at", "2017-06-26 07:04:04.354978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.362984"], ["updated_at", "2017-06-26 07:04:04.362984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:04:04.368686"], ["updated_at", "2017-06-26 07:04:04.368686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 07:04:04.370478"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:04.371450"], ["updated_at", "2017-06-26 07:04:04.371450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:04:04.372198"], ["updated_at", "2017-06-26 07:04:04.372198"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.376192"], ["updated_at", "2017-06-26 07:04:04.376192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.377059"], ["updated_at", "2017-06-26 07:04:04.377059"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:04.379635"], ["updated_at", "2017-06-26 07:04:04.379635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:04.380422"], ["updated_at", "2017-06-26 07:04:04.380422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:04.382334"], ["updated_at", "2017-06-26 07:04:04.382334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:04.386837"], ["updated_at", "2017-06-26 07:04:04.386837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:04.389989"], ["updated_at", "2017-06-26 07:04:04.389989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:04.390831"], ["updated_at", "2017-06-26 07:04:04.390831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.391630"], ["updated_at", "2017-06-26 07:04:04.391630"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.403819"], ["updated_at", "2017-06-26 07:04:04.403819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.404574"], ["updated_at", "2017-06-26 07:04:04.404574"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.406809"], ["updated_at", "2017-06-26 07:04:04.406809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.409369"], ["updated_at", "2017-06-26 07:04:04.409369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.411315"], ["updated_at", "2017-06-26 07:04:04.411315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.415516"], ["updated_at", "2017-06-26 07:04:04.415516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.420379"], ["updated_at", "2017-06-26 07:04:04.420379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.421241"], ["updated_at", "2017-06-26 07:04:04.421241"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.423817"], ["updated_at", "2017-06-26 07:04:04.423817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:04.427786"], ["updated_at", "2017-06-26 07:04:04.427786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:04.428600"], ["updated_at", "2017-06-26 07:04:04.428600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:04.430157"], ["updated_at", "2017-06-26 07:04:04.430157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:04.430921"], ["updated_at", "2017-06-26 07:04:04.430921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.438561"], ["updated_at", "2017-06-26 07:04:04.438561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.455037"], ["updated_at", "2017-06-26 07:04:04.455037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.455834"], ["updated_at", "2017-06-26 07:04:04.455834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.460947"], ["updated_at", "2017-06-26 07:04:04.460947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.462024"], ["updated_at", "2017-06-26 07:04:04.462024"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.464934"], ["updated_at", "2017-06-26 07:04:04.464934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.467172"], ["updated_at", "2017-06-26 07:04:04.467172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.473833"], ["updated_at", "2017-06-26 07:04:04.473833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.477174"], ["updated_at", "2017-06-26 07:04:04.477174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.480492"], ["updated_at", "2017-06-26 07:04:04.480492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.481263"], ["updated_at", "2017-06-26 07:04:04.481263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.489298"], ["updated_at", "2017-06-26 07:04:04.489298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.490119"], ["updated_at", "2017-06-26 07:04:04.490119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.490870"], ["updated_at", "2017-06-26 07:04:04.490870"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:04:04.494986"], ["updated_at", "2017-06-26 07:04:04.494986"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.505120"], ["updated_at", "2017-06-26 07:04:04.505120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.505990"], ["updated_at", "2017-06-26 07:04:04.505990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.515116"], ["updated_at", "2017-06-26 07:04:04.515116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.515905"], ["updated_at", "2017-06-26 07:04:04.515905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.520413"], ["updated_at", "2017-06-26 07:04:04.520413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.521200"], ["updated_at", "2017-06-26 07:04:04.521200"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.522923"], ["updated_at", "2017-06-26 07:04:04.522923"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.525004"], ["updated_at", "2017-06-26 07:04:04.525004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.531370"], ["updated_at", "2017-06-26 07:04:04.531370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.536791"], ["updated_at", "2017-06-26 07:04:04.536791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:04.542400"], ["updated_at", "2017-06-26 07:04:04.542400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:04:07.301929"], ["updated_at", "2017-06-26 07:04:07.301929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:04:07.303348"], ["updated_at", "2017-06-26 07:04:07.303348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.344396"], ["updated_at", "2017-06-26 07:04:07.344396"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.354567"], ["updated_at", "2017-06-26 07:04:07.354567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.357871"], ["updated_at", "2017-06-26 07:04:07.357871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.3ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.364901"], ["updated_at", "2017-06-26 07:04:07.364901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:04:07.396315"], ["updated_at", "2017-06-26 07:04:07.396315"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.449190"], ["updated_at", "2017-06-26 07:04:07.449190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.450379"], ["updated_at", "2017-06-26 07:04:07.450379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 2) OR ("test_attrs_test_models_2"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.455969"], ["updated_at", "2017-06-26 07:04:07.455969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.456855"], ["updated_at", "2017-06-26 07:04:07.456855"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.459013"], ["updated_at", "2017-06-26 07:04:07.459013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.472482"], ["updated_at", "2017-06-26 07:04:07.472482"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.473321"], ["updated_at", "2017-06-26 07:04:07.473321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.479566"], ["updated_at", "2017-06-26 07:04:07.479566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.480475"], ["updated_at", "2017-06-26 07:04:07.480475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.481257"], ["updated_at", "2017-06-26 07:04:07.481257"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.483591"], ["updated_at", "2017-06-26 07:04:07.483591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.484326"], ["updated_at", "2017-06-26 07:04:07.484326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.492948"], ["updated_at", "2017-06-26 07:04:07.492948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.493675"], ["updated_at", "2017-06-26 07:04:07.493675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.495526"], ["updated_at", "2017-06-26 07:04:07.495526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.498664"], ["updated_at", "2017-06-26 07:04:07.498664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.500607"], ["updated_at", "2017-06-26 07:04:07.500607"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:07.504297"], ["updated_at", "2017-06-26 07:04:07.504297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:07.505156"], ["updated_at", "2017-06-26 07:04:07.505156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.505943"], ["updated_at", "2017-06-26 07:04:07.505943"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.507827"], ["updated_at", "2017-06-26 07:04:07.507827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.511975"], ["updated_at", "2017-06-26 07:04:07.511975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.517397"], ["updated_at", "2017-06-26 07:04:07.517397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:07.525785"], ["updated_at", "2017-06-26 07:04:07.525785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:04:07.544059"], ["updated_at", "2017-06-26 07:04:07.544059"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 07:04:07.546032"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:07.546984"], ["updated_at", "2017-06-26 07:04:07.546984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:04:07.547811"], ["updated_at", "2017-06-26 07:04:07.547811"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.551371"], ["updated_at", "2017-06-26 07:04:07.551371"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.557019"], ["updated_at", "2017-06-26 07:04:07.557019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.557863"], ["updated_at", "2017-06-26 07:04:07.557863"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.568348"], ["updated_at", "2017-06-26 07:04:07.568348"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.570119"], ["updated_at", "2017-06-26 07:04:07.570119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.570848"], ["updated_at", "2017-06-26 07:04:07.570848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.580304"], ["updated_at", "2017-06-26 07:04:07.580304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:04:07.585549"], ["updated_at", "2017-06-26 07:04:07.585549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:04:07.587987"], ["updated_at", "2017-06-26 07:04:07.587987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.595940"], ["updated_at", "2017-06-26 07:04:07.595940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.598318"], ["updated_at", "2017-06-26 07:04:07.598318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:07.602208"], ["updated_at", "2017-06-26 07:04:07.602208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:07.603080"], ["updated_at", "2017-06-26 07:04:07.603080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:07.604663"], ["updated_at", "2017-06-26 07:04:07.604663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:07.605458"], ["updated_at", "2017-06-26 07:04:07.605458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.611778"], ["updated_at", "2017-06-26 07:04:07.611778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.612598"], ["updated_at", "2017-06-26 07:04:07.612598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.619350"], ["updated_at", "2017-06-26 07:04:07.619350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.620247"], ["updated_at", "2017-06-26 07:04:07.620247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.621023"], ["updated_at", "2017-06-26 07:04:07.621023"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.623424"], ["updated_at", "2017-06-26 07:04:07.623424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.624247"], ["updated_at", "2017-06-26 07:04:07.624247"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.626439"], ["updated_at", "2017-06-26 07:04:07.626439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.627380"], ["updated_at", "2017-06-26 07:04:07.627380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.629640"], ["updated_at", "2017-06-26 07:04:07.629640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.633239"], ["updated_at", "2017-06-26 07:04:07.633239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.634045"], ["updated_at", "2017-06-26 07:04:07.634045"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.635962"], ["updated_at", "2017-06-26 07:04:07.635962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.637909"], ["updated_at", "2017-06-26 07:04:07.637909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.639799"], ["updated_at", "2017-06-26 07:04:07.639799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.643365"], ["updated_at", "2017-06-26 07:04:07.643365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:04:07.649278"], ["updated_at", "2017-06-26 07:04:07.649278"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:07.661276"], ["updated_at", "2017-06-26 07:04:07.661276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:07.662464"], ["updated_at", "2017-06-26 07:04:07.662464"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:07.669115"], ["updated_at", "2017-06-26 07:04:07.669115"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:07.671433"], ["updated_at", "2017-06-26 07:04:07.671433"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.676546"], ["updated_at", "2017-06-26 07:04:07.676546"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:04:07.677375"], ["updated_at", "2017-06-26 07:04:07.677375"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.679650"], ["updated_at", "2017-06-26 07:04:07.679650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.684098"], ["updated_at", "2017-06-26 07:04:07.684098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.684841"], ["updated_at", "2017-06-26 07:04:07.684841"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.689195"], ["updated_at", "2017-06-26 07:04:07.689195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.694174"], ["updated_at", "2017-06-26 07:04:07.694174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.696876"], ["updated_at", "2017-06-26 07:04:07.696876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.700623"], ["updated_at", "2017-06-26 07:04:07.700623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.705480"], ["updated_at", "2017-06-26 07:04:07.705480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.706304"], ["updated_at", "2017-06-26 07:04:07.706304"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.708551"], ["updated_at", "2017-06-26 07:04:07.708551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:07.709375"], ["updated_at", "2017-06-26 07:04:07.709375"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.015706"], ["updated_at", "2017-06-26 07:04:11.015706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.022673"], ["updated_at", "2017-06-26 07:04:11.022673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.025475"], ["updated_at", "2017-06-26 07:04:11.025475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:04:11.034079"], ["updated_at", "2017-06-26 07:04:11.034079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:04:11.035313"], ["updated_at", "2017-06-26 07:04:11.035313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.056304"], ["updated_at", "2017-06-26 07:04:11.056304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:04:11.067505"], ["updated_at", "2017-06-26 07:04:11.067505"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:04:11.184877"], ["updated_at", "2017-06-26 07:04:11.184877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-06-26 07:04:11.194389"], ["updated_at", "2017-06-26 07:04:11.194389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.196759"], ["updated_at", "2017-06-26 07:04:11.196759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.200250"], ["updated_at", "2017-06-26 07:04:11.200250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:04:11.201152"], ["updated_at", "2017-06-26 07:04:11.201152"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.204420"], ["updated_at", "2017-06-26 07:04:11.204420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.210638"], ["updated_at", "2017-06-26 07:04:11.210638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.216779"], ["updated_at", "2017-06-26 07:04:11.216779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.218846"], ["updated_at", "2017-06-26 07:04:11.218846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.221815"], ["updated_at", "2017-06-26 07:04:11.221815"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.223792"], ["updated_at", "2017-06-26 07:04:11.223792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.228159"], ["updated_at", "2017-06-26 07:04:11.228159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:04:11.234386"], ["updated_at", "2017-06-26 07:04:11.234386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:04:11.235830"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:11.236726"], ["updated_at", "2017-06-26 07:04:11.236726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:04:11.237460"], ["updated_at", "2017-06-26 07:04:11.237460"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.240561"], ["updated_at", "2017-06-26 07:04:11.240561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.241326"], ["updated_at", "2017-06-26 07:04:11.241326"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.243446"], ["updated_at", "2017-06-26 07:04:11.243446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.248999"], ["updated_at", "2017-06-26 07:04:11.248999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.249888"], ["updated_at", "2017-06-26 07:04:11.249888"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.251767"], ["updated_at", "2017-06-26 07:04:11.251767"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.256875"], ["updated_at", "2017-06-26 07:04:11.256875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.259950"], ["updated_at", "2017-06-26 07:04:11.259950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.264045"], ["updated_at", "2017-06-26 07:04:11.264045"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.265109"], ["updated_at", "2017-06-26 07:04:11.265109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.265982"], ["updated_at", "2017-06-26 07:04:11.265982"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.268540"], ["updated_at", "2017-06-26 07:04:11.268540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:11.276657"], ["updated_at", "2017-06-26 07:04:11.276657"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.281134"], ["updated_at", "2017-06-26 07:04:11.281134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.281931"], ["updated_at", "2017-06-26 07:04:11.281931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.284229"], ["updated_at", "2017-06-26 07:04:11.284229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.290477"], ["updated_at", "2017-06-26 07:04:11.290477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.291156"], ["updated_at", "2017-06-26 07:04:11.291156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.293283"], ["updated_at", "2017-06-26 07:04:11.293283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:11.296636"], ["updated_at", "2017-06-26 07:04:11.296636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:11.297504"], ["updated_at", "2017-06-26 07:04:11.297504"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.298432"], ["updated_at", "2017-06-26 07:04:11.298432"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.300597"], ["updated_at", "2017-06-26 07:04:11.300597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:11.310341"], ["updated_at", "2017-06-26 07:04:11.310341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:11.311449"], ["updated_at", "2017-06-26 07:04:11.311449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:11.313169"], ["updated_at", "2017-06-26 07:04:11.313169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:11.313979"], ["updated_at", "2017-06-26 07:04:11.313979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.330301"], ["updated_at", "2017-06-26 07:04:11.330301"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.331287"], ["updated_at", "2017-06-26 07:04:11.331287"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.333377"], ["updated_at", "2017-06-26 07:04:11.333377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.334243"], ["updated_at", "2017-06-26 07:04:11.334243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.339162"], ["updated_at", "2017-06-26 07:04:11.339162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.339988"], ["updated_at", "2017-06-26 07:04:11.339988"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.341892"], ["updated_at", "2017-06-26 07:04:11.341892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.342679"], ["updated_at", "2017-06-26 07:04:11.342679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.353051"], ["updated_at", "2017-06-26 07:04:11.353051"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.354267"], ["updated_at", "2017-06-26 07:04:11.354267"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.357199"], ["updated_at", "2017-06-26 07:04:11.357199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.358153"], ["updated_at", "2017-06-26 07:04:11.358153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.369615"], ["updated_at", "2017-06-26 07:04:11.369615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.370548"], ["updated_at", "2017-06-26 07:04:11.370548"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.372932"], ["updated_at", "2017-06-26 07:04:11.372932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.375059"], ["updated_at", "2017-06-26 07:04:11.375059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.377313"], ["updated_at", "2017-06-26 07:04:11.377313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.384464"], ["updated_at", "2017-06-26 07:04:11.384464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.385315"], ["updated_at", "2017-06-26 07:04:11.385315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.386078"], ["updated_at", "2017-06-26 07:04:11.386078"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.390499"], ["updated_at", "2017-06-26 07:04:11.390499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.391226"], ["updated_at", "2017-06-26 07:04:11.391226"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.393793"], ["updated_at", "2017-06-26 07:04:11.393793"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.394716"], ["updated_at", "2017-06-26 07:04:11.394716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.402097"], ["updated_at", "2017-06-26 07:04:11.402097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.402810"], ["updated_at", "2017-06-26 07:04:11.402810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:11.407956"], ["updated_at", "2017-06-26 07:04:11.407956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:11.409107"], ["updated_at", "2017-06-26 07:04:11.409107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:11.411154"], ["updated_at", "2017-06-26 07:04:11.411154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:11.412053"], ["updated_at", "2017-06-26 07:04:11.412053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.415561"], ["updated_at", "2017-06-26 07:04:11.415561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:11.421791"], ["updated_at", "2017-06-26 07:04:11.421791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:04:11.426538"], ["updated_at", "2017-06-26 07:04:11.426538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:04:11.428747"], ["updated_at", "2017-06-26 07:04:11.428747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.173820"], ["updated_at", "2017-06-26 07:04:15.173820"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.200873"], ["updated_at", "2017-06-26 07:04:15.200873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.203919"], ["updated_at", "2017-06-26 07:04:15.203919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:15.221011"], ["updated_at", "2017-06-26 07:04:15.221011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:15.222405"], ["updated_at", "2017-06-26 07:04:15.222405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:15.225043"], ["updated_at", "2017-06-26 07:04:15.225043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:15.225962"], ["updated_at", "2017-06-26 07:04:15.225962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.234048"], ["updated_at", "2017-06-26 07:04:15.234048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.235048"], ["updated_at", "2017-06-26 07:04:15.235048"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.235911"], ["updated_at", "2017-06-26 07:04:15.235911"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:15.246166"], ["updated_at", "2017-06-26 07:04:15.246166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:15.247392"], ["updated_at", "2017-06-26 07:04:15.247392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:15.249188"], ["updated_at", "2017-06-26 07:04:15.249188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:15.250001"], ["updated_at", "2017-06-26 07:04:15.250001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.259060"], ["updated_at", "2017-06-26 07:04:15.259060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.259970"], ["updated_at", "2017-06-26 07:04:15.259970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.262294"], ["updated_at", "2017-06-26 07:04:15.262294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.268194"], ["updated_at", "2017-06-26 07:04:15.268194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:04:15.269023"], ["updated_at", "2017-06-26 07:04:15.269023"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.271518"], ["updated_at", "2017-06-26 07:04:15.271518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.272343"], ["updated_at", "2017-06-26 07:04:15.272343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.281950"], ["updated_at", "2017-06-26 07:04:15.281950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.282894"], ["updated_at", "2017-06-26 07:04:15.282894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.291121"], ["updated_at", "2017-06-26 07:04:15.291121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.292000"], ["updated_at", "2017-06-26 07:04:15.292000"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.294564"], ["updated_at", "2017-06-26 07:04:15.294564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.299355"], ["updated_at", "2017-06-26 07:04:15.299355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.302262"], ["updated_at", "2017-06-26 07:04:15.302262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.306102"], ["updated_at", "2017-06-26 07:04:15.306102"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.308245"], ["updated_at", "2017-06-26 07:04:15.308245"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.312724"], ["updated_at", "2017-06-26 07:04:15.312724"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.313642"], ["updated_at", "2017-06-26 07:04:15.313642"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.3ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.336759"], ["updated_at", "2017-06-26 07:04:15.336759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.337730"], ["updated_at", "2017-06-26 07:04:15.337730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.349112"], ["updated_at", "2017-06-26 07:04:15.349112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.362638"], ["updated_at", "2017-06-26 07:04:15.362638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.363612"], ["updated_at", "2017-06-26 07:04:15.363612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.372976"], ["updated_at", "2017-06-26 07:04:15.372976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.374090"], ["updated_at", "2017-06-26 07:04:15.374090"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.376466"], ["updated_at", "2017-06-26 07:04:15.376466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:04:15.387721"], ["updated_at", "2017-06-26 07:04:15.387721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.401575"], ["updated_at", "2017-06-26 07:04:15.401575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:15.407772"], ["updated_at", "2017-06-26 07:04:15.407772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:15.408605"], ["updated_at", "2017-06-26 07:04:15.408605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.409558"], ["updated_at", "2017-06-26 07:04:15.409558"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.411452"], ["updated_at", "2017-06-26 07:04:15.411452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.416533"], ["updated_at", "2017-06-26 07:04:15.416533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.417583"], ["updated_at", "2017-06-26 07:04:15.417583"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.420388"], ["updated_at", "2017-06-26 07:04:15.420388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.426963"], ["updated_at", "2017-06-26 07:04:15.426963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.428273"], ["updated_at", "2017-06-26 07:04:15.428273"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:04:15.431295"], ["updated_at", "2017-06-26 07:04:15.431295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:04:15.434488"], ["updated_at", "2017-06-26 07:04:15.434488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.452538"], ["updated_at", "2017-06-26 07:04:15.452538"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.458120"], ["updated_at", "2017-06-26 07:04:15.458120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.463460"], ["updated_at", "2017-06-26 07:04:15.463460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.464265"], ["updated_at", "2017-06-26 07:04:15.464265"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.467257"], ["updated_at", "2017-06-26 07:04:15.467257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.473284"], ["updated_at", "2017-06-26 07:04:15.473284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.481831"], ["updated_at", "2017-06-26 07:04:15.481831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:04:15.491057"], ["updated_at", "2017-06-26 07:04:15.491057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:04:15.492719"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:15.494208"], ["updated_at", "2017-06-26 07:04:15.494208"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:04:15.495104"], ["updated_at", "2017-06-26 07:04:15.495104"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.499100"], ["updated_at", "2017-06-26 07:04:15.499100"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.500383"], ["updated_at", "2017-06-26 07:04:15.500383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.505188"], ["updated_at", "2017-06-26 07:04:15.505188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.507246"], ["updated_at", "2017-06-26 07:04:15.507246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.510012"], ["updated_at", "2017-06-26 07:04:15.510012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.510797"], ["updated_at", "2017-06-26 07:04:15.510797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.511552"], ["updated_at", "2017-06-26 07:04:15.511552"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.513763"], ["updated_at", "2017-06-26 07:04:15.513763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.514442"], ["updated_at", "2017-06-26 07:04:15.514442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.516288"], ["updated_at", "2017-06-26 07:04:15.516288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:15.524290"], ["updated_at", "2017-06-26 07:04:15.524290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.528857"], ["updated_at", "2017-06-26 07:04:15.528857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.529906"], ["updated_at", "2017-06-26 07:04:15.529906"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.560369"], ["updated_at", "2017-06-26 07:04:15.560369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:04:15.566299"], ["updated_at", "2017-06-26 07:04:15.566299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:04:15.567205"], ["updated_at", "2017-06-26 07:04:15.567205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:04:15.592952"], ["updated_at", "2017-06-26 07:04:15.592952"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.612928"], ["updated_at", "2017-06-26 07:04:15.612928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.618451"], ["updated_at", "2017-06-26 07:04:15.618451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:15.621157"], ["updated_at", "2017-06-26 07:04:15.621157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:04:18.672524"], ["updated_at", "2017-06-26 07:04:18.672524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 07:04:18.680392"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:18.682138"], ["updated_at", "2017-06-26 07:04:18.682138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:04:18.683088"], ["updated_at", "2017-06-26 07:04:18.683088"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:18.689960"], ["updated_at", "2017-06-26 07:04:18.689960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:18.691249"], ["updated_at", "2017-06-26 07:04:18.691249"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:18.703027"], ["updated_at", "2017-06-26 07:04:18.703027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:18.703924"], ["updated_at", "2017-06-26 07:04:18.703924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.719030"], ["updated_at", "2017-06-26 07:04:18.719030"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.729177"], ["updated_at", "2017-06-26 07:04:18.729177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.737057"], ["updated_at", "2017-06-26 07:04:18.737057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.738064"], ["updated_at", "2017-06-26 07:04:18.738064"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.740525"], ["updated_at", "2017-06-26 07:04:18.740525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.747254"], ["updated_at", "2017-06-26 07:04:18.747254"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.748235"], ["updated_at", "2017-06-26 07:04:18.748235"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.750669"], ["updated_at", "2017-06-26 07:04:18.750669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.754511"], ["updated_at", "2017-06-26 07:04:18.754511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.759857"], ["updated_at", "2017-06-26 07:04:18.759857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.761059"], ["updated_at", "2017-06-26 07:04:18.761059"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.796797"], ["updated_at", "2017-06-26 07:04:18.796797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.803934"], ["updated_at", "2017-06-26 07:04:18.803934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.813404"], ["updated_at", "2017-06-26 07:04:18.813404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.821698"], ["updated_at", "2017-06-26 07:04:18.821698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.822664"], ["updated_at", "2017-06-26 07:04:18.822664"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.825084"], ["updated_at", "2017-06-26 07:04:18.825084"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.825850"], ["updated_at", "2017-06-26 07:04:18.825850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.826703"], ["updated_at", "2017-06-26 07:04:18.826703"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.829157"], ["updated_at", "2017-06-26 07:04:18.829157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.831426"], ["updated_at", "2017-06-26 07:04:18.831426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.833437"], ["updated_at", "2017-06-26 07:04:18.833437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.836633"], ["updated_at", "2017-06-26 07:04:18.836633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.840665"], ["updated_at", "2017-06-26 07:04:18.840665"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.842011"], ["updated_at", "2017-06-26 07:04:18.842011"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.844724"], ["updated_at", "2017-06-26 07:04:18.844724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.845989"], ["updated_at", "2017-06-26 07:04:18.845989"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.851452"], ["updated_at", "2017-06-26 07:04:18.851452"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.852278"], ["updated_at", "2017-06-26 07:04:18.852278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.863622"], ["updated_at", "2017-06-26 07:04:18.863622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.867692"], ["updated_at", "2017-06-26 07:04:18.867692"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.875065"], ["updated_at", "2017-06-26 07:04:18.875065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.876056"], ["updated_at", "2017-06-26 07:04:18.876056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.878791"], ["updated_at", "2017-06-26 07:04:18.878791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.882552"], ["updated_at", "2017-06-26 07:04:18.882552"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.884761"], ["updated_at", "2017-06-26 07:04:18.884761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.888782"], ["updated_at", "2017-06-26 07:04:18.888782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:04:18.894361"], ["updated_at", "2017-06-26 07:04:18.894361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:04:18.896719"], ["updated_at", "2017-06-26 07:04:18.896719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.906562"], ["updated_at", "2017-06-26 07:04:18.906562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.909299"], ["updated_at", "2017-06-26 07:04:18.909299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.912767"], ["updated_at", "2017-06-26 07:04:18.912767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.919208"], ["updated_at", "2017-06-26 07:04:18.919208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.920330"], ["updated_at", "2017-06-26 07:04:18.920330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.921227"], ["updated_at", "2017-06-26 07:04:18.921227"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:18.927438"], ["updated_at", "2017-06-26 07:04:18.927438"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.935628"], ["updated_at", "2017-06-26 07:04:18.935628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.936975"], ["updated_at", "2017-06-26 07:04:18.936975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.943098"], ["updated_at", "2017-06-26 07:04:18.943098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.947472"], ["updated_at", "2017-06-26 07:04:18.947472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:04:18.948435"], ["updated_at", "2017-06-26 07:04:18.948435"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:04:18.953096"], ["updated_at", "2017-06-26 07:04:18.953096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:18.963048"], ["updated_at", "2017-06-26 07:04:18.963048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:18.964019"], ["updated_at", "2017-06-26 07:04:18.964019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:18.965555"], ["updated_at", "2017-06-26 07:04:18.965555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:18.966365"], ["updated_at", "2017-06-26 07:04:18.966365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.970321"], ["updated_at", "2017-06-26 07:04:18.970321"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.971251"], ["updated_at", "2017-06-26 07:04:18.971251"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.973706"], ["updated_at", "2017-06-26 07:04:18.973706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.974570"], ["updated_at", "2017-06-26 07:04:18.974570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.976925"], ["updated_at", "2017-06-26 07:04:18.976925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.2ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.985233"], ["updated_at", "2017-06-26 07:04:18.985233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.986196"], ["updated_at", "2017-06-26 07:04:18.986196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:18.996585"], ["updated_at", "2017-06-26 07:04:18.996585"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:18.998991"], ["updated_at", "2017-06-26 07:04:18.998991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:18.999916"], ["updated_at", "2017-06-26 07:04:18.999916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:19.000775"], ["updated_at", "2017-06-26 07:04:19.000775"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:19.003639"], ["updated_at", "2017-06-26 07:04:19.003639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:19.004639"], ["updated_at", "2017-06-26 07:04:19.004639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:04:19.111480"], ["updated_at", "2017-06-26 07:04:19.111480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:04:19.112250"], ["updated_at", "2017-06-26 07:04:19.112250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:04:19.127350"], ["updated_at", "2017-06-26 07:04:19.127350"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:19.133844"], ["updated_at", "2017-06-26 07:04:19.133844"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:19.149126"], ["updated_at", "2017-06-26 07:04:19.149126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:19.153939"], ["updated_at", "2017-06-26 07:04:19.153939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:19.156397"], ["updated_at", "2017-06-26 07:04:19.156397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:04:21.694398"], ["updated_at", "2017-06-26 07:04:21.694398"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.729261"], ["updated_at", "2017-06-26 07:04:21.729261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.730235"], ["updated_at", "2017-06-26 07:04:21.730235"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:21.732951"], ["updated_at", "2017-06-26 07:04:21.732951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:21.733826"], ["updated_at", "2017-06-26 07:04:21.733826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.734804"], ["updated_at", "2017-06-26 07:04:21.734804"]]  (0.2ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.737601"], ["updated_at", "2017-06-26 07:04:21.737601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.738660"], ["updated_at", "2017-06-26 07:04:21.738660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.743648"], ["updated_at", "2017-06-26 07:04:21.743648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.747588"], ["updated_at", "2017-06-26 07:04:21.747588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.748601"], ["updated_at", "2017-06-26 07:04:21.748601"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.751608"], ["updated_at", "2017-06-26 07:04:21.751608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.753917"], ["updated_at", "2017-06-26 07:04:21.753917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.757022"], ["updated_at", "2017-06-26 07:04:21.757022"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.759013"], ["updated_at", "2017-06-26 07:04:21.759013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.761120"], ["updated_at", "2017-06-26 07:04:21.761120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.765468"], ["updated_at", "2017-06-26 07:04:21.765468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.771800"], ["updated_at", "2017-06-26 07:04:21.771800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.774073"], ["updated_at", "2017-06-26 07:04:21.774073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:21.777393"], ["updated_at", "2017-06-26 07:04:21.777393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:21.778288"], ["updated_at", "2017-06-26 07:04:21.778288"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:21.780328"], ["updated_at", "2017-06-26 07:04:21.780328"]]  (0.0ms) commit transaction  (0.6ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:21.781890"], ["updated_at", "2017-06-26 07:04:21.781890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.794477"], ["updated_at", "2017-06-26 07:04:21.794477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.795286"], ["updated_at", "2017-06-26 07:04:21.795286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.797591"], ["updated_at", "2017-06-26 07:04:21.797591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.801876"], ["updated_at", "2017-06-26 07:04:21.801876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.810841"], ["updated_at", "2017-06-26 07:04:21.810841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.818395"], ["updated_at", "2017-06-26 07:04:21.818395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.819445"], ["updated_at", "2017-06-26 07:04:21.819445"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:04:21.837631"], ["updated_at", "2017-06-26 07:04:21.837631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:04:21.839735"], ["updated_at", "2017-06-26 07:04:21.839735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.860569"], ["updated_at", "2017-06-26 07:04:21.860569"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.861418"], ["updated_at", "2017-06-26 07:04:21.861418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.872117"], ["updated_at", "2017-06-26 07:04:21.872117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.873093"], ["updated_at", "2017-06-26 07:04:21.873093"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.875152"], ["updated_at", "2017-06-26 07:04:21.875152"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:04:21.876070"], ["updated_at", "2017-06-26 07:04:21.876070"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:21.882157"], ["updated_at", "2017-06-26 07:04:21.882157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.886960"], ["updated_at", "2017-06-26 07:04:21.886960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.888490"], ["updated_at", "2017-06-26 07:04:21.888490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.889274"], ["updated_at", "2017-06-26 07:04:21.889274"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.893967"], ["updated_at", "2017-06-26 07:04:21.893967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.894828"], ["updated_at", "2017-06-26 07:04:21.894828"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.895550"], ["updated_at", "2017-06-26 07:04:21.895550"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.897980"], ["updated_at", "2017-06-26 07:04:21.897980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:21.902550"], ["updated_at", "2017-06-26 07:04:21.902550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:21.903495"], ["updated_at", "2017-06-26 07:04:21.903495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:21.905312"], ["updated_at", "2017-06-26 07:04:21.905312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:21.906164"], ["updated_at", "2017-06-26 07:04:21.906164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.913257"], ["updated_at", "2017-06-26 07:04:21.913257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.914181"], ["updated_at", "2017-06-26 07:04:21.914181"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.916845"], ["updated_at", "2017-06-26 07:04:21.916845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.921785"], ["updated_at", "2017-06-26 07:04:21.921785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.922663"], ["updated_at", "2017-06-26 07:04:21.922663"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.924660"], ["updated_at", "2017-06-26 07:04:21.924660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.2ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.938587"], ["updated_at", "2017-06-26 07:04:21.938587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.939537"], ["updated_at", "2017-06-26 07:04:21.939537"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:04:21.945963"], ["updated_at", "2017-06-26 07:04:21.945963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:04:21.947758"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:21.949409"], ["updated_at", "2017-06-26 07:04:21.949409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:04:21.950495"], ["updated_at", "2017-06-26 07:04:21.950495"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.954531"], ["updated_at", "2017-06-26 07:04:21.954531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.959610"], ["updated_at", "2017-06-26 07:04:21.959610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.960472"], ["updated_at", "2017-06-26 07:04:21.960472"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.963078"], ["updated_at", "2017-06-26 07:04:21.963078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.968666"], ["updated_at", "2017-06-26 07:04:21.968666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.969622"], ["updated_at", "2017-06-26 07:04:21.969622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.974971"], ["updated_at", "2017-06-26 07:04:21.974971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.979537"], ["updated_at", "2017-06-26 07:04:21.979537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.980494"], ["updated_at", "2017-06-26 07:04:21.980494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.986999"], ["updated_at", "2017-06-26 07:04:21.986999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.992177"], ["updated_at", "2017-06-26 07:04:21.992177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:21.992994"], ["updated_at", "2017-06-26 07:04:21.992994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:22.000980"], ["updated_at", "2017-06-26 07:04:22.000980"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:22.004508"], ["updated_at", "2017-06-26 07:04:22.004508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:22.006725"], ["updated_at", "2017-06-26 07:04:22.006725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:04:22.136416"], ["updated_at", "2017-06-26 07:04:22.136416"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:22.147304"], ["updated_at", "2017-06-26 07:04:22.147304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:22.152290"], ["updated_at", "2017-06-26 07:04:22.152290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:22.154759"], ["updated_at", "2017-06-26 07:04:22.154759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:04:22.179668"], ["updated_at", "2017-06-26 07:04:22.179668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:04:22.180448"], ["updated_at", "2017-06-26 07:04:22.180448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:22.196452"], ["updated_at", "2017-06-26 07:04:22.196452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.751757"], ["updated_at", "2017-06-26 07:04:24.751757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.757004"], ["updated_at", "2017-06-26 07:04:24.757004"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:04:24.784980"], ["updated_at", "2017-06-26 07:04:24.784980"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:04:24.787572"], ["updated_at", "2017-06-26 07:04:24.787572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:04:24.809785"], ["updated_at", "2017-06-26 07:04:24.809785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 07:04:24.812159"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:24.813678"], ["updated_at", "2017-06-26 07:04:24.813678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:04:24.814787"], ["updated_at", "2017-06-26 07:04:24.814787"]]  (0.1ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.824767"], ["updated_at", "2017-06-26 07:04:24.824767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.825927"], ["updated_at", "2017-06-26 07:04:24.825927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.832221"], ["updated_at", "2017-06-26 07:04:24.832221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.833410"], ["updated_at", "2017-06-26 07:04:24.833410"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.847795"], ["updated_at", "2017-06-26 07:04:24.847795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.848695"], ["updated_at", "2017-06-26 07:04:24.848695"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.860105"], ["updated_at", "2017-06-26 07:04:24.860105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.861053"], ["updated_at", "2017-06-26 07:04:24.861053"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.863295"], ["updated_at", "2017-06-26 07:04:24.863295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.864215"], ["updated_at", "2017-06-26 07:04:24.864215"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.866518"], ["updated_at", "2017-06-26 07:04:24.866518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.871380"], ["updated_at", "2017-06-26 07:04:24.871380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.877405"], ["updated_at", "2017-06-26 07:04:24.877405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.878406"], ["updated_at", "2017-06-26 07:04:24.878406"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.881334"], ["updated_at", "2017-06-26 07:04:24.881334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.882701"], ["updated_at", "2017-06-26 07:04:24.882701"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.885233"], ["updated_at", "2017-06-26 07:04:24.885233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.886109"], ["updated_at", "2017-06-26 07:04:24.886109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.886754"], ["updated_at", "2017-06-26 07:04:24.886754"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.889496"], ["updated_at", "2017-06-26 07:04:24.889496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.893732"], ["updated_at", "2017-06-26 07:04:24.893732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.894599"], ["updated_at", "2017-06-26 07:04:24.894599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.900837"], ["updated_at", "2017-06-26 07:04:24.900837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.918531"], ["updated_at", "2017-06-26 07:04:24.918531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:04:24.925776"], ["updated_at", "2017-06-26 07:04:24.925776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.934620"], ["updated_at", "2017-06-26 07:04:24.934620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.936817"], ["updated_at", "2017-06-26 07:04:24.936817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.940309"], ["updated_at", "2017-06-26 07:04:24.940309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:24.947506"], ["updated_at", "2017-06-26 07:04:24.947506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.952398"], ["updated_at", "2017-06-26 07:04:24.952398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.953314"], ["updated_at", "2017-06-26 07:04:24.953314"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.956078"], ["updated_at", "2017-06-26 07:04:24.956078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:24.960002"], ["updated_at", "2017-06-26 07:04:24.960002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:24.960947"], ["updated_at", "2017-06-26 07:04:24.960947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:24.962427"], ["updated_at", "2017-06-26 07:04:24.962427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:24.963137"], ["updated_at", "2017-06-26 07:04:24.963137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:24.971043"], ["updated_at", "2017-06-26 07:04:24.971043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:24.972233"], ["updated_at", "2017-06-26 07:04:24.972233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.973124"], ["updated_at", "2017-06-26 07:04:24.973124"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.975287"], ["updated_at", "2017-06-26 07:04:24.975287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.976109"], ["updated_at", "2017-06-26 07:04:24.976109"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.977997"], ["updated_at", "2017-06-26 07:04:24.977997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.978817"], ["updated_at", "2017-06-26 07:04:24.978817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.979547"], ["updated_at", "2017-06-26 07:04:24.979547"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.981906"], ["updated_at", "2017-06-26 07:04:24.981906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.982676"], ["updated_at", "2017-06-26 07:04:24.982676"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:24.984988"], ["updated_at", "2017-06-26 07:04:24.984988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.003524"], ["updated_at", "2017-06-26 07:04:25.003524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.005022"], ["updated_at", "2017-06-26 07:04:25.005022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.014658"], ["updated_at", "2017-06-26 07:04:25.014658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.016898"], ["updated_at", "2017-06-26 07:04:25.016898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.020072"], ["updated_at", "2017-06-26 07:04:25.020072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.025265"], ["updated_at", "2017-06-26 07:04:25.025265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.028067"], ["updated_at", "2017-06-26 07:04:25.028067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.031773"], ["updated_at", "2017-06-26 07:04:25.031773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.033913"], ["updated_at", "2017-06-26 07:04:25.033913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.035978"], ["updated_at", "2017-06-26 07:04:25.035978"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.041886"], ["updated_at", "2017-06-26 07:04:25.041886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.042744"], ["updated_at", "2017-06-26 07:04:25.042744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.045088"], ["updated_at", "2017-06-26 07:04:25.045088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.048286"], ["updated_at", "2017-06-26 07:04:25.048286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.052943"], ["updated_at", "2017-06-26 07:04:25.052943"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.055071"], ["updated_at", "2017-06-26 07:04:25.055071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:04:25.055866"], ["updated_at", "2017-06-26 07:04:25.055866"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:25.061090"], ["updated_at", "2017-06-26 07:04:25.061090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:25.061976"], ["updated_at", "2017-06-26 07:04:25.061976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:25.063560"], ["updated_at", "2017-06-26 07:04:25.063560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:25.064277"], ["updated_at", "2017-06-26 07:04:25.064277"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.067814"], ["updated_at", "2017-06-26 07:04:25.067814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.208414"], ["updated_at", "2017-06-26 07:04:25.208414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:04:25.226420"], ["updated_at", "2017-06-26 07:04:25.226420"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:04:25.229648"], ["updated_at", "2017-06-26 07:04:25.229648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:04:25.230442"], ["updated_at", "2017-06-26 07:04:25.230442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.248768"], ["updated_at", "2017-06-26 07:04:25.248768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.253190"], ["updated_at", "2017-06-26 07:04:25.253190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:25.255792"], ["updated_at", "2017-06-26 07:04:25.255792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:04:53.401510"], ["updated_at", "2017-06-26 07:04:53.401510"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:04:53.447054"], ["updated_at", "2017-06-26 07:04:53.447054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:04:53.448112"], ["updated_at", "2017-06-26 07:04:53.448112"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.475170"], ["updated_at", "2017-06-26 07:04:53.475170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.481448"], ["updated_at", "2017-06-26 07:04:53.481448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.484691"], ["updated_at", "2017-06-26 07:04:53.484691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.521480"], ["updated_at", "2017-06-26 07:04:53.521480"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.722207"], ["updated_at", "2017-06-26 07:04:53.722207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.725172"], ["updated_at", "2017-06-26 07:04:53.725172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:04:53.731220"], ["updated_at", "2017-06-26 07:04:53.731220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 07:04:53.733417"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:53.734410"], ["updated_at", "2017-06-26 07:04:53.734410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:04:53.735152"], ["updated_at", "2017-06-26 07:04:53.735152"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.740185"], ["updated_at", "2017-06-26 07:04:53.740185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.740892"], ["updated_at", "2017-06-26 07:04:53.740892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.745256"], ["updated_at", "2017-06-26 07:04:53.745256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.746069"], ["updated_at", "2017-06-26 07:04:53.746069"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.747660"], ["updated_at", "2017-06-26 07:04:53.747660"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:04:53.750472"], ["updated_at", "2017-06-26 07:04:53.750472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.762451"], ["updated_at", "2017-06-26 07:04:53.762451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.763223"], ["updated_at", "2017-06-26 07:04:53.763223"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.765209"], ["updated_at", "2017-06-26 07:04:53.765209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.770081"], ["updated_at", "2017-06-26 07:04:53.770081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.780321"], ["updated_at", "2017-06-26 07:04:53.780321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.781242"], ["updated_at", "2017-06-26 07:04:53.781242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.788359"], ["updated_at", "2017-06-26 07:04:53.788359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.789267"], ["updated_at", "2017-06-26 07:04:53.789267"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.791514"], ["updated_at", "2017-06-26 07:04:53.791514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.793431"], ["updated_at", "2017-06-26 07:04:53.793431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.797177"], ["updated_at", "2017-06-26 07:04:53.797177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.799065"], ["updated_at", "2017-06-26 07:04:53.799065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.802363"], ["updated_at", "2017-06-26 07:04:53.802363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.807236"], ["updated_at", "2017-06-26 07:04:53.807236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.807979"], ["updated_at", "2017-06-26 07:04:53.807979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.808757"], ["updated_at", "2017-06-26 07:04:53.808757"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.811358"], ["updated_at", "2017-06-26 07:04:53.811358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.812202"], ["updated_at", "2017-06-26 07:04:53.812202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.814662"], ["updated_at", "2017-06-26 07:04:53.814662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.818169"], ["updated_at", "2017-06-26 07:04:53.818169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.822431"], ["updated_at", "2017-06-26 07:04:53.822431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:04:53.823258"], ["updated_at", "2017-06-26 07:04:53.823258"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.825710"], ["updated_at", "2017-06-26 07:04:53.825710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.826583"], ["updated_at", "2017-06-26 07:04:53.826583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.835976"], ["updated_at", "2017-06-26 07:04:53.835976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.836827"], ["updated_at", "2017-06-26 07:04:53.836827"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:53.839428"], ["updated_at", "2017-06-26 07:04:53.839428"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:53.840296"], ["updated_at", "2017-06-26 07:04:53.840296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:53.841910"], ["updated_at", "2017-06-26 07:04:53.841910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:53.842697"], ["updated_at", "2017-06-26 07:04:53.842697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.851325"], ["updated_at", "2017-06-26 07:04:53.851325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.852075"], ["updated_at", "2017-06-26 07:04:53.852075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.853949"], ["updated_at", "2017-06-26 07:04:53.853949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:53.857221"], ["updated_at", "2017-06-26 07:04:53.857221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:53.858126"], ["updated_at", "2017-06-26 07:04:53.858126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.859595"], ["updated_at", "2017-06-26 07:04:53.859595"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.861959"], ["updated_at", "2017-06-26 07:04:53.861959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.862938"], ["updated_at", "2017-06-26 07:04:53.862938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.871322"], ["updated_at", "2017-06-26 07:04:53.871322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.876373"], ["updated_at", "2017-06-26 07:04:53.876373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.877467"], ["updated_at", "2017-06-26 07:04:53.877467"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.879905"], ["updated_at", "2017-06-26 07:04:53.879905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.884208"], ["updated_at", "2017-06-26 07:04:53.884208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:53.890259"], ["updated_at", "2017-06-26 07:04:53.890259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.905940"], ["updated_at", "2017-06-26 07:04:53.905940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.909934"], ["updated_at", "2017-06-26 07:04:53.909934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.910975"], ["updated_at", "2017-06-26 07:04:53.910975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.911905"], ["updated_at", "2017-06-26 07:04:53.911905"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.914272"], ["updated_at", "2017-06-26 07:04:53.914272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.916826"], ["updated_at", "2017-06-26 07:04:53.916826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.918903"], ["updated_at", "2017-06-26 07:04:53.918903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.922136"], ["updated_at", "2017-06-26 07:04:53.922136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:04:53.927764"], ["updated_at", "2017-06-26 07:04:53.927764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:04:53.930413"], ["updated_at", "2017-06-26 07:04:53.930413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:53.938863"], ["updated_at", "2017-06-26 07:04:53.938863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:53.939679"], ["updated_at", "2017-06-26 07:04:53.939679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:53.941184"], ["updated_at", "2017-06-26 07:04:53.941184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:53.942038"], ["updated_at", "2017-06-26 07:04:53.942038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.945143"], ["updated_at", "2017-06-26 07:04:53.945143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.951002"], ["updated_at", "2017-06-26 07:04:53.951002"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.952659"], ["updated_at", "2017-06-26 07:04:53.952659"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.955744"], ["updated_at", "2017-06-26 07:04:53.955744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.956702"], ["updated_at", "2017-06-26 07:04:53.956702"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.959453"], ["updated_at", "2017-06-26 07:04:53.959453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:53.960384"], ["updated_at", "2017-06-26 07:04:53.960384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:56.827037"], ["updated_at", "2017-06-26 07:04:56.827037"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:04:56.854503"], ["updated_at", "2017-06-26 07:04:56.854503"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:04:56.862545"], ["updated_at", "2017-06-26 07:04:56.862545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:04:56.863558"], ["updated_at", "2017-06-26 07:04:56.863558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.3ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:56.935878"], ["updated_at", "2017-06-26 07:04:56.935878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:56.942114"], ["updated_at", "2017-06-26 07:04:56.942114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:56.945548"], ["updated_at", "2017-06-26 07:04:56.945548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.106848"], ["updated_at", "2017-06-26 07:04:57.106848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.108058"], ["updated_at", "2017-06-26 07:04:57.108058"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.110905"], ["updated_at", "2017-06-26 07:04:57.110905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.111684"], ["updated_at", "2017-06-26 07:04:57.111684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.117122"], ["updated_at", "2017-06-26 07:04:57.117122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.119660"], ["updated_at", "2017-06-26 07:04:57.119660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.123971"], ["updated_at", "2017-06-26 07:04:57.123971"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.124918"], ["updated_at", "2017-06-26 07:04:57.124918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.133851"], ["updated_at", "2017-06-26 07:04:57.133851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:57.138801"], ["updated_at", "2017-06-26 07:04:57.138801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:57.139791"], ["updated_at", "2017-06-26 07:04:57.139791"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:57.141974"], ["updated_at", "2017-06-26 07:04:57.141974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:57.142766"], ["updated_at", "2017-06-26 07:04:57.142766"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.149997"], ["updated_at", "2017-06-26 07:04:57.149997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.150891"], ["updated_at", "2017-06-26 07:04:57.150891"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.153268"], ["updated_at", "2017-06-26 07:04:57.153268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.154066"], ["updated_at", "2017-06-26 07:04:57.154066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.163153"], ["updated_at", "2017-06-26 07:04:57.163153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.165139"], ["updated_at", "2017-06-26 07:04:57.165139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.166963"], ["updated_at", "2017-06-26 07:04:57.166963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:04:57.179170"], ["updated_at", "2017-06-26 07:04:57.179170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.198105"], ["updated_at", "2017-06-26 07:04:57.198105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.198941"], ["updated_at", "2017-06-26 07:04:57.198941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.205682"], ["updated_at", "2017-06-26 07:04:57.205682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.207927"], ["updated_at", "2017-06-26 07:04:57.207927"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:04:57.226861"], ["updated_at", "2017-06-26 07:04:57.226861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:04:57.228152"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:57.229106"], ["updated_at", "2017-06-26 07:04:57.229106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:04:57.230284"], ["updated_at", "2017-06-26 07:04:57.230284"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:04:57.234360"], ["updated_at", "2017-06-26 07:04:57.234360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:04:57.235283"], ["updated_at", "2017-06-26 07:04:57.235283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:04:57.237046"], ["updated_at", "2017-06-26 07:04:57.237046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:04:57.237852"], ["updated_at", "2017-06-26 07:04:57.237852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:04:57.244139"], ["updated_at", "2017-06-26 07:04:57.244139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.248513"], ["updated_at", "2017-06-26 07:04:57.248513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.253746"], ["updated_at", "2017-06-26 07:04:57.253746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.254502"], ["updated_at", "2017-06-26 07:04:57.254502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.256616"], ["updated_at", "2017-06-26 07:04:57.256616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.260333"], ["updated_at", "2017-06-26 07:04:57.260333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:04:57.261151"], ["updated_at", "2017-06-26 07:04:57.261151"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.263729"], ["updated_at", "2017-06-26 07:04:57.263729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.264628"], ["updated_at", "2017-06-26 07:04:57.264628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.265369"], ["updated_at", "2017-06-26 07:04:57.265369"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.267965"], ["updated_at", "2017-06-26 07:04:57.267965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.273183"], ["updated_at", "2017-06-26 07:04:57.273183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.278734"], ["updated_at", "2017-06-26 07:04:57.278734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.279617"], ["updated_at", "2017-06-26 07:04:57.279617"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.282594"], ["updated_at", "2017-06-26 07:04:57.282594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.283442"], ["updated_at", "2017-06-26 07:04:57.283442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.285926"], ["updated_at", "2017-06-26 07:04:57.285926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.289417"], ["updated_at", "2017-06-26 07:04:57.289417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.290154"], ["updated_at", "2017-06-26 07:04:57.290154"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:57.291955"], ["updated_at", "2017-06-26 07:04:57.291955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:04:57.293012"], ["updated_at", "2017-06-26 07:04:57.293012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.293779"], ["updated_at", "2017-06-26 07:04:57.293779"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.295938"], ["updated_at", "2017-06-26 07:04:57.295938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.296774"], ["updated_at", "2017-06-26 07:04:57.296774"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.300677"], ["updated_at", "2017-06-26 07:04:57.300677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.301400"], ["updated_at", "2017-06-26 07:04:57.301400"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.304411"], ["updated_at", "2017-06-26 07:04:57.304411"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.311512"], ["updated_at", "2017-06-26 07:04:57.311512"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.320300"], ["updated_at", "2017-06-26 07:04:57.320300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.322712"], ["updated_at", "2017-06-26 07:04:57.322712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.327223"], ["updated_at", "2017-06-26 07:04:57.327223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.333426"], ["updated_at", "2017-06-26 07:04:57.333426"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.335389"], ["updated_at", "2017-06-26 07:04:57.335389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.336210"], ["updated_at", "2017-06-26 07:04:57.336210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.337062"], ["updated_at", "2017-06-26 07:04:57.337062"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.340568"], ["updated_at", "2017-06-26 07:04:57.340568"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.346720"], ["updated_at", "2017-06-26 07:04:57.346720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.347567"], ["updated_at", "2017-06-26 07:04:57.347567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.353022"], ["updated_at", "2017-06-26 07:04:57.353022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.357288"], ["updated_at", "2017-06-26 07:04:57.357288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.358287"], ["updated_at", "2017-06-26 07:04:57.358287"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:04:57.361440"], ["updated_at", "2017-06-26 07:04:57.361440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:04:57.364192"], ["updated_at", "2017-06-26 07:04:57.364192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:04:57.380531"], ["updated_at", "2017-06-26 07:04:57.380531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.093859"], ["updated_at", "2017-06-26 07:05:00.093859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.127549"], ["updated_at", "2017-06-26 07:05:00.127549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.130863"], ["updated_at", "2017-06-26 07:05:00.130863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:00.154720"], ["updated_at", "2017-06-26 07:05:00.154720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:00.155625"], ["updated_at", "2017-06-26 07:05:00.155625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:00.186459"], ["updated_at", "2017-06-26 07:05:00.186459"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.204336"], ["updated_at", "2017-06-26 07:05:00.204336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.242186"], ["updated_at", "2017-06-26 07:05:00.242186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.246221"], ["updated_at", "2017-06-26 07:05:00.246221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.247141"], ["updated_at", "2017-06-26 07:05:00.247141"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.263527"], ["updated_at", "2017-06-26 07:05:00.263527"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:00.272228"], ["updated_at", "2017-06-26 07:05:00.272228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.276490"], ["updated_at", "2017-06-26 07:05:00.276490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:00.277308"], ["updated_at", "2017-06-26 07:05:00.277308"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.279559"], ["updated_at", "2017-06-26 07:05:00.279559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.280387"], ["updated_at", "2017-06-26 07:05:00.280387"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.282901"], ["updated_at", "2017-06-26 07:05:00.282901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.287852"], ["updated_at", "2017-06-26 07:05:00.287852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.288681"], ["updated_at", "2017-06-26 07:05:00.288681"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:00.290440"], ["updated_at", "2017-06-26 07:05:00.290440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:00.292870"], ["updated_at", "2017-06-26 07:05:00.292870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.301868"], ["updated_at", "2017-06-26 07:05:00.301868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.304445"], ["updated_at", "2017-06-26 07:05:00.304445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.307699"], ["updated_at", "2017-06-26 07:05:00.307699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.312345"], ["updated_at", "2017-06-26 07:05:00.312345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.314348"], ["updated_at", "2017-06-26 07:05:00.314348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.320256"], ["updated_at", "2017-06-26 07:05:00.320256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.322898"], ["updated_at", "2017-06-26 07:05:00.322898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.337076"], ["updated_at", "2017-06-26 07:05:00.337076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.337852"], ["updated_at", "2017-06-26 07:05:00.337852"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.340482"], ["updated_at", "2017-06-26 07:05:00.340482"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.341389"], ["updated_at", "2017-06-26 07:05:00.341389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.343598"], ["updated_at", "2017-06-26 07:05:00.343598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:00.347440"], ["updated_at", "2017-06-26 07:05:00.347440"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:00.348679"], ["updated_at", "2017-06-26 07:05:00.348679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:00.350432"], ["updated_at", "2017-06-26 07:05:00.350432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:00.351197"], ["updated_at", "2017-06-26 07:05:00.351197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.354657"], ["updated_at", "2017-06-26 07:05:00.354657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.355567"], ["updated_at", "2017-06-26 07:05:00.355567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.360142"], ["updated_at", "2017-06-26 07:05:00.360142"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.361842"], ["updated_at", "2017-06-26 07:05:00.361842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.367323"], ["updated_at", "2017-06-26 07:05:00.367323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.368315"], ["updated_at", "2017-06-26 07:05:00.368315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.369338"], ["updated_at", "2017-06-26 07:05:00.369338"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.372011"], ["updated_at", "2017-06-26 07:05:00.372011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.372833"], ["updated_at", "2017-06-26 07:05:00.372833"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.375708"], ["updated_at", "2017-06-26 07:05:00.375708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.382153"], ["updated_at", "2017-06-26 07:05:00.382153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:00.388172"], ["updated_at", "2017-06-26 07:05:00.388172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:00.389080"], ["updated_at", "2017-06-26 07:05:00.389080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.389957"], ["updated_at", "2017-06-26 07:05:00.389957"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.391762"], ["updated_at", "2017-06-26 07:05:00.391762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.392517"], ["updated_at", "2017-06-26 07:05:00.392517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.397869"], ["updated_at", "2017-06-26 07:05:00.397869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.404332"], ["updated_at", "2017-06-26 07:05:00.404332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.405159"], ["updated_at", "2017-06-26 07:05:00.405159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.420964"], ["updated_at", "2017-06-26 07:05:00.420964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.422014"], ["updated_at", "2017-06-26 07:05:00.422014"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.424387"], ["updated_at", "2017-06-26 07:05:00.424387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.426692"], ["updated_at", "2017-06-26 07:05:00.426692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.429105"], ["updated_at", "2017-06-26 07:05:00.429105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.432674"], ["updated_at", "2017-06-26 07:05:00.432674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:00.439509"], ["updated_at", "2017-06-26 07:05:00.439509"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 07:05:00.441758"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:00.442734"], ["updated_at", "2017-06-26 07:05:00.442734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:00.443516"], ["updated_at", "2017-06-26 07:05:00.443516"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:00.448410"], ["updated_at", "2017-06-26 07:05:00.448410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.458056"], ["updated_at", "2017-06-26 07:05:00.458056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.459130"], ["updated_at", "2017-06-26 07:05:00.459130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.461727"], ["updated_at", "2017-06-26 07:05:00.461727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.465979"], ["updated_at", "2017-06-26 07:05:00.465979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.466898"], ["updated_at", "2017-06-26 07:05:00.466898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:00.473948"], ["updated_at", "2017-06-26 07:05:00.473948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:00.474773"], ["updated_at", "2017-06-26 07:05:00.474773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:00.476325"], ["updated_at", "2017-06-26 07:05:00.476325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:00.477063"], ["updated_at", "2017-06-26 07:05:00.477063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.484102"], ["updated_at", "2017-06-26 07:05:00.484102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.484970"], ["updated_at", "2017-06-26 07:05:00.484970"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.487467"], ["updated_at", "2017-06-26 07:05:00.487467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.488310"], ["updated_at", "2017-06-26 07:05:00.488310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.489078"], ["updated_at", "2017-06-26 07:05:00.489078"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.491563"], ["updated_at", "2017-06-26 07:05:00.491563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.495105"], ["updated_at", "2017-06-26 07:05:00.495105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:00.495778"], ["updated_at", "2017-06-26 07:05:00.495778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.248094"], ["updated_at", "2017-06-26 07:05:03.248094"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.301322"], ["updated_at", "2017-06-26 07:05:03.301322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.307856"], ["updated_at", "2017-06-26 07:05:03.307856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.308807"], ["updated_at", "2017-06-26 07:05:03.308807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.311161"], ["updated_at", "2017-06-26 07:05:03.311161"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.314917"], ["updated_at", "2017-06-26 07:05:03.314917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.317615"], ["updated_at", "2017-06-26 07:05:03.317615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.319828"], ["updated_at", "2017-06-26 07:05:03.319828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:03.337348"], ["updated_at", "2017-06-26 07:05:03.337348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.350956"], ["updated_at", "2017-06-26 07:05:03.350956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.352061"], ["updated_at", "2017-06-26 07:05:03.352061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.353020"], ["updated_at", "2017-06-26 07:05:03.353020"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.355975"], ["updated_at", "2017-06-26 07:05:03.355975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.356810"], ["updated_at", "2017-06-26 07:05:03.356810"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.362249"], ["updated_at", "2017-06-26 07:05:03.362249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.363189"], ["updated_at", "2017-06-26 07:05:03.363189"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.365371"], ["updated_at", "2017-06-26 07:05:03.365371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.370176"], ["updated_at", "2017-06-26 07:05:03.370176"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:03.374482"], ["updated_at", "2017-06-26 07:05:03.374482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:03.377025"], ["updated_at", "2017-06-26 07:05:03.377025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.388306"], ["updated_at", "2017-06-26 07:05:03.388306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.389198"], ["updated_at", "2017-06-26 07:05:03.389198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.397290"], ["updated_at", "2017-06-26 07:05:03.397290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.398249"], ["updated_at", "2017-06-26 07:05:03.398249"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.422688"], ["updated_at", "2017-06-26 07:05:03.422688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.423575"], ["updated_at", "2017-06-26 07:05:03.423575"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.426624"], ["updated_at", "2017-06-26 07:05:03.426624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.435864"], ["updated_at", "2017-06-26 07:05:03.435864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.443506"], ["updated_at", "2017-06-26 07:05:03.443506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.444540"], ["updated_at", "2017-06-26 07:05:03.444540"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.446855"], ["updated_at", "2017-06-26 07:05:03.446855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.450090"], ["updated_at", "2017-06-26 07:05:03.450090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.453906"], ["updated_at", "2017-06-26 07:05:03.453906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:03.454832"], ["updated_at", "2017-06-26 07:05:03.454832"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.457588"], ["updated_at", "2017-06-26 07:05:03.457588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.458660"], ["updated_at", "2017-06-26 07:05:03.458660"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.459716"], ["updated_at", "2017-06-26 07:05:03.459716"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:03.463407"], ["updated_at", "2017-06-26 07:05:03.463407"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:03.464441"], ["updated_at", "2017-06-26 07:05:03.464441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.465346"], ["updated_at", "2017-06-26 07:05:03.465346"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.467926"], ["updated_at", "2017-06-26 07:05:03.467926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.473659"], ["updated_at", "2017-06-26 07:05:03.473659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.476386"], ["updated_at", "2017-06-26 07:05:03.476386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.479972"], ["updated_at", "2017-06-26 07:05:03.479972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.480823"], ["updated_at", "2017-06-26 07:05:03.480823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.491651"], ["updated_at", "2017-06-26 07:05:03.491651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.492737"], ["updated_at", "2017-06-26 07:05:03.492737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.495362"], ["updated_at", "2017-06-26 07:05:03.495362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:03.500427"], ["updated_at", "2017-06-26 07:05:03.500427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:05:03.501692"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:03.503245"], ["updated_at", "2017-06-26 07:05:03.503245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:03.504074"], ["updated_at", "2017-06-26 07:05:03.504074"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.508309"], ["updated_at", "2017-06-26 07:05:03.508309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:03.514007"], ["updated_at", "2017-06-26 07:05:03.514007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:03.515042"], ["updated_at", "2017-06-26 07:05:03.515042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:03.517061"], ["updated_at", "2017-06-26 07:05:03.517061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:03.518398"], ["updated_at", "2017-06-26 07:05:03.518398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.526317"], ["updated_at", "2017-06-26 07:05:03.526317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.527087"], ["updated_at", "2017-06-26 07:05:03.527087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.536662"], ["updated_at", "2017-06-26 07:05:03.536662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.537581"], ["updated_at", "2017-06-26 07:05:03.537581"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.539633"], ["updated_at", "2017-06-26 07:05:03.539633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.541900"], ["updated_at", "2017-06-26 07:05:03.541900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.557676"], ["updated_at", "2017-06-26 07:05:03.557676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.558588"], ["updated_at", "2017-06-26 07:05:03.558588"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.564528"], ["updated_at", "2017-06-26 07:05:03.564528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:03.573704"], ["updated_at", "2017-06-26 07:05:03.573704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.578199"], ["updated_at", "2017-06-26 07:05:03.578199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.579090"], ["updated_at", "2017-06-26 07:05:03.579090"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.582381"], ["updated_at", "2017-06-26 07:05:03.582381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:03.587986"], ["updated_at", "2017-06-26 07:05:03.587986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:03.588834"], ["updated_at", "2017-06-26 07:05:03.588834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:03.590533"], ["updated_at", "2017-06-26 07:05:03.590533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:03.591248"], ["updated_at", "2017-06-26 07:05:03.591248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.594349"], ["updated_at", "2017-06-26 07:05:03.594349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.595307"], ["updated_at", "2017-06-26 07:05:03.595307"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.597871"], ["updated_at", "2017-06-26 07:05:03.597871"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:03.614438"], ["updated_at", "2017-06-26 07:05:03.614438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:03.615583"], ["updated_at", "2017-06-26 07:05:03.615583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:03.629234"], ["updated_at", "2017-06-26 07:05:03.629234"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.656843"], ["updated_at", "2017-06-26 07:05:03.656843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.662371"], ["updated_at", "2017-06-26 07:05:03.662371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.665553"], ["updated_at", "2017-06-26 07:05:03.665553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:03.689855"], ["updated_at", "2017-06-26 07:05:03.689855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.333383"], ["updated_at", "2017-06-26 07:05:06.333383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.362044"], ["updated_at", "2017-06-26 07:05:06.362044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.374754"], ["updated_at", "2017-06-26 07:05:06.374754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.375802"], ["updated_at", "2017-06-26 07:05:06.375802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.384939"], ["updated_at", "2017-06-26 07:05:06.384939"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.385898"], ["updated_at", "2017-06-26 07:05:06.385898"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.388408"], ["updated_at", "2017-06-26 07:05:06.388408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.389372"], ["updated_at", "2017-06-26 07:05:06.389372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.390040"], ["updated_at", "2017-06-26 07:05:06.390040"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.392786"], ["updated_at", "2017-06-26 07:05:06.392786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.398200"], ["updated_at", "2017-06-26 07:05:06.398200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.399066"], ["updated_at", "2017-06-26 07:05:06.399066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.409292"], ["updated_at", "2017-06-26 07:05:06.409292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.413418"], ["updated_at", "2017-06-26 07:05:06.413418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.418869"], ["updated_at", "2017-06-26 07:05:06.418869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.419838"], ["updated_at", "2017-06-26 07:05:06.419838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.422013"], ["updated_at", "2017-06-26 07:05:06.422013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.425522"], ["updated_at", "2017-06-26 07:05:06.425522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.426353"], ["updated_at", "2017-06-26 07:05:06.426353"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.428531"], ["updated_at", "2017-06-26 07:05:06.428531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.432373"], ["updated_at", "2017-06-26 07:05:06.432373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.434753"], ["updated_at", "2017-06-26 07:05:06.434753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.438566"], ["updated_at", "2017-06-26 07:05:06.438566"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.439432"], ["updated_at", "2017-06-26 07:05:06.439432"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.444859"], ["updated_at", "2017-06-26 07:05:06.444859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.445763"], ["updated_at", "2017-06-26 07:05:06.445763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.452668"], ["updated_at", "2017-06-26 07:05:06.452668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.453585"], ["updated_at", "2017-06-26 07:05:06.453585"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.456274"], ["updated_at", "2017-06-26 07:05:06.456274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.457084"], ["updated_at", "2017-06-26 07:05:06.457084"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:06.463136"], ["updated_at", "2017-06-26 07:05:06.463136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.479902"], ["updated_at", "2017-06-26 07:05:06.479902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:06.480853"], ["updated_at", "2017-06-26 07:05:06.480853"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:06.498160"], ["updated_at", "2017-06-26 07:05:06.498160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:06.499435"], ["updated_at", "2017-06-26 07:05:06.499435"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:06.501581"], ["updated_at", "2017-06-26 07:05:06.501581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:06.502684"], ["updated_at", "2017-06-26 07:05:06.502684"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.510375"], ["updated_at", "2017-06-26 07:05:06.510375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:06.516385"], ["updated_at", "2017-06-26 07:05:06.516385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:06.517551"], ["updated_at", "2017-06-26 07:05:06.517551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:06.519828"], ["updated_at", "2017-06-26 07:05:06.519828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:06.520733"], ["updated_at", "2017-06-26 07:05:06.520733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.524560"], ["updated_at", "2017-06-26 07:05:06.524560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.525445"], ["updated_at", "2017-06-26 07:05:06.525445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.536285"], ["updated_at", "2017-06-26 07:05:06.536285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.539263"], ["updated_at", "2017-06-26 07:05:06.539263"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.542987"], ["updated_at", "2017-06-26 07:05:06.542987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.547839"], ["updated_at", "2017-06-26 07:05:06.547839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.554080"], ["updated_at", "2017-06-26 07:05:06.554080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.554775"], ["updated_at", "2017-06-26 07:05:06.554775"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.557462"], ["updated_at", "2017-06-26 07:05:06.557462"]]  (0.2ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:06.559445"], ["updated_at", "2017-06-26 07:05:06.559445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:06.560639"], ["updated_at", "2017-06-26 07:05:06.560639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.561533"], ["updated_at", "2017-06-26 07:05:06.561533"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.563641"], ["updated_at", "2017-06-26 07:05:06.563641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.567814"], ["updated_at", "2017-06-26 07:05:06.567814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.568757"], ["updated_at", "2017-06-26 07:05:06.568757"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.571067"], ["updated_at", "2017-06-26 07:05:06.571067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.571929"], ["updated_at", "2017-06-26 07:05:06.571929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:06.589393"], ["updated_at", "2017-06-26 07:05:06.589393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.594134"], ["updated_at", "2017-06-26 07:05:06.594134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.596620"], ["updated_at", "2017-06-26 07:05:06.596620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.600384"], ["updated_at", "2017-06-26 07:05:06.600384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.601315"], ["updated_at", "2017-06-26 07:05:06.601315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:06.609466"], ["updated_at", "2017-06-26 07:05:06.609466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:05:06.610959"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:06.612666"], ["updated_at", "2017-06-26 07:05:06.612666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:06.613642"], ["updated_at", "2017-06-26 07:05:06.613642"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.627561"], ["updated_at", "2017-06-26 07:05:06.627561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.630995"], ["updated_at", "2017-06-26 07:05:06.630995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.634913"], ["updated_at", "2017-06-26 07:05:06.634913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.648058"], ["updated_at", "2017-06-26 07:05:06.648058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:06.653285"], ["updated_at", "2017-06-26 07:05:06.653285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:06.655381"], ["updated_at", "2017-06-26 07:05:06.655381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.665773"], ["updated_at", "2017-06-26 07:05:06.665773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.666591"], ["updated_at", "2017-06-26 07:05:06.666591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.667525"], ["updated_at", "2017-06-26 07:05:06.667525"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.777768"], ["updated_at", "2017-06-26 07:05:06.777768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.783164"], ["updated_at", "2017-06-26 07:05:06.783164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.785985"], ["updated_at", "2017-06-26 07:05:06.785985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:06.790976"], ["updated_at", "2017-06-26 07:05:06.790976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:06.796453"], ["updated_at", "2017-06-26 07:05:06.796453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:06.797350"], ["updated_at", "2017-06-26 07:05:06.797350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:06.810455"], ["updated_at", "2017-06-26 07:05:06.810455"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.317063"], ["updated_at", "2017-06-26 07:05:09.317063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:09.337251"], ["updated_at", "2017-06-26 07:05:09.337251"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.346843"], ["updated_at", "2017-06-26 07:05:09.346843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.356192"], ["updated_at", "2017-06-26 07:05:09.356192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.360260"], ["updated_at", "2017-06-26 07:05:09.360260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:09.394429"], ["updated_at", "2017-06-26 07:05:09.394429"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:09.395384"], ["updated_at", "2017-06-26 07:05:09.395384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.549804"], ["updated_at", "2017-06-26 07:05:09.549804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.553291"], ["updated_at", "2017-06-26 07:05:09.553291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.555384"], ["updated_at", "2017-06-26 07:05:09.555384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:09.560020"], ["updated_at", "2017-06-26 07:05:09.560020"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:09.561120"], ["updated_at", "2017-06-26 07:05:09.561120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:09.563464"], ["updated_at", "2017-06-26 07:05:09.563464"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:09.564418"], ["updated_at", "2017-06-26 07:05:09.564418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:09.572962"], ["updated_at", "2017-06-26 07:05:09.572962"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:09.575617"], ["updated_at", "2017-06-26 07:05:09.575617"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.588285"], ["updated_at", "2017-06-26 07:05:09.588285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.594294"], ["updated_at", "2017-06-26 07:05:09.594294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.595167"], ["updated_at", "2017-06-26 07:05:09.595167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.629677"], ["updated_at", "2017-06-26 07:05:09.629677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.630548"], ["updated_at", "2017-06-26 07:05:09.630548"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.632470"], ["updated_at", "2017-06-26 07:05:09.632470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.636140"], ["updated_at", "2017-06-26 07:05:09.636140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.636954"], ["updated_at", "2017-06-26 07:05:09.636954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.637740"], ["updated_at", "2017-06-26 07:05:09.637740"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.640234"], ["updated_at", "2017-06-26 07:05:09.640234"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.641196"], ["updated_at", "2017-06-26 07:05:09.641196"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:09.646449"], ["updated_at", "2017-06-26 07:05:09.646449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.650307"], ["updated_at", "2017-06-26 07:05:09.650307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.651108"], ["updated_at", "2017-06-26 07:05:09.651108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.654156"], ["updated_at", "2017-06-26 07:05:09.654156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.658094"], ["updated_at", "2017-06-26 07:05:09.658094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.658966"], ["updated_at", "2017-06-26 07:05:09.658966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.668192"], ["updated_at", "2017-06-26 07:05:09.668192"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.672549"], ["updated_at", "2017-06-26 07:05:09.672549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.680468"], ["updated_at", "2017-06-26 07:05:09.680468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.681223"], ["updated_at", "2017-06-26 07:05:09.681223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.689408"], ["updated_at", "2017-06-26 07:05:09.689408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.704967"], ["updated_at", "2017-06-26 07:05:09.704967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.710515"], ["updated_at", "2017-06-26 07:05:09.710515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:09.720055"], ["updated_at", "2017-06-26 07:05:09.720055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.731195"], ["updated_at", "2017-06-26 07:05:09.731195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.735771"], ["updated_at", "2017-06-26 07:05:09.735771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.736636"], ["updated_at", "2017-06-26 07:05:09.736636"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.738708"], ["updated_at", "2017-06-26 07:05:09.738708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.739639"], ["updated_at", "2017-06-26 07:05:09.739639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.746255"], ["updated_at", "2017-06-26 07:05:09.746255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.752435"], ["updated_at", "2017-06-26 07:05:09.752435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.753279"], ["updated_at", "2017-06-26 07:05:09.753279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.755277"], ["updated_at", "2017-06-26 07:05:09.755277"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.759004"], ["updated_at", "2017-06-26 07:05:09.759004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.763662"], ["updated_at", "2017-06-26 07:05:09.763662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.764433"], ["updated_at", "2017-06-26 07:05:09.764433"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.766523"], ["updated_at", "2017-06-26 07:05:09.766523"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.768439"], ["updated_at", "2017-06-26 07:05:09.768439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.770641"], ["updated_at", "2017-06-26 07:05:09.770641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.774162"], ["updated_at", "2017-06-26 07:05:09.774162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.775025"], ["updated_at", "2017-06-26 07:05:09.775025"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.779681"], ["updated_at", "2017-06-26 07:05:09.779681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.781942"], ["updated_at", "2017-06-26 07:05:09.781942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:09.786439"], ["updated_at", "2017-06-26 07:05:09.786439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:05:09.787956"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:09.788976"], ["updated_at", "2017-06-26 07:05:09.788976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:09.789720"], ["updated_at", "2017-06-26 07:05:09.789720"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.793189"], ["updated_at", "2017-06-26 07:05:09.793189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.793968"], ["updated_at", "2017-06-26 07:05:09.793968"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.798908"], ["updated_at", "2017-06-26 07:05:09.798908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.799611"], ["updated_at", "2017-06-26 07:05:09.799611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:09.804461"], ["updated_at", "2017-06-26 07:05:09.804461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:09.805451"], ["updated_at", "2017-06-26 07:05:09.805451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.806248"], ["updated_at", "2017-06-26 07:05:09.806248"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.808483"], ["updated_at", "2017-06-26 07:05:09.808483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.812764"], ["updated_at", "2017-06-26 07:05:09.812764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:09.813573"], ["updated_at", "2017-06-26 07:05:09.813573"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.815850"], ["updated_at", "2017-06-26 07:05:09.815850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.821698"], ["updated_at", "2017-06-26 07:05:09.821698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.822971"], ["updated_at", "2017-06-26 07:05:09.822971"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.828120"], ["updated_at", "2017-06-26 07:05:09.828120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.829046"], ["updated_at", "2017-06-26 07:05:09.829046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:09.829854"], ["updated_at", "2017-06-26 07:05:09.829854"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:09.832336"], ["updated_at", "2017-06-26 07:05:09.832336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:09.833224"], ["updated_at", "2017-06-26 07:05:09.833224"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:09.834902"], ["updated_at", "2017-06-26 07:05:09.834902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:09.835763"], ["updated_at", "2017-06-26 07:05:09.835763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.152163"], ["updated_at", "2017-06-26 07:05:12.152163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.157764"], ["updated_at", "2017-06-26 07:05:12.157764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.175389"], ["updated_at", "2017-06-26 07:05:12.175389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:12.192675"], ["updated_at", "2017-06-26 07:05:12.192675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.213718"], ["updated_at", "2017-06-26 07:05:12.213718"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.216406"], ["updated_at", "2017-06-26 07:05:12.216406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:12.217454"], ["updated_at", "2017-06-26 07:05:12.217454"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.220482"], ["updated_at", "2017-06-26 07:05:12.220482"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.230369"], ["updated_at", "2017-06-26 07:05:12.230369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.231446"], ["updated_at", "2017-06-26 07:05:12.231446"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.234146"], ["updated_at", "2017-06-26 07:05:12.234146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.236990"], ["updated_at", "2017-06-26 07:05:12.236990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:12.251854"], ["updated_at", "2017-06-26 07:05:12.251854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.256691"], ["updated_at", "2017-06-26 07:05:12.256691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.257605"], ["updated_at", "2017-06-26 07:05:12.257605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.270403"], ["updated_at", "2017-06-26 07:05:12.270403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.272964"], ["updated_at", "2017-06-26 07:05:12.272964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.295171"], ["updated_at", "2017-06-26 07:05:12.295171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.299882"], ["updated_at", "2017-06-26 07:05:12.299882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.300616"], ["updated_at", "2017-06-26 07:05:12.300616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.305897"], ["updated_at", "2017-06-26 07:05:12.305897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.306792"], ["updated_at", "2017-06-26 07:05:12.306792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.312020"], ["updated_at", "2017-06-26 07:05:12.312020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.312936"], ["updated_at", "2017-06-26 07:05:12.312936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.313628"], ["updated_at", "2017-06-26 07:05:12.313628"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.316138"], ["updated_at", "2017-06-26 07:05:12.316138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:12.323975"], ["updated_at", "2017-06-26 07:05:12.323975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:12.326254"], ["updated_at", "2017-06-26 07:05:12.326254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.337765"], ["updated_at", "2017-06-26 07:05:12.337765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:12.344271"], ["updated_at", "2017-06-26 07:05:12.344271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:12.345227"], ["updated_at", "2017-06-26 07:05:12.345227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.345976"], ["updated_at", "2017-06-26 07:05:12.345976"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.348375"], ["updated_at", "2017-06-26 07:05:12.348375"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.349365"], ["updated_at", "2017-06-26 07:05:12.349365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.357375"], ["updated_at", "2017-06-26 07:05:12.357375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.358281"], ["updated_at", "2017-06-26 07:05:12.358281"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:12.361456"], ["updated_at", "2017-06-26 07:05:12.361456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:12.362333"], ["updated_at", "2017-06-26 07:05:12.362333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:12.364115"], ["updated_at", "2017-06-26 07:05:12.364115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:12.364877"], ["updated_at", "2017-06-26 07:05:12.364877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:12.373005"], ["updated_at", "2017-06-26 07:05:12.373005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:05:12.374397"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:12.375951"], ["updated_at", "2017-06-26 07:05:12.375951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:12.377148"], ["updated_at", "2017-06-26 07:05:12.377148"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.382629"], ["updated_at", "2017-06-26 07:05:12.382629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.387867"], ["updated_at", "2017-06-26 07:05:12.387867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.388750"], ["updated_at", "2017-06-26 07:05:12.388750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.391160"], ["updated_at", "2017-06-26 07:05:12.391160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.394646"], ["updated_at", "2017-06-26 07:05:12.394646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.398734"], ["updated_at", "2017-06-26 07:05:12.398734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.404711"], ["updated_at", "2017-06-26 07:05:12.404711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.405715"], ["updated_at", "2017-06-26 07:05:12.405715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.406593"], ["updated_at", "2017-06-26 07:05:12.406593"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.412431"], ["updated_at", "2017-06-26 07:05:12.412431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.413370"], ["updated_at", "2017-06-26 07:05:12.413370"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.416116"], ["updated_at", "2017-06-26 07:05:12.416116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.420420"], ["updated_at", "2017-06-26 07:05:12.420420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.424798"], ["updated_at", "2017-06-26 07:05:12.424798"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.425779"], ["updated_at", "2017-06-26 07:05:12.425779"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.429085"], ["updated_at", "2017-06-26 07:05:12.429085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.431504"], ["updated_at", "2017-06-26 07:05:12.431504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.433655"], ["updated_at", "2017-06-26 07:05:12.433655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.437505"], ["updated_at", "2017-06-26 07:05:12.437505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.438679"], ["updated_at", "2017-06-26 07:05:12.438679"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:12.454938"], ["updated_at", "2017-06-26 07:05:12.454938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:12.455858"], ["updated_at", "2017-06-26 07:05:12.455858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:12.457455"], ["updated_at", "2017-06-26 07:05:12.457455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:12.458298"], ["updated_at", "2017-06-26 07:05:12.458298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.462497"], ["updated_at", "2017-06-26 07:05:12.462497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.470106"], ["updated_at", "2017-06-26 07:05:12.470106"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.477581"], ["updated_at", "2017-06-26 07:05:12.477581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.483920"], ["updated_at", "2017-06-26 07:05:12.483920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.484939"], ["updated_at", "2017-06-26 07:05:12.484939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.494763"], ["updated_at", "2017-06-26 07:05:12.494763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.495819"], ["updated_at", "2017-06-26 07:05:12.495819"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.498050"], ["updated_at", "2017-06-26 07:05:12.498050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.498913"], ["updated_at", "2017-06-26 07:05:12.498913"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.574305"], ["updated_at", "2017-06-26 07:05:12.574305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:12.591083"], ["updated_at", "2017-06-26 07:05:12.591083"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:12.594298"], ["updated_at", "2017-06-26 07:05:12.594298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:12.595109"], ["updated_at", "2017-06-26 07:05:12.595109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.622935"], ["updated_at", "2017-06-26 07:05:12.622935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.628194"], ["updated_at", "2017-06-26 07:05:12.628194"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:12.631077"], ["updated_at", "2017-06-26 07:05:12.631077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.178540"], ["updated_at", "2017-06-26 07:05:15.178540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.183447"], ["updated_at", "2017-06-26 07:05:15.183447"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.187823"], ["updated_at", "2017-06-26 07:05:15.187823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.188750"], ["updated_at", "2017-06-26 07:05:15.188750"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.190961"], ["updated_at", "2017-06-26 07:05:15.190961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.191737"], ["updated_at", "2017-06-26 07:05:15.191737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:15.228964"], ["updated_at", "2017-06-26 07:05:15.228964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 07:05:15.231637"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:15.233126"], ["updated_at", "2017-06-26 07:05:15.233126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:15.234041"], ["updated_at", "2017-06-26 07:05:15.234041"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.238883"], ["updated_at", "2017-06-26 07:05:15.238883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.240213"], ["updated_at", "2017-06-26 07:05:15.240213"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.242635"], ["updated_at", "2017-06-26 07:05:15.242635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:15.247057"], ["updated_at", "2017-06-26 07:05:15.247057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:15.248159"], ["updated_at", "2017-06-26 07:05:15.248159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.249163"], ["updated_at", "2017-06-26 07:05:15.249163"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.251354"], ["updated_at", "2017-06-26 07:05:15.251354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.252159"], ["updated_at", "2017-06-26 07:05:15.252159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.260706"], ["updated_at", "2017-06-26 07:05:15.260706"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.263535"], ["updated_at", "2017-06-26 07:05:15.263535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.265969"], ["updated_at", "2017-06-26 07:05:15.265969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.269340"], ["updated_at", "2017-06-26 07:05:15.269340"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:15.272763"], ["updated_at", "2017-06-26 07:05:15.272763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:15.308444"], ["updated_at", "2017-06-26 07:05:15.308444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.314456"], ["updated_at", "2017-06-26 07:05:15.314456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.315688"], ["updated_at", "2017-06-26 07:05:15.315688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.316615"], ["updated_at", "2017-06-26 07:05:15.316615"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.319722"], ["updated_at", "2017-06-26 07:05:15.319722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.320875"], ["updated_at", "2017-06-26 07:05:15.320875"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.333688"], ["updated_at", "2017-06-26 07:05:15.333688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.334434"], ["updated_at", "2017-06-26 07:05:15.334434"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.336701"], ["updated_at", "2017-06-26 07:05:15.336701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.343513"], ["updated_at", "2017-06-26 07:05:15.343513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.353196"], ["updated_at", "2017-06-26 07:05:15.353196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.354117"], ["updated_at", "2017-06-26 07:05:15.354117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.362964"], ["updated_at", "2017-06-26 07:05:15.362964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.368568"], ["updated_at", "2017-06-26 07:05:15.368568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.369397"], ["updated_at", "2017-06-26 07:05:15.369397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.370137"], ["updated_at", "2017-06-26 07:05:15.370137"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.372766"], ["updated_at", "2017-06-26 07:05:15.372766"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:15.376927"], ["updated_at", "2017-06-26 07:05:15.376927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:15.379404"], ["updated_at", "2017-06-26 07:05:15.379404"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.388557"], ["updated_at", "2017-06-26 07:05:15.388557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:15.389501"], ["updated_at", "2017-06-26 07:05:15.389501"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.391802"], ["updated_at", "2017-06-26 07:05:15.391802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.392558"], ["updated_at", "2017-06-26 07:05:15.392558"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.403986"], ["updated_at", "2017-06-26 07:05:15.403986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.404884"], ["updated_at", "2017-06-26 07:05:15.404884"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.407338"], ["updated_at", "2017-06-26 07:05:15.407338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.409674"], ["updated_at", "2017-06-26 07:05:15.409674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.413478"], ["updated_at", "2017-06-26 07:05:15.413478"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.418849"], ["updated_at", "2017-06-26 07:05:15.418849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.423782"], ["updated_at", "2017-06-26 07:05:15.423782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.429456"], ["updated_at", "2017-06-26 07:05:15.429456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.434701"], ["updated_at", "2017-06-26 07:05:15.434701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.437263"], ["updated_at", "2017-06-26 07:05:15.437263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.449787"], ["updated_at", "2017-06-26 07:05:15.449787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.456295"], ["updated_at", "2017-06-26 07:05:15.456295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.458970"], ["updated_at", "2017-06-26 07:05:15.458970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:15.463047"], ["updated_at", "2017-06-26 07:05:15.463047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:15.463977"], ["updated_at", "2017-06-26 07:05:15.463977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:15.465771"], ["updated_at", "2017-06-26 07:05:15.465771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:15.466704"], ["updated_at", "2017-06-26 07:05:15.466704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.470358"], ["updated_at", "2017-06-26 07:05:15.470358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.471275"], ["updated_at", "2017-06-26 07:05:15.471275"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:15.474325"], ["updated_at", "2017-06-26 07:05:15.474325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:15.475240"], ["updated_at", "2017-06-26 07:05:15.475240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:15.476993"], ["updated_at", "2017-06-26 07:05:15.476993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:15.478042"], ["updated_at", "2017-06-26 07:05:15.478042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.485980"], ["updated_at", "2017-06-26 07:05:15.485980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.486760"], ["updated_at", "2017-06-26 07:05:15.486760"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.489363"], ["updated_at", "2017-06-26 07:05:15.489363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.490221"], ["updated_at", "2017-06-26 07:05:15.490221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.492498"], ["updated_at", "2017-06-26 07:05:15.492498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.497542"], ["updated_at", "2017-06-26 07:05:15.497542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.518892"], ["updated_at", "2017-06-26 07:05:15.518892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.519683"], ["updated_at", "2017-06-26 07:05:15.519683"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.658845"], ["updated_at", "2017-06-26 07:05:15.658845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.665012"], ["updated_at", "2017-06-26 07:05:15.665012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.668243"], ["updated_at", "2017-06-26 07:05:15.668243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:15.697514"], ["updated_at", "2017-06-26 07:05:15.697514"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:15.703856"], ["updated_at", "2017-06-26 07:05:15.703856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:15.704695"], ["updated_at", "2017-06-26 07:05:15.704695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:15.716880"], ["updated_at", "2017-06-26 07:05:15.716880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:18.246800"], ["updated_at", "2017-06-26 07:05:18.246800"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.275046"], ["updated_at", "2017-06-26 07:05:18.275046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.284285"], ["updated_at", "2017-06-26 07:05:18.284285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.287237"], ["updated_at", "2017-06-26 07:05:18.287237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:18.297441"], ["updated_at", "2017-06-26 07:05:18.297441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:18.298457"], ["updated_at", "2017-06-26 07:05:18.298457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.335045"], ["updated_at", "2017-06-26 07:05:18.335045"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.368864"], ["updated_at", "2017-06-26 07:05:18.368864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.375224"], ["updated_at", "2017-06-26 07:05:18.375224"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.376247"], ["updated_at", "2017-06-26 07:05:18.376247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.377077"], ["updated_at", "2017-06-26 07:05:18.377077"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.379641"], ["updated_at", "2017-06-26 07:05:18.379641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.380419"], ["updated_at", "2017-06-26 07:05:18.380419"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:18.384915"], ["updated_at", "2017-06-26 07:05:18.384915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:18.385731"], ["updated_at", "2017-06-26 07:05:18.385731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:18.387671"], ["updated_at", "2017-06-26 07:05:18.387671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:18.388401"], ["updated_at", "2017-06-26 07:05:18.388401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.412555"], ["updated_at", "2017-06-26 07:05:18.412555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:18.413560"], ["updated_at", "2017-06-26 07:05:18.413560"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.416443"], ["updated_at", "2017-06-26 07:05:18.416443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.417267"], ["updated_at", "2017-06-26 07:05:18.417267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.419992"], ["updated_at", "2017-06-26 07:05:18.419992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.428445"], ["updated_at", "2017-06-26 07:05:18.428445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.434969"], ["updated_at", "2017-06-26 07:05:18.434969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.435799"], ["updated_at", "2017-06-26 07:05:18.435799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.436602"], ["updated_at", "2017-06-26 07:05:18.436602"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:18.443654"], ["updated_at", "2017-06-26 07:05:18.443654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.455993"], ["updated_at", "2017-06-26 07:05:18.455993"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.457863"], ["updated_at", "2017-06-26 07:05:18.457863"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.460879"], ["updated_at", "2017-06-26 07:05:18.460879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.462064"], ["updated_at", "2017-06-26 07:05:18.462064"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.465176"], ["updated_at", "2017-06-26 07:05:18.465176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.466132"], ["updated_at", "2017-06-26 07:05:18.466132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.474132"], ["updated_at", "2017-06-26 07:05:18.474132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.475332"], ["updated_at", "2017-06-26 07:05:18.475332"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:18.478160"], ["updated_at", "2017-06-26 07:05:18.478160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:18.478999"], ["updated_at", "2017-06-26 07:05:18.478999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.479767"], ["updated_at", "2017-06-26 07:05:18.479767"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.481617"], ["updated_at", "2017-06-26 07:05:18.481617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.483823"], ["updated_at", "2017-06-26 07:05:18.483823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.487064"], ["updated_at", "2017-06-26 07:05:18.487064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.487887"], ["updated_at", "2017-06-26 07:05:18.487887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.497687"], ["updated_at", "2017-06-26 07:05:18.497687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.503049"], ["updated_at", "2017-06-26 07:05:18.503049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.509865"], ["updated_at", "2017-06-26 07:05:18.509865"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.512285"], ["updated_at", "2017-06-26 07:05:18.512285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.513270"], ["updated_at", "2017-06-26 07:05:18.513270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.515894"], ["updated_at", "2017-06-26 07:05:18.515894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.519638"], ["updated_at", "2017-06-26 07:05:18.519638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.520526"], ["updated_at", "2017-06-26 07:05:18.520526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:18.526292"], ["updated_at", "2017-06-26 07:05:18.526292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:18.527486"], ["updated_at", "2017-06-26 07:05:18.527486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:18.529333"], ["updated_at", "2017-06-26 07:05:18.529333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:18.536691"], ["updated_at", "2017-06-26 07:05:18.536691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:18.540555"], ["updated_at", "2017-06-26 07:05:18.540555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:05:18.541769"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:18.542684"], ["updated_at", "2017-06-26 07:05:18.542684"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:18.544249"], ["updated_at", "2017-06-26 07:05:18.544249"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:18.552104"], ["updated_at", "2017-06-26 07:05:18.552104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.555997"], ["updated_at", "2017-06-26 07:05:18.555997"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.556838"], ["updated_at", "2017-06-26 07:05:18.556838"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.558687"], ["updated_at", "2017-06-26 07:05:18.558687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.561285"], ["updated_at", "2017-06-26 07:05:18.561285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.564670"], ["updated_at", "2017-06-26 07:05:18.564670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.568807"], ["updated_at", "2017-06-26 07:05:18.568807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.574404"], ["updated_at", "2017-06-26 07:05:18.574404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.577059"], ["updated_at", "2017-06-26 07:05:18.577059"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.579321"], ["updated_at", "2017-06-26 07:05:18.579321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.582501"], ["updated_at", "2017-06-26 07:05:18.582501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.583246"], ["updated_at", "2017-06-26 07:05:18.583246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.587788"], ["updated_at", "2017-06-26 07:05:18.587788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.589725"], ["updated_at", "2017-06-26 07:05:18.589725"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.592720"], ["updated_at", "2017-06-26 07:05:18.592720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.593671"], ["updated_at", "2017-06-26 07:05:18.593671"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.602994"], ["updated_at", "2017-06-26 07:05:18.602994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.607767"], ["updated_at", "2017-06-26 07:05:18.607767"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.608693"], ["updated_at", "2017-06-26 07:05:18.608693"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:18.610706"], ["updated_at", "2017-06-26 07:05:18.610706"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:18.613183"], ["updated_at", "2017-06-26 07:05:18.613183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.622089"], ["updated_at", "2017-06-26 07:05:18.622089"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.630062"], ["updated_at", "2017-06-26 07:05:18.630062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.636175"], ["updated_at", "2017-06-26 07:05:18.636175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.643781"], ["updated_at", "2017-06-26 07:05:18.643781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:18.644933"], ["updated_at", "2017-06-26 07:05:18.644933"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.220234"], ["updated_at", "2017-06-26 07:05:23.220234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:23.267037"], ["updated_at", "2017-06-26 07:05:23.267037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:23.268073"], ["updated_at", "2017-06-26 07:05:23.268073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.289353"], ["updated_at", "2017-06-26 07:05:23.289353"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.299112"], ["updated_at", "2017-06-26 07:05:23.299112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.302461"], ["updated_at", "2017-06-26 07:05:23.302461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:23.332223"], ["updated_at", "2017-06-26 07:05:23.332223"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.445498"], ["updated_at", "2017-06-26 07:05:23.445498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.446644"], ["updated_at", "2017-06-26 07:05:23.446644"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.458436"], ["updated_at", "2017-06-26 07:05:23.458436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.459363"], ["updated_at", "2017-06-26 07:05:23.459363"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:23.461935"], ["updated_at", "2017-06-26 07:05:23.461935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:23.462766"], ["updated_at", "2017-06-26 07:05:23.462766"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:23.465060"], ["updated_at", "2017-06-26 07:05:23.465060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:23.465929"], ["updated_at", "2017-06-26 07:05:23.465929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.469276"], ["updated_at", "2017-06-26 07:05:23.469276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.470039"], ["updated_at", "2017-06-26 07:05:23.470039"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.472502"], ["updated_at", "2017-06-26 07:05:23.472502"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.486775"], ["updated_at", "2017-06-26 07:05:23.486775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.492619"], ["updated_at", "2017-06-26 07:05:23.492619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.499693"], ["updated_at", "2017-06-26 07:05:23.499693"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.500655"], ["updated_at", "2017-06-26 07:05:23.500655"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.503365"], ["updated_at", "2017-06-26 07:05:23.503365"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.508927"], ["updated_at", "2017-06-26 07:05:23.508927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.511383"], ["updated_at", "2017-06-26 07:05:23.511383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.513495"], ["updated_at", "2017-06-26 07:05:23.513495"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.520713"], ["updated_at", "2017-06-26 07:05:23.520713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.521679"], ["updated_at", "2017-06-26 07:05:23.521679"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.524403"], ["updated_at", "2017-06-26 07:05:23.524403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.529124"], ["updated_at", "2017-06-26 07:05:23.529124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.549635"], ["updated_at", "2017-06-26 07:05:23.549635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.550714"], ["updated_at", "2017-06-26 07:05:23.550714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.551594"], ["updated_at", "2017-06-26 07:05:23.551594"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.554329"], ["updated_at", "2017-06-26 07:05:23.554329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.555177"], ["updated_at", "2017-06-26 07:05:23.555177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.560467"], ["updated_at", "2017-06-26 07:05:23.560467"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.561385"], ["updated_at", "2017-06-26 07:05:23.561385"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:23.571055"], ["updated_at", "2017-06-26 07:05:23.571055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.575723"], ["updated_at", "2017-06-26 07:05:23.575723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.581028"], ["updated_at", "2017-06-26 07:05:23.581028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.582008"], ["updated_at", "2017-06-26 07:05:23.582008"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.584033"], ["updated_at", "2017-06-26 07:05:23.584033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.584878"], ["updated_at", "2017-06-26 07:05:23.584878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.590620"], ["updated_at", "2017-06-26 07:05:23.590620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.596248"], ["updated_at", "2017-06-26 07:05:23.596248"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.597206"], ["updated_at", "2017-06-26 07:05:23.597206"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:23.599619"], ["updated_at", "2017-06-26 07:05:23.599619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:23.600519"], ["updated_at", "2017-06-26 07:05:23.600519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:23.602293"], ["updated_at", "2017-06-26 07:05:23.602293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:23.603072"], ["updated_at", "2017-06-26 07:05:23.603072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.612303"], ["updated_at", "2017-06-26 07:05:23.612303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.615461"], ["updated_at", "2017-06-26 07:05:23.615461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.619522"], ["updated_at", "2017-06-26 07:05:23.619522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.621956"], ["updated_at", "2017-06-26 07:05:23.621956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.625698"], ["updated_at", "2017-06-26 07:05:23.625698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.626562"], ["updated_at", "2017-06-26 07:05:23.626562"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:23.631832"], ["updated_at", "2017-06-26 07:05:23.631832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 07:05:23.634592"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:23.635881"], ["updated_at", "2017-06-26 07:05:23.635881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:23.636951"], ["updated_at", "2017-06-26 07:05:23.636951"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.650068"], ["updated_at", "2017-06-26 07:05:23.650068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:23.650932"], ["updated_at", "2017-06-26 07:05:23.650932"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:23.653194"], ["updated_at", "2017-06-26 07:05:23.653194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:23.653946"], ["updated_at", "2017-06-26 07:05:23.653946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.654690"], ["updated_at", "2017-06-26 07:05:23.654690"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.656274"], ["updated_at", "2017-06-26 07:05:23.656274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.656941"], ["updated_at", "2017-06-26 07:05:23.656941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.669899"], ["updated_at", "2017-06-26 07:05:23.669899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.670929"], ["updated_at", "2017-06-26 07:05:23.670929"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.673036"], ["updated_at", "2017-06-26 07:05:23.673036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.676193"], ["updated_at", "2017-06-26 07:05:23.676193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.677033"], ["updated_at", "2017-06-26 07:05:23.677033"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:23.687840"], ["updated_at", "2017-06-26 07:05:23.687840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.696872"], ["updated_at", "2017-06-26 07:05:23.696872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.701262"], ["updated_at", "2017-06-26 07:05:23.701262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.705525"], ["updated_at", "2017-06-26 07:05:23.705525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.710340"], ["updated_at", "2017-06-26 07:05:23.710340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.713092"], ["updated_at", "2017-06-26 07:05:23.713092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:23.716580"], ["updated_at", "2017-06-26 07:05:23.716580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:23.718871"], ["updated_at", "2017-06-26 07:05:23.718871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.727102"], ["updated_at", "2017-06-26 07:05:23.727102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.728233"], ["updated_at", "2017-06-26 07:05:23.728233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.729037"], ["updated_at", "2017-06-26 07:05:23.729037"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:23.731434"], ["updated_at", "2017-06-26 07:05:23.731434"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.373553"], ["updated_at", "2017-06-26 07:05:26.373553"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:26.412855"], ["updated_at", "2017-06-26 07:05:26.412855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:26.414036"], ["updated_at", "2017-06-26 07:05:26.414036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:26.416207"], ["updated_at", "2017-06-26 07:05:26.416207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:26.417563"], ["updated_at", "2017-06-26 07:05:26.417563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:26.434592"], ["updated_at", "2017-06-26 07:05:26.434592"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:26.436324"], ["updated_at", "2017-06-26 07:05:26.436324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:26.438893"], ["updated_at", "2017-06-26 07:05:26.438893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:26.439656"], ["updated_at", "2017-06-26 07:05:26.439656"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.444805"], ["updated_at", "2017-06-26 07:05:26.444805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.445860"], ["updated_at", "2017-06-26 07:05:26.445860"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.449380"], ["updated_at", "2017-06-26 07:05:26.449380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.450350"], ["updated_at", "2017-06-26 07:05:26.450350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.457253"], ["updated_at", "2017-06-26 07:05:26.457253"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.459709"], ["updated_at", "2017-06-26 07:05:26.459709"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.460671"], ["updated_at", "2017-06-26 07:05:26.460671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.461634"], ["updated_at", "2017-06-26 07:05:26.461634"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.464742"], ["updated_at", "2017-06-26 07:05:26.464742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.467742"], ["updated_at", "2017-06-26 07:05:26.467742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.471762"], ["updated_at", "2017-06-26 07:05:26.471762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.473033"], ["updated_at", "2017-06-26 07:05:26.473033"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.475955"], ["updated_at", "2017-06-26 07:05:26.475955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.476908"], ["updated_at", "2017-06-26 07:05:26.476908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.479231"], ["updated_at", "2017-06-26 07:05:26.479231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.483420"], ["updated_at", "2017-06-26 07:05:26.483420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.484400"], ["updated_at", "2017-06-26 07:05:26.484400"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.521578"], ["updated_at", "2017-06-26 07:05:26.521578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:26.522990"], ["updated_at", "2017-06-26 07:05:26.522990"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.526820"], ["updated_at", "2017-06-26 07:05:26.526820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.532152"], ["updated_at", "2017-06-26 07:05:26.532152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.537522"], ["updated_at", "2017-06-26 07:05:26.537522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.543844"], ["updated_at", "2017-06-26 07:05:26.543844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.548728"], ["updated_at", "2017-06-26 07:05:26.548728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.551264"], ["updated_at", "2017-06-26 07:05:26.551264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:26.559528"], ["updated_at", "2017-06-26 07:05:26.559528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.569935"], ["updated_at", "2017-06-26 07:05:26.569935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.571013"], ["updated_at", "2017-06-26 07:05:26.571013"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.574139"], ["updated_at", "2017-06-26 07:05:26.574139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.575001"], ["updated_at", "2017-06-26 07:05:26.575001"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.579707"], ["updated_at", "2017-06-26 07:05:26.579707"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.580723"], ["updated_at", "2017-06-26 07:05:26.580723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.590635"], ["updated_at", "2017-06-26 07:05:26.590635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.591566"], ["updated_at", "2017-06-26 07:05:26.591566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.592408"], ["updated_at", "2017-06-26 07:05:26.592408"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.598288"], ["updated_at", "2017-06-26 07:05:26.598288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.603959"], ["updated_at", "2017-06-26 07:05:26.603959"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.604936"], ["updated_at", "2017-06-26 07:05:26.604936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.613296"], ["updated_at", "2017-06-26 07:05:26.613296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:26.622441"], ["updated_at", "2017-06-26 07:05:26.622441"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.627507"], ["updated_at", "2017-06-26 07:05:26.627507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.630615"], ["updated_at", "2017-06-26 07:05:26.630615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:26.634810"], ["updated_at", "2017-06-26 07:05:26.634810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:05:26.636546"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:26.638603"], ["updated_at", "2017-06-26 07:05:26.638603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:26.639466"], ["updated_at", "2017-06-26 07:05:26.639466"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.643658"], ["updated_at", "2017-06-26 07:05:26.643658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.644587"], ["updated_at", "2017-06-26 07:05:26.644587"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.646759"], ["updated_at", "2017-06-26 07:05:26.646759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.647681"], ["updated_at", "2017-06-26 07:05:26.647681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.656041"], ["updated_at", "2017-06-26 07:05:26.656041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.664038"], ["updated_at", "2017-06-26 07:05:26.664038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.673423"], ["updated_at", "2017-06-26 07:05:26.673423"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.674359"], ["updated_at", "2017-06-26 07:05:26.674359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.677081"], ["updated_at", "2017-06-26 07:05:26.677081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.685778"], ["updated_at", "2017-06-26 07:05:26.685778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.691908"], ["updated_at", "2017-06-26 07:05:26.691908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.694786"], ["updated_at", "2017-06-26 07:05:26.694786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.696863"], ["updated_at", "2017-06-26 07:05:26.696863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.2ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.709368"], ["updated_at", "2017-06-26 07:05:26.709368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.710360"], ["updated_at", "2017-06-26 07:05:26.710360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.721939"], ["updated_at", "2017-06-26 07:05:26.721939"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.723294"], ["updated_at", "2017-06-26 07:05:26.723294"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:26.727376"], ["updated_at", "2017-06-26 07:05:26.727376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:26.730088"], ["updated_at", "2017-06-26 07:05:26.730088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:26.747208"], ["updated_at", "2017-06-26 07:05:26.747208"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:26.748176"], ["updated_at", "2017-06-26 07:05:26.748176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.748919"], ["updated_at", "2017-06-26 07:05:26.748919"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.876066"], ["updated_at", "2017-06-26 07:05:26.876066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.881648"], ["updated_at", "2017-06-26 07:05:26.881648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.884237"], ["updated_at", "2017-06-26 07:05:26.884237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:26.891259"], ["updated_at", "2017-06-26 07:05:26.891259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:26.915963"], ["updated_at", "2017-06-26 07:05:26.915963"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:26.927779"], ["updated_at", "2017-06-26 07:05:26.927779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:26.928645"], ["updated_at", "2017-06-26 07:05:26.928645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.6ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:29.625268"], ["updated_at", "2017-06-26 07:05:29.625268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.642125"], ["updated_at", "2017-06-26 07:05:29.642125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.643118"], ["updated_at", "2017-06-26 07:05:29.643118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.655703"], ["updated_at", "2017-06-26 07:05:29.655703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.661465"], ["updated_at", "2017-06-26 07:05:29.661465"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.669060"], ["updated_at", "2017-06-26 07:05:29.669060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.670545"], ["updated_at", "2017-06-26 07:05:29.670545"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.673881"], ["updated_at", "2017-06-26 07:05:29.673881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.674816"], ["updated_at", "2017-06-26 07:05:29.674816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.686317"], ["updated_at", "2017-06-26 07:05:29.686317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.687226"], ["updated_at", "2017-06-26 07:05:29.687226"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.689815"], ["updated_at", "2017-06-26 07:05:29.689815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.690822"], ["updated_at", "2017-06-26 07:05:29.690822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:29.699142"], ["updated_at", "2017-06-26 07:05:29.699142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:29.702082"], ["updated_at", "2017-06-26 07:05:29.702082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.713276"], ["updated_at", "2017-06-26 07:05:29.713276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.716451"], ["updated_at", "2017-06-26 07:05:29.716451"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.719113"], ["updated_at", "2017-06-26 07:05:29.719113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.722866"], ["updated_at", "2017-06-26 07:05:29.722866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.723742"], ["updated_at", "2017-06-26 07:05:29.723742"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.725709"], ["updated_at", "2017-06-26 07:05:29.725709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:29.726710"], ["updated_at", "2017-06-26 07:05:29.726710"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.729944"], ["updated_at", "2017-06-26 07:05:29.729944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.736785"], ["updated_at", "2017-06-26 07:05:29.736785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.737839"], ["updated_at", "2017-06-26 07:05:29.737839"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.741276"], ["updated_at", "2017-06-26 07:05:29.741276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.747024"], ["updated_at", "2017-06-26 07:05:29.747024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.748132"], ["updated_at", "2017-06-26 07:05:29.748132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.759510"], ["updated_at", "2017-06-26 07:05:29.759510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.767388"], ["updated_at", "2017-06-26 07:05:29.767388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.772095"], ["updated_at", "2017-06-26 07:05:29.772095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.772876"], ["updated_at", "2017-06-26 07:05:29.772876"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.775567"], ["updated_at", "2017-06-26 07:05:29.775567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.789398"], ["updated_at", "2017-06-26 07:05:29.789398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.791616"], ["updated_at", "2017-06-26 07:05:29.791616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:29.794608"], ["updated_at", "2017-06-26 07:05:29.794608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:29.795443"], ["updated_at", "2017-06-26 07:05:29.795443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:29.797026"], ["updated_at", "2017-06-26 07:05:29.797026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:29.797818"], ["updated_at", "2017-06-26 07:05:29.797818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.805503"], ["updated_at", "2017-06-26 07:05:29.805503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.806461"], ["updated_at", "2017-06-26 07:05:29.806461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.808658"], ["updated_at", "2017-06-26 07:05:29.808658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.819165"], ["updated_at", "2017-06-26 07:05:29.819165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.820168"], ["updated_at", "2017-06-26 07:05:29.820168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.820961"], ["updated_at", "2017-06-26 07:05:29.820961"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:29.823372"], ["updated_at", "2017-06-26 07:05:29.823372"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:29.824166"], ["updated_at", "2017-06-26 07:05:29.824166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.824896"], ["updated_at", "2017-06-26 07:05:29.824896"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.828472"], ["updated_at", "2017-06-26 07:05:29.828472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.830486"], ["updated_at", "2017-06-26 07:05:29.830486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:29.835688"], ["updated_at", "2017-06-26 07:05:29.835688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 07:05:29.837692"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:29.839272"], ["updated_at", "2017-06-26 07:05:29.839272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:29.840095"], ["updated_at", "2017-06-26 07:05:29.840095"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.843549"], ["updated_at", "2017-06-26 07:05:29.843549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.844385"], ["updated_at", "2017-06-26 07:05:29.844385"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.846928"], ["updated_at", "2017-06-26 07:05:29.846928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.854511"], ["updated_at", "2017-06-26 07:05:29.854511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.861071"], ["updated_at", "2017-06-26 07:05:29.861071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:29.865071"], ["updated_at", "2017-06-26 07:05:29.865071"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:29.866074"], ["updated_at", "2017-06-26 07:05:29.866074"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:29.867838"], ["updated_at", "2017-06-26 07:05:29.867838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:29.868625"], ["updated_at", "2017-06-26 07:05:29.868625"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:29.873403"], ["updated_at", "2017-06-26 07:05:29.873403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.888325"], ["updated_at", "2017-06-26 07:05:29.888325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.889087"], ["updated_at", "2017-06-26 07:05:29.889087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.893512"], ["updated_at", "2017-06-26 07:05:29.893512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.894287"], ["updated_at", "2017-06-26 07:05:29.894287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.899000"], ["updated_at", "2017-06-26 07:05:29.899000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.899902"], ["updated_at", "2017-06-26 07:05:29.899902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.900703"], ["updated_at", "2017-06-26 07:05:29.900703"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.903047"], ["updated_at", "2017-06-26 07:05:29.903047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.907033"], ["updated_at", "2017-06-26 07:05:29.907033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.909109"], ["updated_at", "2017-06-26 07:05:29.909109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.920872"], ["updated_at", "2017-06-26 07:05:29.920872"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.935604"], ["updated_at", "2017-06-26 07:05:29.935604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:29.936372"], ["updated_at", "2017-06-26 07:05:29.936372"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:30.007742"], ["updated_at", "2017-06-26 07:05:30.007742"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:30.020656"], ["updated_at", "2017-06-26 07:05:30.020656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:30.021639"], ["updated_at", "2017-06-26 07:05:30.021639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:30.034373"], ["updated_at", "2017-06-26 07:05:30.034373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:30.039121"], ["updated_at", "2017-06-26 07:05:30.039121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:30.043771"], ["updated_at", "2017-06-26 07:05:30.043771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:30.046304"], ["updated_at", "2017-06-26 07:05:30.046304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:32.987911"], ["updated_at", "2017-06-26 07:05:32.987911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:33.016328"], ["updated_at", "2017-06-26 07:05:33.016328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.036498"], ["updated_at", "2017-06-26 07:05:33.036498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.037566"], ["updated_at", "2017-06-26 07:05:33.037566"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.046363"], ["updated_at", "2017-06-26 07:05:33.046363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.047363"], ["updated_at", "2017-06-26 07:05:33.047363"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.049896"], ["updated_at", "2017-06-26 07:05:33.049896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.052985"], ["updated_at", "2017-06-26 07:05:33.052985"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:33.056185"], ["updated_at", "2017-06-26 07:05:33.056185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:33.057037"], ["updated_at", "2017-06-26 07:05:33.057037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:33.058765"], ["updated_at", "2017-06-26 07:05:33.058765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:33.059598"], ["updated_at", "2017-06-26 07:05:33.059598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.063162"], ["updated_at", "2017-06-26 07:05:33.063162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.063980"], ["updated_at", "2017-06-26 07:05:33.063980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.076306"], ["updated_at", "2017-06-26 07:05:33.076306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.081681"], ["updated_at", "2017-06-26 07:05:33.081681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.083973"], ["updated_at", "2017-06-26 07:05:33.083973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.087138"], ["updated_at", "2017-06-26 07:05:33.087138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.088054"], ["updated_at", "2017-06-26 07:05:33.088054"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:33.091396"], ["updated_at", "2017-06-26 07:05:33.091396"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:33.093636"], ["updated_at", "2017-06-26 07:05:33.093636"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:33.104760"], ["updated_at", "2017-06-26 07:05:33.104760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:05:33.106673"], ["id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:33.108561"], ["updated_at", "2017-06-26 07:05:33.108561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:33.109598"], ["updated_at", "2017-06-26 07:05:33.109598"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:33.113691"], ["updated_at", "2017-06-26 07:05:33.113691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:33.114521"], ["updated_at", "2017-06-26 07:05:33.114521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.115338"], ["updated_at", "2017-06-26 07:05:33.115338"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.117332"], ["updated_at", "2017-06-26 07:05:33.117332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.118240"], ["updated_at", "2017-06-26 07:05:33.118240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.131862"], ["updated_at", "2017-06-26 07:05:33.131862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.132615"], ["updated_at", "2017-06-26 07:05:33.132615"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:33.138993"], ["updated_at", "2017-06-26 07:05:33.138993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:33.142780"], ["updated_at", "2017-06-26 07:05:33.142780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:33.143597"], ["updated_at", "2017-06-26 07:05:33.143597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:33.145093"], ["updated_at", "2017-06-26 07:05:33.145093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:33.145857"], ["updated_at", "2017-06-26 07:05:33.145857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.154813"], ["updated_at", "2017-06-26 07:05:33.154813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.161570"], ["updated_at", "2017-06-26 07:05:33.161570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.167962"], ["updated_at", "2017-06-26 07:05:33.167962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.172703"], ["updated_at", "2017-06-26 07:05:33.172703"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.173805"], ["updated_at", "2017-06-26 07:05:33.173805"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.185011"], ["updated_at", "2017-06-26 07:05:33.185011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:33.185925"], ["updated_at", "2017-06-26 07:05:33.185925"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.188545"], ["updated_at", "2017-06-26 07:05:33.188545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.190704"], ["updated_at", "2017-06-26 07:05:33.190704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.194016"], ["updated_at", "2017-06-26 07:05:33.194016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.194769"], ["updated_at", "2017-06-26 07:05:33.194769"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.196639"], ["updated_at", "2017-06-26 07:05:33.196639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.197317"], ["updated_at", "2017-06-26 07:05:33.197317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.199408"], ["updated_at", "2017-06-26 07:05:33.199408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.202407"], ["updated_at", "2017-06-26 07:05:33.202407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.203132"], ["updated_at", "2017-06-26 07:05:33.203132"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.208568"], ["updated_at", "2017-06-26 07:05:33.208568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.209453"], ["updated_at", "2017-06-26 07:05:33.209453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.210193"], ["updated_at", "2017-06-26 07:05:33.210193"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.216329"], ["updated_at", "2017-06-26 07:05:33.216329"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.218495"], ["updated_at", "2017-06-26 07:05:33.218495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.219317"], ["updated_at", "2017-06-26 07:05:33.219317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.221289"], ["updated_at", "2017-06-26 07:05:33.221289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.225159"], ["updated_at", "2017-06-26 07:05:33.225159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.230239"], ["updated_at", "2017-06-26 07:05:33.230239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.231244"], ["updated_at", "2017-06-26 07:05:33.231244"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.241537"], ["updated_at", "2017-06-26 07:05:33.241537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.246671"], ["updated_at", "2017-06-26 07:05:33.246671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.249065"], ["updated_at", "2017-06-26 07:05:33.249065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.250828"], ["updated_at", "2017-06-26 07:05:33.250828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.254139"], ["updated_at", "2017-06-26 07:05:33.254139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.257933"], ["updated_at", "2017-06-26 07:05:33.257933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.258756"], ["updated_at", "2017-06-26 07:05:33.258756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.259421"], ["updated_at", "2017-06-26 07:05:33.259421"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.261868"], ["updated_at", "2017-06-26 07:05:33.261868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.267323"], ["updated_at", "2017-06-26 07:05:33.267323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.268225"], ["updated_at", "2017-06-26 07:05:33.268225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.288240"], ["updated_at", "2017-06-26 07:05:33.288240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.293275"], ["updated_at", "2017-06-26 07:05:33.293275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.294042"], ["updated_at", "2017-06-26 07:05:33.294042"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:33.403752"], ["updated_at", "2017-06-26 07:05:33.403752"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.414095"], ["updated_at", "2017-06-26 07:05:33.414095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.418910"], ["updated_at", "2017-06-26 07:05:33.418910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.421759"], ["updated_at", "2017-06-26 07:05:33.421759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:33.435916"], ["updated_at", "2017-06-26 07:05:33.435916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:33.436848"], ["updated_at", "2017-06-26 07:05:33.436848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:33.452660"], ["updated_at", "2017-06-26 07:05:33.452660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:35.901827"], ["updated_at", "2017-06-26 07:05:35.901827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:35.914631"], ["updated_at", "2017-06-26 07:05:35.914631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:35.918272"], ["updated_at", "2017-06-26 07:05:35.918272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:35.935509"], ["updated_at", "2017-06-26 07:05:35.935509"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:35.938413"], ["updated_at", "2017-06-26 07:05:35.938413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:35.962101"], ["updated_at", "2017-06-26 07:05:35.962101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:35.963105"], ["updated_at", "2017-06-26 07:05:35.963105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.151618"], ["updated_at", "2017-06-26 07:05:36.151618"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.152937"], ["updated_at", "2017-06-26 07:05:36.152937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.155749"], ["updated_at", "2017-06-26 07:05:36.155749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.159723"], ["updated_at", "2017-06-26 07:05:36.159723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.163777"], ["updated_at", "2017-06-26 07:05:36.163777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.164675"], ["updated_at", "2017-06-26 07:05:36.164675"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.167514"], ["updated_at", "2017-06-26 07:05:36.167514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.170444"], ["updated_at", "2017-06-26 07:05:36.170444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.176958"], ["updated_at", "2017-06-26 07:05:36.176958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.181536"], ["updated_at", "2017-06-26 07:05:36.181536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.187006"], ["updated_at", "2017-06-26 07:05:36.187006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.187992"], ["updated_at", "2017-06-26 07:05:36.187992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.190614"], ["updated_at", "2017-06-26 07:05:36.190614"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.194664"], ["updated_at", "2017-06-26 07:05:36.194664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:36.195857"], ["updated_at", "2017-06-26 07:05:36.195857"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.199674"], ["updated_at", "2017-06-26 07:05:36.199674"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:36.206097"], ["updated_at", "2017-06-26 07:05:36.206097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:36.206909"], ["updated_at", "2017-06-26 07:05:36.206909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:36.209220"], ["updated_at", "2017-06-26 07:05:36.209220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:36.210076"], ["updated_at", "2017-06-26 07:05:36.210076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.217664"], ["updated_at", "2017-06-26 07:05:36.217664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.218894"], ["updated_at", "2017-06-26 07:05:36.218894"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.219877"], ["updated_at", "2017-06-26 07:05:36.219877"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.222638"], ["updated_at", "2017-06-26 07:05:36.222638"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.224926"], ["updated_at", "2017-06-26 07:05:36.224926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:36.231179"], ["updated_at", "2017-06-26 07:05:36.231179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.235049"], ["updated_at", "2017-06-26 07:05:36.235049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.236020"], ["updated_at", "2017-06-26 07:05:36.236020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.246546"], ["updated_at", "2017-06-26 07:05:36.246546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.252195"], ["updated_at", "2017-06-26 07:05:36.252195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.260517"], ["updated_at", "2017-06-26 07:05:36.260517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.261253"], ["updated_at", "2017-06-26 07:05:36.261253"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.263626"], ["updated_at", "2017-06-26 07:05:36.263626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.264359"], ["updated_at", "2017-06-26 07:05:36.264359"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.266118"], ["updated_at", "2017-06-26 07:05:36.266118"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.271009"], ["updated_at", "2017-06-26 07:05:36.271009"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.272771"], ["updated_at", "2017-06-26 07:05:36.272771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.275074"], ["updated_at", "2017-06-26 07:05:36.275074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.277045"], ["updated_at", "2017-06-26 07:05:36.277045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:36.280110"], ["updated_at", "2017-06-26 07:05:36.280110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:36.280967"], ["updated_at", "2017-06-26 07:05:36.280967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:36.282587"], ["updated_at", "2017-06-26 07:05:36.282587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:36.283374"], ["updated_at", "2017-06-26 07:05:36.283374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.286494"], ["updated_at", "2017-06-26 07:05:36.286494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.287316"], ["updated_at", "2017-06-26 07:05:36.287316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.309410"], ["updated_at", "2017-06-26 07:05:36.309410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.310197"], ["updated_at", "2017-06-26 07:05:36.310197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.316683"], ["updated_at", "2017-06-26 07:05:36.316683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.317486"], ["updated_at", "2017-06-26 07:05:36.317486"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:36.319286"], ["updated_at", "2017-06-26 07:05:36.319286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:36.321673"], ["updated_at", "2017-06-26 07:05:36.321673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.330933"], ["updated_at", "2017-06-26 07:05:36.330933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.331827"], ["updated_at", "2017-06-26 07:05:36.331827"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.334337"], ["updated_at", "2017-06-26 07:05:36.334337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.335215"], ["updated_at", "2017-06-26 07:05:36.335215"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.337279"], ["updated_at", "2017-06-26 07:05:36.337279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.338084"], ["updated_at", "2017-06-26 07:05:36.338084"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:36.343795"], ["updated_at", "2017-06-26 07:05:36.343795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:36.353232"], ["updated_at", "2017-06-26 07:05:36.353232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:36.354221"], ["updated_at", "2017-06-26 07:05:36.354221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.354989"], ["updated_at", "2017-06-26 07:05:36.354989"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.358637"], ["updated_at", "2017-06-26 07:05:36.358637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.360630"], ["updated_at", "2017-06-26 07:05:36.360630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:36.364075"], ["updated_at", "2017-06-26 07:05:36.364075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:05:36.365176"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:36.366093"], ["updated_at", "2017-06-26 07:05:36.366093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:36.366848"], ["updated_at", "2017-06-26 07:05:36.366848"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.373361"], ["updated_at", "2017-06-26 07:05:36.373361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.374164"], ["updated_at", "2017-06-26 07:05:36.374164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.386953"], ["updated_at", "2017-06-26 07:05:36.386953"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.392514"], ["updated_at", "2017-06-26 07:05:36.392514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.398337"], ["updated_at", "2017-06-26 07:05:36.398337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.403925"], ["updated_at", "2017-06-26 07:05:36.403925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.408803"], ["updated_at", "2017-06-26 07:05:36.408803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.409538"], ["updated_at", "2017-06-26 07:05:36.409538"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.411603"], ["updated_at", "2017-06-26 07:05:36.411603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:36.412296"], ["updated_at", "2017-06-26 07:05:36.412296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.144184"], ["updated_at", "2017-06-26 07:05:39.144184"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.190308"], ["updated_at", "2017-06-26 07:05:39.190308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.200166"], ["updated_at", "2017-06-26 07:05:39.200166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.203088"], ["updated_at", "2017-06-26 07:05:39.203088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:39.218361"], ["updated_at", "2017-06-26 07:05:39.218361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:39.219991"], ["updated_at", "2017-06-26 07:05:39.219991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:39.243449"], ["updated_at", "2017-06-26 07:05:39.243449"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.303529"], ["updated_at", "2017-06-26 07:05:39.303529"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 2)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:39.312951"], ["updated_at", "2017-06-26 07:05:39.312951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-06-26 07:05:39.315083"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:39.316202"], ["updated_at", "2017-06-26 07:05:39.316202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:39.317205"], ["updated_at", "2017-06-26 07:05:39.317205"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.321703"], ["updated_at", "2017-06-26 07:05:39.321703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.322687"], ["updated_at", "2017-06-26 07:05:39.322687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.329996"], ["updated_at", "2017-06-26 07:05:39.329996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.330821"], ["updated_at", "2017-06-26 07:05:39.330821"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.342372"], ["updated_at", "2017-06-26 07:05:39.342372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.343215"], ["updated_at", "2017-06-26 07:05:39.343215"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.345780"], ["updated_at", "2017-06-26 07:05:39.345780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.351273"], ["updated_at", "2017-06-26 07:05:39.351273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.352218"], ["updated_at", "2017-06-26 07:05:39.352218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.355500"], ["updated_at", "2017-06-26 07:05:39.355500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:39.359545"], ["updated_at", "2017-06-26 07:05:39.359545"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:39.360481"], ["updated_at", "2017-06-26 07:05:39.360481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:39.362543"], ["updated_at", "2017-06-26 07:05:39.362543"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:39.363418"], ["updated_at", "2017-06-26 07:05:39.363418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:39.371177"], ["updated_at", "2017-06-26 07:05:39.371177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:39.372319"], ["updated_at", "2017-06-26 07:05:39.372319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:39.374571"], ["updated_at", "2017-06-26 07:05:39.374571"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:39.375835"], ["updated_at", "2017-06-26 07:05:39.375835"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.380260"], ["updated_at", "2017-06-26 07:05:39.380260"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.382724"], ["updated_at", "2017-06-26 07:05:39.382724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.385264"], ["updated_at", "2017-06-26 07:05:39.385264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.389511"], ["updated_at", "2017-06-26 07:05:39.389511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.397916"], ["updated_at", "2017-06-26 07:05:39.397916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.399179"], ["updated_at", "2017-06-26 07:05:39.399179"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.402079"], ["updated_at", "2017-06-26 07:05:39.402079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.405006"], ["updated_at", "2017-06-26 07:05:39.405006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.408586"], ["updated_at", "2017-06-26 07:05:39.408586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.409421"], ["updated_at", "2017-06-26 07:05:39.409421"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.412042"], ["updated_at", "2017-06-26 07:05:39.412042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.414399"], ["updated_at", "2017-06-26 07:05:39.414399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:39.437858"], ["updated_at", "2017-06-26 07:05:39.437858"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:39.439490"], ["updated_at", "2017-06-26 07:05:39.439490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.440737"], ["updated_at", "2017-06-26 07:05:39.440737"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:39.449631"], ["updated_at", "2017-06-26 07:05:39.449631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.454276"], ["updated_at", "2017-06-26 07:05:39.454276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.455238"], ["updated_at", "2017-06-26 07:05:39.455238"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:39.457774"], ["updated_at", "2017-06-26 07:05:39.457774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:39.460540"], ["updated_at", "2017-06-26 07:05:39.460540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.472863"], ["updated_at", "2017-06-26 07:05:39.472863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.481846"], ["updated_at", "2017-06-26 07:05:39.481846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.489433"], ["updated_at", "2017-06-26 07:05:39.489433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.492227"], ["updated_at", "2017-06-26 07:05:39.492227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.494624"], ["updated_at", "2017-06-26 07:05:39.494624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.498541"], ["updated_at", "2017-06-26 07:05:39.498541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.502380"], ["updated_at", "2017-06-26 07:05:39.502380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.503327"], ["updated_at", "2017-06-26 07:05:39.503327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.516441"], ["updated_at", "2017-06-26 07:05:39.516441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.517494"], ["updated_at", "2017-06-26 07:05:39.517494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.522816"], ["updated_at", "2017-06-26 07:05:39.522816"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.527863"], ["updated_at", "2017-06-26 07:05:39.527863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.528782"], ["updated_at", "2017-06-26 07:05:39.528782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.530811"], ["updated_at", "2017-06-26 07:05:39.530811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.535176"], ["updated_at", "2017-06-26 07:05:39.535176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.536351"], ["updated_at", "2017-06-26 07:05:39.536351"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:39.540398"], ["updated_at", "2017-06-26 07:05:39.540398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.550154"], ["updated_at", "2017-06-26 07:05:39.550154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.555478"], ["updated_at", "2017-06-26 07:05:39.555478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.556307"], ["updated_at", "2017-06-26 07:05:39.556307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.557104"], ["updated_at", "2017-06-26 07:05:39.557104"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.559365"], ["updated_at", "2017-06-26 07:05:39.559365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.560086"], ["updated_at", "2017-06-26 07:05:39.560086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.569381"], ["updated_at", "2017-06-26 07:05:39.569381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.570382"], ["updated_at", "2017-06-26 07:05:39.570382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.586643"], ["updated_at", "2017-06-26 07:05:39.586643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.591560"], ["updated_at", "2017-06-26 07:05:39.591560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.592550"], ["updated_at", "2017-06-26 07:05:39.592550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.593503"], ["updated_at", "2017-06-26 07:05:39.593503"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.596389"], ["updated_at", "2017-06-26 07:05:39.596389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.597271"], ["updated_at", "2017-06-26 07:05:39.597271"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.600151"], ["updated_at", "2017-06-26 07:05:39.600151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:39.606525"], ["updated_at", "2017-06-26 07:05:39.606525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:39.607597"], ["updated_at", "2017-06-26 07:05:39.607597"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.575411"], ["updated_at", "2017-06-26 07:05:42.575411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.605621"], ["updated_at", "2017-06-26 07:05:42.605621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.606760"], ["updated_at", "2017-06-26 07:05:42.606760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.607522"], ["updated_at", "2017-06-26 07:05:42.607522"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.610320"], ["updated_at", "2017-06-26 07:05:42.610320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:42.611210"], ["updated_at", "2017-06-26 07:05:42.611210"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:42.614741"], ["updated_at", "2017-06-26 07:05:42.614741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:42.615688"], ["updated_at", "2017-06-26 07:05:42.615688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:42.618012"], ["updated_at", "2017-06-26 07:05:42.618012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:42.619085"], ["updated_at", "2017-06-26 07:05:42.619085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:42.637141"], ["updated_at", "2017-06-26 07:05:42.637141"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:42.639812"], ["updated_at", "2017-06-26 07:05:42.639812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.650592"], ["updated_at", "2017-06-26 07:05:42.650592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.651628"], ["updated_at", "2017-06-26 07:05:42.651628"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.654399"], ["updated_at", "2017-06-26 07:05:42.654399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.660749"], ["updated_at", "2017-06-26 07:05:42.660749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.661599"], ["updated_at", "2017-06-26 07:05:42.661599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.663947"], ["updated_at", "2017-06-26 07:05:42.663947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.668616"], ["updated_at", "2017-06-26 07:05:42.668616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:42.685338"], ["updated_at", "2017-06-26 07:05:42.685338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.690647"], ["updated_at", "2017-06-26 07:05:42.690647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.691632"], ["updated_at", "2017-06-26 07:05:42.691632"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.693856"], ["updated_at", "2017-06-26 07:05:42.693856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.694837"], ["updated_at", "2017-06-26 07:05:42.694837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.697567"], ["updated_at", "2017-06-26 07:05:42.697567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.701776"], ["updated_at", "2017-06-26 07:05:42.701776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.702757"], ["updated_at", "2017-06-26 07:05:42.702757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.709641"], ["updated_at", "2017-06-26 07:05:42.709641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.716866"], ["updated_at", "2017-06-26 07:05:42.716866"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.727689"], ["updated_at", "2017-06-26 07:05:42.727689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.737313"], ["updated_at", "2017-06-26 07:05:42.737313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.740721"], ["updated_at", "2017-06-26 07:05:42.740721"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.749598"], ["updated_at", "2017-06-26 07:05:42.749598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.750602"], ["updated_at", "2017-06-26 07:05:42.750602"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.773398"], ["updated_at", "2017-06-26 07:05:42.773398"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.774268"], ["updated_at", "2017-06-26 07:05:42.774268"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.776962"], ["updated_at", "2017-06-26 07:05:42.776962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.782645"], ["updated_at", "2017-06-26 07:05:42.782645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.783545"], ["updated_at", "2017-06-26 07:05:42.783545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.788674"], ["updated_at", "2017-06-26 07:05:42.788674"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.789509"], ["updated_at", "2017-06-26 07:05:42.789509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:42.803167"], ["updated_at", "2017-06-26 07:05:42.803167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.812905"], ["updated_at", "2017-06-26 07:05:42.812905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.813687"], ["updated_at", "2017-06-26 07:05:42.813687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.823336"], ["updated_at", "2017-06-26 07:05:42.823336"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:42.843418"], ["updated_at", "2017-06-26 07:05:42.843418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:05:42.845287"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:42.847048"], ["updated_at", "2017-06-26 07:05:42.847048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:42.847983"], ["updated_at", "2017-06-26 07:05:42.847983"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.851791"], ["updated_at", "2017-06-26 07:05:42.851791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.852694"], ["updated_at", "2017-06-26 07:05:42.852694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.853529"], ["updated_at", "2017-06-26 07:05:42.853529"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.856156"], ["updated_at", "2017-06-26 07:05:42.856156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.861542"], ["updated_at", "2017-06-26 07:05:42.861542"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.862548"], ["updated_at", "2017-06-26 07:05:42.862548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.870615"], ["updated_at", "2017-06-26 07:05:42.870615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.871695"], ["updated_at", "2017-06-26 07:05:42.871695"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.873955"], ["updated_at", "2017-06-26 07:05:42.873955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.876322"], ["updated_at", "2017-06-26 07:05:42.876322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:42.879913"], ["updated_at", "2017-06-26 07:05:42.879913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:42.880804"], ["updated_at", "2017-06-26 07:05:42.880804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.881593"], ["updated_at", "2017-06-26 07:05:42.881593"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.883719"], ["updated_at", "2017-06-26 07:05:42.883719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.884571"], ["updated_at", "2017-06-26 07:05:42.884571"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.886936"], ["updated_at", "2017-06-26 07:05:42.886936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.889485"], ["updated_at", "2017-06-26 07:05:42.889485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.897310"], ["updated_at", "2017-06-26 07:05:42.897310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.900481"], ["updated_at", "2017-06-26 07:05:42.900481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.902768"], ["updated_at", "2017-06-26 07:05:42.902768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.906373"], ["updated_at", "2017-06-26 07:05:42.906373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.910570"], ["updated_at", "2017-06-26 07:05:42.910570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:42.916959"], ["updated_at", "2017-06-26 07:05:42.916959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:42.917832"], ["updated_at", "2017-06-26 07:05:42.917832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:42.919434"], ["updated_at", "2017-06-26 07:05:42.919434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:42.920280"], ["updated_at", "2017-06-26 07:05:42.920280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.923603"], ["updated_at", "2017-06-26 07:05:42.923603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:42.924420"], ["updated_at", "2017-06-26 07:05:42.924420"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:42.996602"], ["updated_at", "2017-06-26 07:05:42.996602"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:43.015727"], ["updated_at", "2017-06-26 07:05:43.015727"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:43.017069"], ["updated_at", "2017-06-26 07:05:43.017069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:43.029717"], ["updated_at", "2017-06-26 07:05:43.029717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:43.042140"], ["updated_at", "2017-06-26 07:05:43.042140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:43.047291"], ["updated_at", "2017-06-26 07:05:43.047291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:43.049990"], ["updated_at", "2017-06-26 07:05:43.049990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.310212"], ["updated_at", "2017-06-26 07:05:46.310212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.315858"], ["updated_at", "2017-06-26 07:05:46.315858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.316820"], ["updated_at", "2017-06-26 07:05:46.316820"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.365249"], ["updated_at", "2017-06-26 07:05:46.365249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.371064"], ["updated_at", "2017-06-26 07:05:46.371064"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.374116"], ["updated_at", "2017-06-26 07:05:46.374116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.381207"], ["updated_at", "2017-06-26 07:05:46.381207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.382205"], ["updated_at", "2017-06-26 07:05:46.382205"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:46.385111"], ["updated_at", "2017-06-26 07:05:46.385111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:46.386040"], ["updated_at", "2017-06-26 07:05:46.386040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:46.388116"], ["updated_at", "2017-06-26 07:05:46.388116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:46.388837"], ["updated_at", "2017-06-26 07:05:46.388837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.397946"], ["updated_at", "2017-06-26 07:05:46.397946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.399140"], ["updated_at", "2017-06-26 07:05:46.399140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.400124"], ["updated_at", "2017-06-26 07:05:46.400124"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:46.405160"], ["updated_at", "2017-06-26 07:05:46.405160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 07:05:46.406127"], ["updated_at", "2017-06-26 07:05:46.406127"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.407057"], ["updated_at", "2017-06-26 07:05:46.407057"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 07:05:46.413349"], ["updated_at", "2017-06-26 07:05:46.413349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 07:05:46.426107"], ["updated_at", "2017-06-26 07:05:46.426107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 07:05:46.427419"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:46.429075"], ["updated_at", "2017-06-26 07:05:46.429075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 07:05:46.430170"], ["updated_at", "2017-06-26 07:05:46.430170"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 07:05:46.446596"], ["updated_at", "2017-06-26 07:05:46.446596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.451715"], ["updated_at", "2017-06-26 07:05:46.451715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.457014"], ["updated_at", "2017-06-26 07:05:46.457014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.457848"], ["updated_at", "2017-06-26 07:05:46.457848"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.460119"], ["updated_at", "2017-06-26 07:05:46.460119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.460942"], ["updated_at", "2017-06-26 07:05:46.460942"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.467820"], ["updated_at", "2017-06-26 07:05:46.467820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 07:05:46.469129"], ["updated_at", "2017-06-26 07:05:46.469129"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.472105"], ["updated_at", "2017-06-26 07:05:46.472105"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.472931"], ["updated_at", "2017-06-26 07:05:46.472931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.478614"], ["updated_at", "2017-06-26 07:05:46.478614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.479515"], ["updated_at", "2017-06-26 07:05:46.479515"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.482176"], ["updated_at", "2017-06-26 07:05:46.482176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.483008"], ["updated_at", "2017-06-26 07:05:46.483008"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.493800"], ["updated_at", "2017-06-26 07:05:46.493800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.494701"], ["updated_at", "2017-06-26 07:05:46.494701"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.505214"], ["updated_at", "2017-06-26 07:05:46.505214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.506091"], ["updated_at", "2017-06-26 07:05:46.506091"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.517034"], ["updated_at", "2017-06-26 07:05:46.517034"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.521814"], ["updated_at", "2017-06-26 07:05:46.521814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.527489"], ["updated_at", "2017-06-26 07:05:46.527489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.537135"], ["updated_at", "2017-06-26 07:05:46.537135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.538194"], ["updated_at", "2017-06-26 07:05:46.538194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.540550"], ["updated_at", "2017-06-26 07:05:46.540550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 07:05:46.545736"], ["updated_at", "2017-06-26 07:05:46.545736"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 07:05:46.546976"], ["updated_at", "2017-06-26 07:05:46.546976"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 07:05:46.549130"], ["updated_at", "2017-06-26 07:05:46.549130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 07:05:46.550310"], ["updated_at", "2017-06-26 07:05:46.550310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.554539"], ["updated_at", "2017-06-26 07:05:46.554539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.557361"], ["updated_at", "2017-06-26 07:05:46.557361"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.559806"], ["updated_at", "2017-06-26 07:05:46.559806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.563787"], ["updated_at", "2017-06-26 07:05:46.563787"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.566500"], ["updated_at", "2017-06-26 07:05:46.566500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.570615"], ["updated_at", "2017-06-26 07:05:46.570615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.571686"], ["updated_at", "2017-06-26 07:05:46.571686"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.574077"], ["updated_at", "2017-06-26 07:05:46.574077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.574919"], ["updated_at", "2017-06-26 07:05:46.574919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.577520"], ["updated_at", "2017-06-26 07:05:46.577520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.581715"], ["updated_at", "2017-06-26 07:05:46.581715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.590610"], ["updated_at", "2017-06-26 07:05:46.590610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.598531"], ["updated_at", "2017-06-26 07:05:46.598531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.601753"], ["updated_at", "2017-06-26 07:05:46.601753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.606185"], ["updated_at", "2017-06-26 07:05:46.606185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.611673"], ["updated_at", "2017-06-26 07:05:46.611673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.612699"], ["updated_at", "2017-06-26 07:05:46.612699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.615392"], ["updated_at", "2017-06-26 07:05:46.615392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.620081"], ["updated_at", "2017-06-26 07:05:46.620081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.621072"], ["updated_at", "2017-06-26 07:05:46.621072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.633091"], ["updated_at", "2017-06-26 07:05:46.633091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.634185"], ["updated_at", "2017-06-26 07:05:46.634185"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.640072"], ["updated_at", "2017-06-26 07:05:46.640072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.642991"], ["updated_at", "2017-06-26 07:05:46.642991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 07:05:46.646543"], ["updated_at", "2017-06-26 07:05:46.646543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 07:05:46.648917"], ["updated_at", "2017-06-26 07:05:46.648917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.746736"], ["updated_at", "2017-06-26 07:05:46.746736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 07:05:46.754515"], ["updated_at", "2017-06-26 07:05:46.754515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 07:05:46.755365"], ["updated_at", "2017-06-26 07:05:46.755365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 07:05:46.773879"], ["updated_at", "2017-06-26 07:05:46.773879"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.776364"], ["updated_at", "2017-06-26 07:05:46.776364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.781143"], ["updated_at", "2017-06-26 07:05:46.781143"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 07:05:46.783948"], ["updated_at", "2017-06-26 07:05:46.783948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.822708"], ["updated_at", "2017-06-26 08:44:33.822708"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.856841"], ["updated_at", "2017-06-26 08:44:33.856841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.859859"], ["updated_at", "2017-06-26 08:44:33.859859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.868927"], ["updated_at", "2017-06-26 08:44:33.868927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.870084"], ["updated_at", "2017-06-26 08:44:33.870084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.887888"], ["updated_at", "2017-06-26 08:44:33.887888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.889153"], ["updated_at", "2017-06-26 08:44:33.889153"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.896885"], ["updated_at", "2017-06-26 08:44:33.896885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.897803"], ["updated_at", "2017-06-26 08:44:33.897803"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-06-26 08:44:33.904832"], ["updated_at", "2017-06-26 08:44:33.904832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.927467"], ["updated_at", "2017-06-26 08:44:33.927467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.946794"], ["updated_at", "2017-06-26 08:44:33.946794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-06-26 08:44:33.954682"], ["updated_at", "2017-06-26 08:44:33.954682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-06-26 08:44:33.956349"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 08:44:33.957899"], ["updated_at", "2017-06-26 08:44:33.957899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-06-26 08:44:33.959004"], ["updated_at", "2017-06-26 08:44:33.959004"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.963328"], ["updated_at", "2017-06-26 08:44:33.963328"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.964147"], ["updated_at", "2017-06-26 08:44:33.964147"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.967006"], ["updated_at", "2017-06-26 08:44:33.967006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.973073"], ["updated_at", "2017-06-26 08:44:33.973073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.974074"], ["updated_at", "2017-06-26 08:44:33.974074"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.978352"], ["updated_at", "2017-06-26 08:44:33.978352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.983075"], ["updated_at", "2017-06-26 08:44:33.983075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.983987"], ["updated_at", "2017-06-26 08:44:33.983987"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.984730"], ["updated_at", "2017-06-26 08:44:33.984730"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.989560"], ["updated_at", "2017-06-26 08:44:33.989560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:33.990910"], ["updated_at", "2017-06-26 08:44:33.990910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-06-26 08:44:34.003523"], ["updated_at", "2017-06-26 08:44:34.003523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.017078"], ["updated_at", "2017-06-26 08:44:34.017078"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.021761"], ["updated_at", "2017-06-26 08:44:34.021761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.024968"], ["updated_at", "2017-06-26 08:44:34.024968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.044503"], ["updated_at", "2017-06-26 08:44:34.044503"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.045653"], ["updated_at", "2017-06-26 08:44:34.045653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 08:44:34.051393"], ["updated_at", "2017-06-26 08:44:34.051393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-06-26 08:44:34.052311"], ["updated_at", "2017-06-26 08:44:34.052311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.053178"], ["updated_at", "2017-06-26 08:44:34.053178"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.055120"], ["updated_at", "2017-06-26 08:44:34.055120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.055939"], ["updated_at", "2017-06-26 08:44:34.055939"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.057901"], ["updated_at", "2017-06-26 08:44:34.057901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.058781"], ["updated_at", "2017-06-26 08:44:34.058781"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.070276"], ["updated_at", "2017-06-26 08:44:34.070276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.071184"], ["updated_at", "2017-06-26 08:44:34.071184"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.074254"], ["updated_at", "2017-06-26 08:44:34.074254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.075150"], ["updated_at", "2017-06-26 08:44:34.075150"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.077941"], ["updated_at", "2017-06-26 08:44:34.077941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.079002"], ["updated_at", "2017-06-26 08:44:34.079002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.079839"], ["updated_at", "2017-06-26 08:44:34.079839"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.083058"], ["updated_at", "2017-06-26 08:44:34.083058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.086018"], ["updated_at", "2017-06-26 08:44:34.086018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.089695"], ["updated_at", "2017-06-26 08:44:34.089695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.094964"], ["updated_at", "2017-06-26 08:44:34.094964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.098152"], ["updated_at", "2017-06-26 08:44:34.098152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-06-26 08:44:34.102724"], ["updated_at", "2017-06-26 08:44:34.102724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-06-26 08:44:34.105230"], ["updated_at", "2017-06-26 08:44:34.105230"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 08:44:34.117912"], ["updated_at", "2017-06-26 08:44:34.117912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 08:44:34.119058"], ["updated_at", "2017-06-26 08:44:34.119058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 08:44:34.121157"], ["updated_at", "2017-06-26 08:44:34.121157"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 08:44:34.122111"], ["updated_at", "2017-06-26 08:44:34.122111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.137488"], ["updated_at", "2017-06-26 08:44:34.137488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.138426"], ["updated_at", "2017-06-26 08:44:34.138426"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.141303"], ["updated_at", "2017-06-26 08:44:34.141303"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.143087"], ["updated_at", "2017-06-26 08:44:34.143087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.155248"], ["updated_at", "2017-06-26 08:44:34.155248"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-06-26 08:44:34.157114"], ["updated_at", "2017-06-26 08:44:34.157114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-06-26 08:44:34.158203"], ["updated_at", "2017-06-26 08:44:34.158203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-06-26 08:44:34.160586"], ["updated_at", "2017-06-26 08:44:34.160586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-06-26 08:44:34.161594"], ["updated_at", "2017-06-26 08:44:34.161594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.169583"], ["updated_at", "2017-06-26 08:44:34.169583"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.176775"], ["updated_at", "2017-06-26 08:44:34.176775"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.182955"], ["updated_at", "2017-06-26 08:44:34.182955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-06-26 08:44:34.183747"], ["updated_at", "2017-06-26 08:44:34.183747"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.186434"], ["updated_at", "2017-06-26 08:44:34.186434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.187341"], ["updated_at", "2017-06-26 08:44:34.187341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.197297"], ["updated_at", "2017-06-26 08:44:34.197297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.200532"], ["updated_at", "2017-06-26 08:44:34.200532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.205300"], ["updated_at", "2017-06-26 08:44:34.205300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.211405"], ["updated_at", "2017-06-26 08:44:34.211405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.330454"], ["updated_at", "2017-06-26 08:44:34.330454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.336054"], ["updated_at", "2017-06-26 08:44:34.336054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.338518"], ["updated_at", "2017-06-26 08:44:34.338518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-06-26 08:44:34.348307"], ["updated_at", "2017-06-26 08:44:34.348307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-06-26 08:44:34.349308"], ["updated_at", "2017-06-26 08:44:34.349308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-06-26 08:44:34.387499"], ["updated_at", "2017-06-26 08:44:34.387499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (3.3ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-06-26 08:44:34.407676"], ["updated_at", "2017-06-26 08:44:34.407676"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 00:41:49.076316"], ["updated_at", "2017-11-10 00:41:49.076316"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 00:41:49.088246"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 00:41:49.090085"], ["updated_at", "2017-11-10 00:41:49.090085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 00:41:49.090906"], ["updated_at", "2017-11-10 00:41:49.090906"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.099167"], ["updated_at", "2017-11-10 00:41:49.099167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.100013"], ["updated_at", "2017-11-10 00:41:49.100013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.125285"], ["updated_at", "2017-11-10 00:41:49.125285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 00:41:49.131025"], ["updated_at", "2017-11-10 00:41:49.131025"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 00:41:49.139339"], ["updated_at", "2017-11-10 00:41:49.139339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.150401"], ["updated_at", "2017-11-10 00:41:49.150401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.153285"], ["updated_at", "2017-11-10 00:41:49.153285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.157122"], ["updated_at", "2017-11-10 00:41:49.157122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.162771"], ["updated_at", "2017-11-10 00:41:49.162771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.163672"], ["updated_at", "2017-11-10 00:41:49.163672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.166247"], ["updated_at", "2017-11-10 00:41:49.166247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 00:41:49.182890"], ["updated_at", "2017-11-10 00:41:49.182890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.7ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.188843"], ["updated_at", "2017-11-10 00:41:49.188843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.190281"], ["updated_at", "2017-11-10 00:41:49.190281"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.193526"], ["updated_at", "2017-11-10 00:41:49.193526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.200761"], ["updated_at", "2017-11-10 00:41:49.200761"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.208570"], ["updated_at", "2017-11-10 00:41:49.208570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.209672"], ["updated_at", "2017-11-10 00:41:49.209672"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.213373"], ["updated_at", "2017-11-10 00:41:49.213373"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.219779"], ["updated_at", "2017-11-10 00:41:49.219779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.222629"], ["updated_at", "2017-11-10 00:41:49.222629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.226866"], ["updated_at", "2017-11-10 00:41:49.226866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.227819"], ["updated_at", "2017-11-10 00:41:49.227819"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 00:41:49.232147"], ["updated_at", "2017-11-10 00:41:49.232147"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.248199"], ["updated_at", "2017-11-10 00:41:49.248199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.249141"], ["updated_at", "2017-11-10 00:41:49.249141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.256252"], ["updated_at", "2017-11-10 00:41:49.256252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.257464"], ["updated_at", "2017-11-10 00:41:49.257464"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.258403"], ["updated_at", "2017-11-10 00:41:49.258403"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.261321"], ["updated_at", "2017-11-10 00:41:49.261321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.262155"], ["updated_at", "2017-11-10 00:41:49.262155"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.264088"], ["updated_at", "2017-11-10 00:41:49.264088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.264928"], ["updated_at", "2017-11-10 00:41:49.264928"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.267272"], ["updated_at", "2017-11-10 00:41:49.267272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.269811"], ["updated_at", "2017-11-10 00:41:49.269811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.272412"], ["updated_at", "2017-11-10 00:41:49.272412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 00:41:49.276468"], ["updated_at", "2017-11-10 00:41:49.276468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 00:41:49.277431"], ["updated_at", "2017-11-10 00:41:49.277431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 00:41:49.279236"], ["updated_at", "2017-11-10 00:41:49.279236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 00:41:49.280463"], ["updated_at", "2017-11-10 00:41:49.280463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.284222"], ["updated_at", "2017-11-10 00:41:49.284222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.285216"], ["updated_at", "2017-11-10 00:41:49.285216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.285989"], ["updated_at", "2017-11-10 00:41:49.285989"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.289503"], ["updated_at", "2017-11-10 00:41:49.289503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.290515"], ["updated_at", "2017-11-10 00:41:49.290515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.302313"], ["updated_at", "2017-11-10 00:41:49.302313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.303320"], ["updated_at", "2017-11-10 00:41:49.303320"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.322214"], ["updated_at", "2017-11-10 00:41:49.322214"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.327454"], ["updated_at", "2017-11-10 00:41:49.327454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.332466"], ["updated_at", "2017-11-10 00:41:49.332466"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.334678"], ["updated_at", "2017-11-10 00:41:49.334678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 00:41:49.335631"], ["updated_at", "2017-11-10 00:41:49.335631"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.339104"], ["updated_at", "2017-11-10 00:41:49.339104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.339972"], ["updated_at", "2017-11-10 00:41:49.339972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.350890"], ["updated_at", "2017-11-10 00:41:49.350890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.351833"], ["updated_at", "2017-11-10 00:41:49.351833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.354960"], ["updated_at", "2017-11-10 00:41:49.354960"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.361814"], ["updated_at", "2017-11-10 00:41:49.361814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.365757"], ["updated_at", "2017-11-10 00:41:49.365757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.379791"], ["updated_at", "2017-11-10 00:41:49.379791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.395077"], ["updated_at", "2017-11-10 00:41:49.395077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.395954"], ["updated_at", "2017-11-10 00:41:49.395954"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.397877"], ["updated_at", "2017-11-10 00:41:49.397877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.398634"], ["updated_at", "2017-11-10 00:41:49.398634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 00:41:49.403954"], ["updated_at", "2017-11-10 00:41:49.403954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 00:41:49.405008"], ["updated_at", "2017-11-10 00:41:49.405008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.405785"], ["updated_at", "2017-11-10 00:41:49.405785"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.407555"], ["updated_at", "2017-11-10 00:41:49.407555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.409704"], ["updated_at", "2017-11-10 00:41:49.409704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 00:41:49.412786"], ["updated_at", "2017-11-10 00:41:49.412786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 00:41:49.413630"], ["updated_at", "2017-11-10 00:41:49.413630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 00:41:49.415394"], ["updated_at", "2017-11-10 00:41:49.415394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 00:41:49.416267"], ["updated_at", "2017-11-10 00:41:49.416267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.480045"], ["updated_at", "2017-11-10 00:41:49.480045"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.485244"], ["updated_at", "2017-11-10 00:41:49.485244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.487809"], ["updated_at", "2017-11-10 00:41:49.487809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 00:41:49.493968"], ["updated_at", "2017-11-10 00:41:49.493968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 00:41:49.494803"], ["updated_at", "2017-11-10 00:41:49.494803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 00:41:49.513927"], ["updated_at", "2017-11-10 00:41:49.513927"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:41:49.532875"], ["updated_at", "2017-11-10 00:41:49.532875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.412936"], ["updated_at", "2017-11-10 00:42:02.412936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 00:42:02.434260"], ["updated_at", "2017-11-10 00:42:02.434260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 00:42:02.435414"], ["updated_at", "2017-11-10 00:42:02.435414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 00:42:02.487708"], ["updated_at", "2017-11-10 00:42:02.487708"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.490657"], ["updated_at", "2017-11-10 00:42:02.490657"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.497996"], ["updated_at", "2017-11-10 00:42:02.497996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.500954"], ["updated_at", "2017-11-10 00:42:02.500954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.558655"], ["updated_at", "2017-11-10 00:42:02.558655"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.559933"], ["updated_at", "2017-11-10 00:42:02.559933"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.564138"], ["updated_at", "2017-11-10 00:42:02.564138"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.568063"], ["updated_at", "2017-11-10 00:42:02.568063"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.4ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 00:42:02.575150"], ["updated_at", "2017-11-10 00:42:02.575150"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 00:42:02.577578"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 00:42:02.578910"], ["updated_at", "2017-11-10 00:42:02.578910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 00:42:02.580079"], ["updated_at", "2017-11-10 00:42:02.580079"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 00:42:02.585852"], ["updated_at", "2017-11-10 00:42:02.585852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.600424"], ["updated_at", "2017-11-10 00:42:02.600424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.601623"], ["updated_at", "2017-11-10 00:42:02.601623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.607866"], ["updated_at", "2017-11-10 00:42:02.607866"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.613405"], ["updated_at", "2017-11-10 00:42:02.613405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.614464"], ["updated_at", "2017-11-10 00:42:02.614464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.615482"], ["updated_at", "2017-11-10 00:42:02.615482"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.619103"], ["updated_at", "2017-11-10 00:42:02.619103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.629516"], ["updated_at", "2017-11-10 00:42:02.629516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.630557"], ["updated_at", "2017-11-10 00:42:02.630557"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.632873"], ["updated_at", "2017-11-10 00:42:02.632873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.633735"], ["updated_at", "2017-11-10 00:42:02.633735"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.637135"], ["updated_at", "2017-11-10 00:42:02.637135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.638423"], ["updated_at", "2017-11-10 00:42:02.638423"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.650476"], ["updated_at", "2017-11-10 00:42:02.650476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.656785"], ["updated_at", "2017-11-10 00:42:02.656785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.665045"], ["updated_at", "2017-11-10 00:42:02.665045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 00:42:02.666194"], ["updated_at", "2017-11-10 00:42:02.666194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.677987"], ["updated_at", "2017-11-10 00:42:02.677987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.682733"], ["updated_at", "2017-11-10 00:42:02.682733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.683698"], ["updated_at", "2017-11-10 00:42:02.683698"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.686280"], ["updated_at", "2017-11-10 00:42:02.686280"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.688286"], ["updated_at", "2017-11-10 00:42:02.688286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.689212"], ["updated_at", "2017-11-10 00:42:02.689212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.696367"], ["updated_at", "2017-11-10 00:42:02.696367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.698303"], ["updated_at", "2017-11-10 00:42:02.698303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.700194"], ["updated_at", "2017-11-10 00:42:02.700194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.702999"], ["updated_at", "2017-11-10 00:42:02.702999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.704740"], ["updated_at", "2017-11-10 00:42:02.704740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.708054"], ["updated_at", "2017-11-10 00:42:02.708054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.712419"], ["updated_at", "2017-11-10 00:42:02.712419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.713306"], ["updated_at", "2017-11-10 00:42:02.713306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.723945"], ["updated_at", "2017-11-10 00:42:02.723945"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 00:42:02.730092"], ["updated_at", "2017-11-10 00:42:02.730092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 00:42:02.732219"], ["updated_at", "2017-11-10 00:42:02.732219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.748683"], ["updated_at", "2017-11-10 00:42:02.748683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.749562"], ["updated_at", "2017-11-10 00:42:02.749562"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.751523"], ["updated_at", "2017-11-10 00:42:02.751523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 00:42:02.755316"], ["updated_at", "2017-11-10 00:42:02.755316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 00:42:02.756233"], ["updated_at", "2017-11-10 00:42:02.756233"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 00:42:02.758927"], ["updated_at", "2017-11-10 00:42:02.758927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 00:42:02.760059"], ["updated_at", "2017-11-10 00:42:02.760059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.768291"], ["updated_at", "2017-11-10 00:42:02.768291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.773595"], ["updated_at", "2017-11-10 00:42:02.773595"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.775201"], ["updated_at", "2017-11-10 00:42:02.775201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.778118"], ["updated_at", "2017-11-10 00:42:02.778118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.781670"], ["updated_at", "2017-11-10 00:42:02.781670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.782443"], ["updated_at", "2017-11-10 00:42:02.782443"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.783253"], ["updated_at", "2017-11-10 00:42:02.783253"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.785436"], ["updated_at", "2017-11-10 00:42:02.785436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.786218"], ["updated_at", "2017-11-10 00:42:02.786218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.787985"], ["updated_at", "2017-11-10 00:42:02.787985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.791238"], ["updated_at", "2017-11-10 00:42:02.791238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.795911"], ["updated_at", "2017-11-10 00:42:02.795911"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.796809"], ["updated_at", "2017-11-10 00:42:02.796809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 00:42:02.801599"], ["updated_at", "2017-11-10 00:42:02.801599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 00:42:02.802467"], ["updated_at", "2017-11-10 00:42:02.802467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.803254"], ["updated_at", "2017-11-10 00:42:02.803254"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 00:42:02.805085"], ["updated_at", "2017-11-10 00:42:02.805085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 00:42:02.806069"], ["updated_at", "2017-11-10 00:42:02.806069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 00:42:02.808143"], ["updated_at", "2017-11-10 00:42:02.808143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 00:42:02.809147"], ["updated_at", "2017-11-10 00:42:02.809147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.825646"], ["updated_at", "2017-11-10 00:42:02.825646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.826660"], ["updated_at", "2017-11-10 00:42:02.826660"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.830106"], ["updated_at", "2017-11-10 00:42:02.830106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.831046"], ["updated_at", "2017-11-10 00:42:02.831046"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 00:42:02.837684"], ["updated_at", "2017-11-10 00:42:02.837684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.841534"], ["updated_at", "2017-11-10 00:42:02.841534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 00:42:02.843675"], ["updated_at", "2017-11-10 00:42:02.843675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:19:41.564713"], ["updated_at", "2017-11-10 01:19:41.564713"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:19:41.569742"], ["updated_at", "2017-11-10 01:19:41.569742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:19:41.570835"], ["updated_at", "2017-11-10 01:19:41.570835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.610989"], ["updated_at", "2017-11-10 01:19:41.610989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.617245"], ["updated_at", "2017-11-10 01:19:41.617245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.620325"], ["updated_at", "2017-11-10 01:19:41.620325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.628310"], ["updated_at", "2017-11-10 01:19:41.628310"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:19:41.674355"], ["updated_at", "2017-11-10 01:19:41.674355"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:19:41.676169"], ["updated_at", "2017-11-10 01:19:41.676169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:19:41.678751"], ["updated_at", "2017-11-10 01:19:41.678751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:19:41.679601"], ["updated_at", "2017-11-10 01:19:41.679601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.687358"], ["updated_at", "2017-11-10 01:19:41.687358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.692703"], ["updated_at", "2017-11-10 01:19:41.692703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.695456"], ["updated_at", "2017-11-10 01:19:41.695456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.699222"], ["updated_at", "2017-11-10 01:19:41.699222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:19:41.734217"], ["updated_at", "2017-11-10 01:19:41.734217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:19:41.744656"], ["updated_at", "2017-11-10 01:19:41.744656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:19:41.745733"], ["updated_at", "2017-11-10 01:19:41.745733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:19:41.747447"], ["updated_at", "2017-11-10 01:19:41.747447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:19:41.748238"], ["updated_at", "2017-11-10 01:19:41.748238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.754406"], ["updated_at", "2017-11-10 01:19:41.754406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.755207"], ["updated_at", "2017-11-10 01:19:41.755207"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.757996"], ["updated_at", "2017-11-10 01:19:41.757996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:19:41.758976"], ["updated_at", "2017-11-10 01:19:41.758976"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:19:41.761828"], ["updated_at", "2017-11-10 01:19:41.761828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:19:41.763910"], ["updated_at", "2017-11-10 01:19:41.763910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.771111"], ["updated_at", "2017-11-10 01:19:41.771111"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.773212"], ["updated_at", "2017-11-10 01:19:41.773212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.777164"], ["updated_at", "2017-11-10 01:19:41.777164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.778023"], ["updated_at", "2017-11-10 01:19:41.778023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.786938"], ["updated_at", "2017-11-10 01:19:41.786938"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.787795"], ["updated_at", "2017-11-10 01:19:41.787795"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:19:41.790429"], ["updated_at", "2017-11-10 01:19:41.790429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:19:41.791564"], ["updated_at", "2017-11-10 01:19:41.791564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.792442"], ["updated_at", "2017-11-10 01:19:41.792442"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.794215"], ["updated_at", "2017-11-10 01:19:41.794215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.794926"], ["updated_at", "2017-11-10 01:19:41.794926"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.797241"], ["updated_at", "2017-11-10 01:19:41.797241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.797958"], ["updated_at", "2017-11-10 01:19:41.797958"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.799559"], ["updated_at", "2017-11-10 01:19:41.799559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.802825"], ["updated_at", "2017-11-10 01:19:41.802825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.807986"], ["updated_at", "2017-11-10 01:19:41.807986"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.811176"], ["updated_at", "2017-11-10 01:19:41.811176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.814921"], ["updated_at", "2017-11-10 01:19:41.814921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.815684"], ["updated_at", "2017-11-10 01:19:41.815684"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:19:41.819848"], ["updated_at", "2017-11-10 01:19:41.819848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 01:19:41.820921"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:19:41.821809"], ["updated_at", "2017-11-10 01:19:41.821809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:19:41.822625"], ["updated_at", "2017-11-10 01:19:41.822625"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.825857"], ["updated_at", "2017-11-10 01:19:41.825857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.826712"], ["updated_at", "2017-11-10 01:19:41.826712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.827473"], ["updated_at", "2017-11-10 01:19:41.827473"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.829752"], ["updated_at", "2017-11-10 01:19:41.829752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.830478"], ["updated_at", "2017-11-10 01:19:41.830478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.838360"], ["updated_at", "2017-11-10 01:19:41.838360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.839221"], ["updated_at", "2017-11-10 01:19:41.839221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.848753"], ["updated_at", "2017-11-10 01:19:41.848753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.849575"], ["updated_at", "2017-11-10 01:19:41.849575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.855523"], ["updated_at", "2017-11-10 01:19:41.855523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.860896"], ["updated_at", "2017-11-10 01:19:41.860896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.861790"], ["updated_at", "2017-11-10 01:19:41.861790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.869824"], ["updated_at", "2017-11-10 01:19:41.869824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.874525"], ["updated_at", "2017-11-10 01:19:41.874525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.876768"], ["updated_at", "2017-11-10 01:19:41.876768"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.878992"], ["updated_at", "2017-11-10 01:19:41.878992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.882477"], ["updated_at", "2017-11-10 01:19:41.882477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.886695"], ["updated_at", "2017-11-10 01:19:41.886695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.887380"], ["updated_at", "2017-11-10 01:19:41.887380"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.889449"], ["updated_at", "2017-11-10 01:19:41.889449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.890328"], ["updated_at", "2017-11-10 01:19:41.890328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.892916"], ["updated_at", "2017-11-10 01:19:41.892916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.896977"], ["updated_at", "2017-11-10 01:19:41.896977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.901502"], ["updated_at", "2017-11-10 01:19:41.901502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.907041"], ["updated_at", "2017-11-10 01:19:41.907041"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.909421"], ["updated_at", "2017-11-10 01:19:41.909421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.910256"], ["updated_at", "2017-11-10 01:19:41.910256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.912156"], ["updated_at", "2017-11-10 01:19:41.912156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.915319"], ["updated_at", "2017-11-10 01:19:41.915319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.916032"], ["updated_at", "2017-11-10 01:19:41.916032"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:19:41.920260"], ["updated_at", "2017-11-10 01:19:41.920260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.924229"], ["updated_at", "2017-11-10 01:19:41.924229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.925358"], ["updated_at", "2017-11-10 01:19:41.925358"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.926554"], ["updated_at", "2017-11-10 01:19:41.926554"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:41.929523"], ["updated_at", "2017-11-10 01:19:41.929523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.544864"], ["updated_at", "2017-11-10 01:19:47.544864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.576309"], ["updated_at", "2017-11-10 01:19:47.576309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.579514"], ["updated_at", "2017-11-10 01:19:47.579514"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.603337"], ["updated_at", "2017-11-10 01:19:47.603337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:19:47.619994"], ["updated_at", "2017-11-10 01:19:47.619994"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:19:47.632589"], ["updated_at", "2017-11-10 01:19:47.632589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:19:47.633577"], ["updated_at", "2017-11-10 01:19:47.633577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.2ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.843887"], ["updated_at", "2017-11-10 01:19:47.843887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.850707"], ["updated_at", "2017-11-10 01:19:47.850707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.857085"], ["updated_at", "2017-11-10 01:19:47.857085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.859962"], ["updated_at", "2017-11-10 01:19:47.859962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:19:47.864057"], ["updated_at", "2017-11-10 01:19:47.864057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:19:47.865000"], ["updated_at", "2017-11-10 01:19:47.865000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.865850"], ["updated_at", "2017-11-10 01:19:47.865850"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.874889"], ["updated_at", "2017-11-10 01:19:47.874889"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:19:47.881078"], ["updated_at", "2017-11-10 01:19:47.881078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:19:47.883970"], ["updated_at", "2017-11-10 01:19:47.883970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.892679"], ["updated_at", "2017-11-10 01:19:47.892679"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.893856"], ["updated_at", "2017-11-10 01:19:47.893856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.896398"], ["updated_at", "2017-11-10 01:19:47.896398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.913592"], ["updated_at", "2017-11-10 01:19:47.913592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.914542"], ["updated_at", "2017-11-10 01:19:47.914542"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:19:47.916382"], ["updated_at", "2017-11-10 01:19:47.916382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:19:47.917183"], ["updated_at", "2017-11-10 01:19:47.917183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:19:47.918814"], ["updated_at", "2017-11-10 01:19:47.918814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:19:47.919619"], ["updated_at", "2017-11-10 01:19:47.919619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.923329"], ["updated_at", "2017-11-10 01:19:47.923329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.924204"], ["updated_at", "2017-11-10 01:19:47.924204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.926968"], ["updated_at", "2017-11-10 01:19:47.926968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.930529"], ["updated_at", "2017-11-10 01:19:47.930529"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.932443"], ["updated_at", "2017-11-10 01:19:47.932443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.933209"], ["updated_at", "2017-11-10 01:19:47.933209"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.937684"], ["updated_at", "2017-11-10 01:19:47.937684"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.938513"], ["updated_at", "2017-11-10 01:19:47.938513"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.944668"], ["updated_at", "2017-11-10 01:19:47.944668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.947108"], ["updated_at", "2017-11-10 01:19:47.947108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.950335"], ["updated_at", "2017-11-10 01:19:47.950335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.951090"], ["updated_at", "2017-11-10 01:19:47.951090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.960821"], ["updated_at", "2017-11-10 01:19:47.960821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.961873"], ["updated_at", "2017-11-10 01:19:47.961873"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.965356"], ["updated_at", "2017-11-10 01:19:47.965356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.971344"], ["updated_at", "2017-11-10 01:19:47.971344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.977984"], ["updated_at", "2017-11-10 01:19:47.977984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.978888"], ["updated_at", "2017-11-10 01:19:47.978888"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:19:47.981485"], ["updated_at", "2017-11-10 01:19:47.981485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:19:47.982333"], ["updated_at", "2017-11-10 01:19:47.982333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:19:47.984009"], ["updated_at", "2017-11-10 01:19:47.984009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:19:47.984773"], ["updated_at", "2017-11-10 01:19:47.984773"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.992707"], ["updated_at", "2017-11-10 01:19:47.992707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:47.998072"], ["updated_at", "2017-11-10 01:19:47.998072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.000362"], ["updated_at", "2017-11-10 01:19:48.000362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.003666"], ["updated_at", "2017-11-10 01:19:48.003666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.004506"], ["updated_at", "2017-11-10 01:19:48.004506"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.006907"], ["updated_at", "2017-11-10 01:19:48.006907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.007847"], ["updated_at", "2017-11-10 01:19:48.007847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.016618"], ["updated_at", "2017-11-10 01:19:48.016618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:19:48.017545"], ["updated_at", "2017-11-10 01:19:48.017545"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.032752"], ["updated_at", "2017-11-10 01:19:48.032752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.037224"], ["updated_at", "2017-11-10 01:19:48.037224"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.038174"], ["updated_at", "2017-11-10 01:19:48.038174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.047091"], ["updated_at", "2017-11-10 01:19:48.047091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:19:48.054827"], ["updated_at", "2017-11-10 01:19:48.054827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.064915"], ["updated_at", "2017-11-10 01:19:48.064915"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.065917"], ["updated_at", "2017-11-10 01:19:48.065917"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.067882"], ["updated_at", "2017-11-10 01:19:48.067882"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.068669"], ["updated_at", "2017-11-10 01:19:48.068669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.074134"], ["updated_at", "2017-11-10 01:19:48.074134"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.075338"], ["updated_at", "2017-11-10 01:19:48.075338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (3.7ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:19:48.093317"], ["updated_at", "2017-11-10 01:19:48.093317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.097475"], ["updated_at", "2017-11-10 01:19:48.097475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.102217"], ["updated_at", "2017-11-10 01:19:48.102217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.107266"], ["updated_at", "2017-11-10 01:19:48.107266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.108087"], ["updated_at", "2017-11-10 01:19:48.108087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.108936"], ["updated_at", "2017-11-10 01:19:48.108936"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.111815"], ["updated_at", "2017-11-10 01:19:48.111815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.112804"], ["updated_at", "2017-11-10 01:19:48.112804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.113560"], ["updated_at", "2017-11-10 01:19:48.113560"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.116144"], ["updated_at", "2017-11-10 01:19:48.116144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.118566"], ["updated_at", "2017-11-10 01:19:48.118566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:19:48.120474"], ["updated_at", "2017-11-10 01:19:48.120474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:19:48.124170"], ["updated_at", "2017-11-10 01:19:48.124170"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 01:19:48.125765"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:19:48.127275"], ["updated_at", "2017-11-10 01:19:48.127275"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:19:48.128270"], ["updated_at", "2017-11-10 01:19:48.128270"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:41.998466"], ["updated_at", "2017-11-10 01:22:41.998466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.006102"], ["updated_at", "2017-11-10 01:22:42.006102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.009051"], ["updated_at", "2017-11-10 01:22:42.009051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:22:42.032977"], ["updated_at", "2017-11-10 01:22:42.032977"]]  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.041386"], ["updated_at", "2017-11-10 01:22:42.041386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:22:42.049097"], ["updated_at", "2017-11-10 01:22:42.049097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:22:42.050115"], ["updated_at", "2017-11-10 01:22:42.050115"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.085564"], ["updated_at", "2017-11-10 01:22:42.085564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.086604"], ["updated_at", "2017-11-10 01:22:42.086604"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.109188"], ["updated_at", "2017-11-10 01:22:42.109188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.110095"], ["updated_at", "2017-11-10 01:22:42.110095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.112233"], ["updated_at", "2017-11-10 01:22:42.112233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.115277"], ["updated_at", "2017-11-10 01:22:42.115277"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.117377"], ["updated_at", "2017-11-10 01:22:42.117377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.118712"], ["updated_at", "2017-11-10 01:22:42.118712"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.119966"], ["updated_at", "2017-11-10 01:22:42.119966"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.122964"], ["updated_at", "2017-11-10 01:22:42.122964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.127350"], ["updated_at", "2017-11-10 01:22:42.127350"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.133391"], ["updated_at", "2017-11-10 01:22:42.133391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.140865"], ["updated_at", "2017-11-10 01:22:42.140865"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.141681"], ["updated_at", "2017-11-10 01:22:42.141681"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:22:42.148062"], ["updated_at", "2017-11-10 01:22:42.148062"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.164578"], ["updated_at", "2017-11-10 01:22:42.164578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.165688"], ["updated_at", "2017-11-10 01:22:42.165688"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.168389"], ["updated_at", "2017-11-10 01:22:42.168389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.169353"], ["updated_at", "2017-11-10 01:22:42.169353"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:22:42.171860"], ["updated_at", "2017-11-10 01:22:42.171860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:22:42.172673"], ["updated_at", "2017-11-10 01:22:42.172673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.173437"], ["updated_at", "2017-11-10 01:22:42.173437"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.175160"], ["updated_at", "2017-11-10 01:22:42.175160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.175952"], ["updated_at", "2017-11-10 01:22:42.175952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.181751"], ["updated_at", "2017-11-10 01:22:42.181751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:22:42.182751"], ["updated_at", "2017-11-10 01:22:42.182751"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.185624"], ["updated_at", "2017-11-10 01:22:42.185624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.188380"], ["updated_at", "2017-11-10 01:22:42.188380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.191869"], ["updated_at", "2017-11-10 01:22:42.191869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.194031"], ["updated_at", "2017-11-10 01:22:42.194031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:22:42.198062"], ["updated_at", "2017-11-10 01:22:42.198062"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:22:42.198945"], ["updated_at", "2017-11-10 01:22:42.198945"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:22:42.200995"], ["updated_at", "2017-11-10 01:22:42.200995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:22:42.202292"], ["updated_at", "2017-11-10 01:22:42.202292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.215368"], ["updated_at", "2017-11-10 01:22:42.215368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:22:42.221699"], ["updated_at", "2017-11-10 01:22:42.221699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:22:42.222944"], ["updated_at", "2017-11-10 01:22:42.222944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:22:42.224719"], ["updated_at", "2017-11-10 01:22:42.224719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:22:42.225611"], ["updated_at", "2017-11-10 01:22:42.225611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.229519"], ["updated_at", "2017-11-10 01:22:42.229519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.230511"], ["updated_at", "2017-11-10 01:22:42.230511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.239503"], ["updated_at", "2017-11-10 01:22:42.239503"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:22:42.245141"], ["updated_at", "2017-11-10 01:22:42.245141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 01:22:42.246633"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:22:42.247642"], ["updated_at", "2017-11-10 01:22:42.247642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:22:42.248530"], ["updated_at", "2017-11-10 01:22:42.248530"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.253045"], ["updated_at", "2017-11-10 01:22:42.253045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.257764"], ["updated_at", "2017-11-10 01:22:42.257764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.265003"], ["updated_at", "2017-11-10 01:22:42.265003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:22:42.273902"], ["updated_at", "2017-11-10 01:22:42.273902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:22:42.276709"], ["updated_at", "2017-11-10 01:22:42.276709"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:22:42.291362"], ["updated_at", "2017-11-10 01:22:42.291362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.296234"], ["updated_at", "2017-11-10 01:22:42.296234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.297251"], ["updated_at", "2017-11-10 01:22:42.297251"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.309748"], ["updated_at", "2017-11-10 01:22:42.309748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.310706"], ["updated_at", "2017-11-10 01:22:42.310706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.316947"], ["updated_at", "2017-11-10 01:22:42.316947"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.321091"], ["updated_at", "2017-11-10 01:22:42.321091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.321976"], ["updated_at", "2017-11-10 01:22:42.321976"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.322993"], ["updated_at", "2017-11-10 01:22:42.322993"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 3)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 3)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.325525"], ["updated_at", "2017-11-10 01:22:42.325525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.335371"], ["updated_at", "2017-11-10 01:22:42.335371"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.339587"], ["updated_at", "2017-11-10 01:22:42.339587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.344725"], ["updated_at", "2017-11-10 01:22:42.344725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.345738"], ["updated_at", "2017-11-10 01:22:42.345738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.347716"], ["updated_at", "2017-11-10 01:22:42.347716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.351144"], ["updated_at", "2017-11-10 01:22:42.351144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.351958"], ["updated_at", "2017-11-10 01:22:42.351958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.360690"], ["updated_at", "2017-11-10 01:22:42.360690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.361769"], ["updated_at", "2017-11-10 01:22:42.361769"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.363931"], ["updated_at", "2017-11-10 01:22:42.363931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.364664"], ["updated_at", "2017-11-10 01:22:42.364664"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.366994"], ["updated_at", "2017-11-10 01:22:42.366994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.369296"], ["updated_at", "2017-11-10 01:22:42.369296"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.371461"], ["updated_at", "2017-11-10 01:22:42.371461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.374513"], ["updated_at", "2017-11-10 01:22:42.374513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:22:42.375224"], ["updated_at", "2017-11-10 01:22:42.375224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.443846"], ["updated_at", "2017-11-10 01:24:23.443846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.448550"], ["updated_at", "2017-11-10 01:24:23.448550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.452959"], ["updated_at", "2017-11-10 01:24:23.452959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:24:23.454018"], ["updated_at", "2017-11-10 01:24:23.454018"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:24:23.457839"], ["updated_at", "2017-11-10 01:24:23.457839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:24:23.458733"], ["updated_at", "2017-11-10 01:24:23.458733"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:24:23.461102"], ["updated_at", "2017-11-10 01:24:23.461102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:24:23.462073"], ["updated_at", "2017-11-10 01:24:23.462073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.473232"], ["updated_at", "2017-11-10 01:24:23.473232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.475781"], ["updated_at", "2017-11-10 01:24:23.475781"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.478046"], ["updated_at", "2017-11-10 01:24:23.478046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.481702"], ["updated_at", "2017-11-10 01:24:23.481702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.482620"], ["updated_at", "2017-11-10 01:24:23.482620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:24:23.503791"], ["updated_at", "2017-11-10 01:24:23.503791"]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.509434"], ["updated_at", "2017-11-10 01:24:23.509434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.510438"], ["updated_at", "2017-11-10 01:24:23.510438"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.513281"], ["updated_at", "2017-11-10 01:24:23.513281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.514389"], ["updated_at", "2017-11-10 01:24:23.514389"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.520113"], ["updated_at", "2017-11-10 01:24:23.520113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.521070"], ["updated_at", "2017-11-10 01:24:23.521070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.521848"], ["updated_at", "2017-11-10 01:24:23.521848"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.524649"], ["updated_at", "2017-11-10 01:24:23.524649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.525499"], ["updated_at", "2017-11-10 01:24:23.525499"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.544859"], ["updated_at", "2017-11-10 01:24:23.544859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.545699"], ["updated_at", "2017-11-10 01:24:23.545699"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.547746"], ["updated_at", "2017-11-10 01:24:23.547746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.552750"], ["updated_at", "2017-11-10 01:24:23.552750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.553644"], ["updated_at", "2017-11-10 01:24:23.553644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.554459"], ["updated_at", "2017-11-10 01:24:23.554459"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.559974"], ["updated_at", "2017-11-10 01:24:23.559974"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.561985"], ["updated_at", "2017-11-10 01:24:23.561985"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.564883"], ["updated_at", "2017-11-10 01:24:23.564883"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.569114"], ["updated_at", "2017-11-10 01:24:23.569114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.569910"], ["updated_at", "2017-11-10 01:24:23.569910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:24:23.574196"], ["updated_at", "2017-11-10 01:24:23.574196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:24:23.575078"], ["updated_at", "2017-11-10 01:24:23.575078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:24:23.576643"], ["updated_at", "2017-11-10 01:24:23.576643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:24:23.577501"], ["updated_at", "2017-11-10 01:24:23.577501"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.581356"], ["updated_at", "2017-11-10 01:24:23.581356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.582243"], ["updated_at", "2017-11-10 01:24:23.582243"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.584646"], ["updated_at", "2017-11-10 01:24:23.584646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.589181"], ["updated_at", "2017-11-10 01:24:23.589181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.596057"], ["updated_at", "2017-11-10 01:24:23.596057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:24:23.605760"], ["updated_at", "2017-11-10 01:24:23.605760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.616279"], ["updated_at", "2017-11-10 01:24:23.616279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.621043"], ["updated_at", "2017-11-10 01:24:23.621043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.621827"], ["updated_at", "2017-11-10 01:24:23.621827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.628617"], ["updated_at", "2017-11-10 01:24:23.628617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.632435"], ["updated_at", "2017-11-10 01:24:23.632435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.633298"], ["updated_at", "2017-11-10 01:24:23.633298"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:24:23.636575"], ["updated_at", "2017-11-10 01:24:23.636575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 01:24:23.637802"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:24:23.639167"], ["updated_at", "2017-11-10 01:24:23.639167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:24:23.640077"], ["updated_at", "2017-11-10 01:24:23.640077"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.644058"], ["updated_at", "2017-11-10 01:24:23.644058"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.645049"], ["updated_at", "2017-11-10 01:24:23.645049"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.647560"], ["updated_at", "2017-11-10 01:24:23.647560"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.652045"], ["updated_at", "2017-11-10 01:24:23.652045"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 3)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:24:23.659788"], ["updated_at", "2017-11-10 01:24:23.659788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:24:23.660709"], ["updated_at", "2017-11-10 01:24:23.660709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.661551"], ["updated_at", "2017-11-10 01:24:23.661551"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.663729"], ["updated_at", "2017-11-10 01:24:23.663729"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.664569"], ["updated_at", "2017-11-10 01:24:23.664569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.667505"], ["updated_at", "2017-11-10 01:24:23.667505"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.670952"], ["updated_at", "2017-11-10 01:24:23.670952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.677640"], ["updated_at", "2017-11-10 01:24:23.677640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.678484"], ["updated_at", "2017-11-10 01:24:23.678484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.688085"], ["updated_at", "2017-11-10 01:24:23.688085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.688968"], ["updated_at", "2017-11-10 01:24:23.688968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.691414"], ["updated_at", "2017-11-10 01:24:23.691414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.695011"], ["updated_at", "2017-11-10 01:24:23.695011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.695867"], ["updated_at", "2017-11-10 01:24:23.695867"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.701866"], ["updated_at", "2017-11-10 01:24:23.701866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.703651"], ["updated_at", "2017-11-10 01:24:23.703651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:24:23.707041"], ["updated_at", "2017-11-10 01:24:23.707041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:24:23.709247"], ["updated_at", "2017-11-10 01:24:23.709247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.718004"], ["updated_at", "2017-11-10 01:24:23.718004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:24:23.944864"], ["updated_at", "2017-11-10 01:24:23.944864"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:24:23.946157"], ["updated_at", "2017-11-10 01:24:23.946157"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.968114"], ["updated_at", "2017-11-10 01:24:23.968114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.992190"], ["updated_at", "2017-11-10 01:24:23.992190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.997113"], ["updated_at", "2017-11-10 01:24:23.997113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:23.999999"], ["updated_at", "2017-11-10 01:24:23.999999"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:24:24.008702"], ["updated_at", "2017-11-10 01:24:24.008702"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.277763"], ["updated_at", "2017-11-10 01:24:28.277763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.278766"], ["updated_at", "2017-11-10 01:24:28.278766"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.281175"], ["updated_at", "2017-11-10 01:24:28.281175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.281974"], ["updated_at", "2017-11-10 01:24:28.281974"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.283718"], ["updated_at", "2017-11-10 01:24:28.283718"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.295998"], ["updated_at", "2017-11-10 01:24:28.295998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.308662"], ["updated_at", "2017-11-10 01:24:28.308662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.309679"], ["updated_at", "2017-11-10 01:24:28.309679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.310461"], ["updated_at", "2017-11-10 01:24:28.310461"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:24:28.317177"], ["updated_at", "2017-11-10 01:24:28.317177"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:24:28.343739"], ["updated_at", "2017-11-10 01:24:28.343739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:24:28.346081"], ["updated_at", "2017-11-10 01:24:28.346081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.355639"], ["updated_at", "2017-11-10 01:24:28.355639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.356680"], ["updated_at", "2017-11-10 01:24:28.356680"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:24:28.359421"], ["updated_at", "2017-11-10 01:24:28.359421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:24:28.360283"], ["updated_at", "2017-11-10 01:24:28.360283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:24:28.362236"], ["updated_at", "2017-11-10 01:24:28.362236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:24:28.363169"], ["updated_at", "2017-11-10 01:24:28.363169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.366894"], ["updated_at", "2017-11-10 01:24:28.366894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.367760"], ["updated_at", "2017-11-10 01:24:28.367760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.378390"], ["updated_at", "2017-11-10 01:24:28.378390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.386404"], ["updated_at", "2017-11-10 01:24:28.386404"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.394944"], ["updated_at", "2017-11-10 01:24:28.394944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.395978"], ["updated_at", "2017-11-10 01:24:28.395978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.396900"], ["updated_at", "2017-11-10 01:24:28.396900"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.399893"], ["updated_at", "2017-11-10 01:24:28.399893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.406808"], ["updated_at", "2017-11-10 01:24:28.406808"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.412283"], ["updated_at", "2017-11-10 01:24:28.412283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.413117"], ["updated_at", "2017-11-10 01:24:28.413117"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.415773"], ["updated_at", "2017-11-10 01:24:28.415773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.418243"], ["updated_at", "2017-11-10 01:24:28.418243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.422117"], ["updated_at", "2017-11-10 01:24:28.422117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:24:28.426257"], ["updated_at", "2017-11-10 01:24:28.426257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:24:28.427366"], ["updated_at", "2017-11-10 01:24:28.427366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.428254"], ["updated_at", "2017-11-10 01:24:28.428254"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:24:28.431230"], ["updated_at", "2017-11-10 01:24:28.431230"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 01:24:28.433436"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:24:28.435840"], ["updated_at", "2017-11-10 01:24:28.435840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:24:28.436937"], ["updated_at", "2017-11-10 01:24:28.436937"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.441676"], ["updated_at", "2017-11-10 01:24:28.441676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.442614"], ["updated_at", "2017-11-10 01:24:28.442614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:24:28.456847"], ["updated_at", "2017-11-10 01:24:28.456847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.477473"], ["updated_at", "2017-11-10 01:24:28.477473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.478214"], ["updated_at", "2017-11-10 01:24:28.478214"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.480099"], ["updated_at", "2017-11-10 01:24:28.480099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.480972"], ["updated_at", "2017-11-10 01:24:28.480972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.486703"], ["updated_at", "2017-11-10 01:24:28.486703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.487569"], ["updated_at", "2017-11-10 01:24:28.487569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.489638"], ["updated_at", "2017-11-10 01:24:28.489638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.494127"], ["updated_at", "2017-11-10 01:24:28.494127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.496631"], ["updated_at", "2017-11-10 01:24:28.496631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.500483"], ["updated_at", "2017-11-10 01:24:28.500483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.501405"], ["updated_at", "2017-11-10 01:24:28.501405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.513231"], ["updated_at", "2017-11-10 01:24:28.513231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.522558"], ["updated_at", "2017-11-10 01:24:28.522558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.530613"], ["updated_at", "2017-11-10 01:24:28.530613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.536876"], ["updated_at", "2017-11-10 01:24:28.536876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.539193"], ["updated_at", "2017-11-10 01:24:28.539193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.541390"], ["updated_at", "2017-11-10 01:24:28.541390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:24:28.545256"], ["updated_at", "2017-11-10 01:24:28.545256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:24:28.546076"], ["updated_at", "2017-11-10 01:24:28.546076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:24:28.547834"], ["updated_at", "2017-11-10 01:24:28.547834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:24:28.548774"], ["updated_at", "2017-11-10 01:24:28.548774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.557061"], ["updated_at", "2017-11-10 01:24:28.557061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.571478"], ["updated_at", "2017-11-10 01:24:28.571478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:24:28.572489"], ["updated_at", "2017-11-10 01:24:28.572489"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.574882"], ["updated_at", "2017-11-10 01:24:28.574882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.577112"], ["updated_at", "2017-11-10 01:24:28.577112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.594594"], ["updated_at", "2017-11-10 01:24:28.594594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.595566"], ["updated_at", "2017-11-10 01:24:28.595566"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.598124"], ["updated_at", "2017-11-10 01:24:28.598124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.599133"], ["updated_at", "2017-11-10 01:24:28.599133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.601736"], ["updated_at", "2017-11-10 01:24:28.601736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.605500"], ["updated_at", "2017-11-10 01:24:28.605500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.606254"], ["updated_at", "2017-11-10 01:24:28.606254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.610939"], ["updated_at", "2017-11-10 01:24:28.610939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.611643"], ["updated_at", "2017-11-10 01:24:28.611643"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:24:28.654323"], ["updated_at", "2017-11-10 01:24:28.654323"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:24:28.681152"], ["updated_at", "2017-11-10 01:24:28.681152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:24:28.682258"], ["updated_at", "2017-11-10 01:24:28.682258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.701031"], ["updated_at", "2017-11-10 01:24:28.701031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.712013"], ["updated_at", "2017-11-10 01:24:28.712013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.717055"], ["updated_at", "2017-11-10 01:24:28.717055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:24:28.720058"], ["updated_at", "2017-11-10 01:24:28.720058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.8ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.097561"], ["updated_at", "2017-11-10 01:40:35.097561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.098864"], ["updated_at", "2017-11-10 01:40:35.098864"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:40:35.104385"], ["updated_at", "2017-11-10 01:40:35.104385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:40:35.105403"], ["updated_at", "2017-11-10 01:40:35.105403"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:40:35.122861"], ["updated_at", "2017-11-10 01:40:35.122861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:40:35.123736"], ["updated_at", "2017-11-10 01:40:35.123736"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.136611"], ["updated_at", "2017-11-10 01:40:35.136611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.150907"], ["updated_at", "2017-11-10 01:40:35.150907"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.153612"], ["updated_at", "2017-11-10 01:40:35.153612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.154551"], ["updated_at", "2017-11-10 01:40:35.154551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.155461"], ["updated_at", "2017-11-10 01:40:35.155461"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.158285"], ["updated_at", "2017-11-10 01:40:35.158285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.159026"], ["updated_at", "2017-11-10 01:40:35.159026"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.161418"], ["updated_at", "2017-11-10 01:40:35.161418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.163847"], ["updated_at", "2017-11-10 01:40:35.163847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.168581"], ["updated_at", "2017-11-10 01:40:35.168581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.178271"], ["updated_at", "2017-11-10 01:40:35.178271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.186771"], ["updated_at", "2017-11-10 01:40:35.186771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.187877"], ["updated_at", "2017-11-10 01:40:35.187877"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.191212"], ["updated_at", "2017-11-10 01:40:35.191212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.215131"], ["updated_at", "2017-11-10 01:40:35.215131"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:40:35.216397"], ["updated_at", "2017-11-10 01:40:35.216397"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:40:35.223101"], ["updated_at", "2017-11-10 01:40:35.223101"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.228336"], ["updated_at", "2017-11-10 01:40:35.228336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.232784"], ["updated_at", "2017-11-10 01:40:35.232784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.234317"], ["updated_at", "2017-11-10 01:40:35.234317"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 2) OR (1=1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.237602"], ["updated_at", "2017-11-10 01:40:35.237602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.238511"], ["updated_at", "2017-11-10 01:40:35.238511"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 4)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 4)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.241171"], ["updated_at", "2017-11-10 01:40:35.241171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.241963"], ["updated_at", "2017-11-10 01:40:35.241963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 2) OR ("test_attrs_test_models_2"."id" = 2))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:40:35.252277"], ["updated_at", "2017-11-10 01:40:35.252277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 01:40:35.255171"], ["id", 3]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:40:35.257115"], ["updated_at", "2017-11-10 01:40:35.257115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:40:35.258055"], ["updated_at", "2017-11-10 01:40:35.258055"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.262545"], ["updated_at", "2017-11-10 01:40:35.262545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.265497"], ["updated_at", "2017-11-10 01:40:35.265497"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.269025"], ["updated_at", "2017-11-10 01:40:35.269025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.272808"], ["updated_at", "2017-11-10 01:40:35.272808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.273674"], ["updated_at", "2017-11-10 01:40:35.273674"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 5))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:40:35.280460"], ["updated_at", "2017-11-10 01:40:35.280460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:40:35.281365"], ["updated_at", "2017-11-10 01:40:35.281365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 6], ["test_another_model_id", 7]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:40:35.283736"], ["updated_at", "2017-11-10 01:40:35.283736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:40:35.285102"], ["updated_at", "2017-11-10 01:40:35.285102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 8], ["test_another_model_id", 9]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 8]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 8], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 8)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.294280"], ["updated_at", "2017-11-10 01:40:35.294280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.298924"], ["updated_at", "2017-11-10 01:40:35.298924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.300367"], ["updated_at", "2017-11-10 01:40:35.300367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.303806"], ["updated_at", "2017-11-10 01:40:35.303806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:40:35.307692"], ["updated_at", "2017-11-10 01:40:35.307692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:40:35.308659"], ["updated_at", "2017-11-10 01:40:35.308659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.309611"], ["updated_at", "2017-11-10 01:40:35.309611"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.311751"], ["updated_at", "2017-11-10 01:40:35.311751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.312637"], ["updated_at", "2017-11-10 01:40:35.312637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.323855"], ["updated_at", "2017-11-10 01:40:35.323855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.330117"], ["updated_at", "2017-11-10 01:40:35.330117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.333612"], ["updated_at", "2017-11-10 01:40:35.333612"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.339053"], ["updated_at", "2017-11-10 01:40:35.339053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.339998"], ["updated_at", "2017-11-10 01:40:35.339998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.342305"], ["updated_at", "2017-11-10 01:40:35.342305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.346110"], ["updated_at", "2017-11-10 01:40:35.346110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.347003"], ["updated_at", "2017-11-10 01:40:35.347003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.360487"], ["updated_at", "2017-11-10 01:40:35.360487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.361501"], ["updated_at", "2017-11-10 01:40:35.361501"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.371868"], ["updated_at", "2017-11-10 01:40:35.371868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.373027"], ["updated_at", "2017-11-10 01:40:35.373027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.378518"], ["updated_at", "2017-11-10 01:40:35.378518"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.385808"], ["updated_at", "2017-11-10 01:40:35.385808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.386831"], ["updated_at", "2017-11-10 01:40:35.386831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.387661"], ["updated_at", "2017-11-10 01:40:35.387661"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.390093"], ["updated_at", "2017-11-10 01:40:35.390093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.393792"], ["updated_at", "2017-11-10 01:40:35.393792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.396060"], ["updated_at", "2017-11-10 01:40:35.396060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:40:35.414664"], ["updated_at", "2017-11-10 01:40:35.414664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:40:35.417425"], ["updated_at", "2017-11-10 01:40:35.417425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:40:35.429682"], ["updated_at", "2017-11-10 01:40:35.429682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.439493"], ["updated_at", "2017-11-10 01:40:35.439493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.444662"], ["updated_at", "2017-11-10 01:40:35.444662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.445370"], ["updated_at", "2017-11-10 01:40:35.445370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:40:35.489777"], ["updated_at", "2017-11-10 01:40:35.489777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:40:35.490679"], ["updated_at", "2017-11-10 01:40:35.490679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:40:35.508840"], ["updated_at", "2017-11-10 01:40:35.508840"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.511636"], ["updated_at", "2017-11-10 01:40:35.511636"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.556382"], ["updated_at", "2017-11-10 01:40:35.556382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.561695"], ["updated_at", "2017-11-10 01:40:35.561695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:40:35.564942"], ["updated_at", "2017-11-10 01:40:35.564942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.485016"], ["updated_at", "2017-11-10 01:42:40.485016"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.509074"], ["updated_at", "2017-11-10 01:42:40.509074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.509835"], ["updated_at", "2017-11-10 01:42:40.509835"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.511872"], ["updated_at", "2017-11-10 01:42:40.511872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.512498"], ["updated_at", "2017-11-10 01:42:40.512498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.513098"], ["updated_at", "2017-11-10 01:42:40.513098"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.515347"], ["updated_at", "2017-11-10 01:42:40.515347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.516922"], ["updated_at", "2017-11-10 01:42:40.516922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.520688"], ["updated_at", "2017-11-10 01:42:40.520688"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.523577"], ["updated_at", "2017-11-10 01:42:40.523577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.525418"], ["updated_at", "2017-11-10 01:42:40.525418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.528334"], ["updated_at", "2017-11-10 01:42:40.528334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.532210"], ["updated_at", "2017-11-10 01:42:40.532210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.534080"], ["updated_at", "2017-11-10 01:42:40.534080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.537697"], ["updated_at", "2017-11-10 01:42:40.537697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.542359"], ["updated_at", "2017-11-10 01:42:40.542359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.543169"], ["updated_at", "2017-11-10 01:42:40.543169"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.545610"], ["updated_at", "2017-11-10 01:42:40.545610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.546312"], ["updated_at", "2017-11-10 01:42:40.546312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.554828"], ["updated_at", "2017-11-10 01:42:40.554828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.555738"], ["updated_at", "2017-11-10 01:42:40.555738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.557929"], ["updated_at", "2017-11-10 01:42:40.557929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:42:40.561728"], ["updated_at", "2017-11-10 01:42:40.561728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:42:40.562614"], ["updated_at", "2017-11-10 01:42:40.562614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id", "test_model_id") VALUES (?, ?) [["test_another_model_id", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:42:40.564589"], ["updated_at", "2017-11-10 01:42:40.564589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:42:40.565307"], ["updated_at", "2017-11-10 01:42:40.565307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id", "test_model_id") VALUES (?, ?) [["test_another_model_id", 4], ["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "test_attr_through_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:42:40.576282"], ["test_attr_through_id", 1], ["updated_at", "2017-11-10 01:42:40.576282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = 1 [["country_id", 1], ["updated_at", "2017-11-10 01:42:40.578074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "test_attr_through_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2017-11-10 01:42:40.579555"], ["test_attr_through_id", 1], ["updated_at", "2017-11-10 01:42:40.579555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "test_attr_through_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:42:40.580493"], ["test_attr_through_id", 2], ["updated_at", "2017-11-10 01:42:40.580493"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.588145"], ["updated_at", "2017-11-10 01:42:40.588145"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.589162"], ["updated_at", "2017-11-10 01:42:40.589162"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.592355"], ["updated_at", "2017-11-10 01:42:40.592355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.610341"], ["updated_at", "2017-11-10 01:42:40.610341"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.611154"], ["updated_at", "2017-11-10 01:42:40.611154"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:42:40.613665"], ["updated_at", "2017-11-10 01:42:40.613665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:42:40.615476"], ["updated_at", "2017-11-10 01:42:40.615476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.624627"], ["updated_at", "2017-11-10 01:42:40.624627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:42:40.625405"], ["updated_at", "2017-11-10 01:42:40.625405"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.628010"], ["updated_at", "2017-11-10 01:42:40.628010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.628608"], ["updated_at", "2017-11-10 01:42:40.628608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.644628"], ["updated_at", "2017-11-10 01:42:40.644628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.645423"], ["updated_at", "2017-11-10 01:42:40.645423"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.657276"], ["updated_at", "2017-11-10 01:42:40.657276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.658955"], ["updated_at", "2017-11-10 01:42:40.658955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.662238"], ["updated_at", "2017-11-10 01:42:40.662238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.662898"], ["updated_at", "2017-11-10 01:42:40.662898"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.665035"], ["updated_at", "2017-11-10 01:42:40.665035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.665703"], ["updated_at", "2017-11-10 01:42:40.665703"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.667334"], ["updated_at", "2017-11-10 01:42:40.667334"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.672675"], ["updated_at", "2017-11-10 01:42:40.672675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.673726"], ["updated_at", "2017-11-10 01:42:40.673726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.674451"], ["updated_at", "2017-11-10 01:42:40.674451"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:42:40.677363"], ["updated_at", "2017-11-10 01:42:40.677363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:42:40.678092"], ["updated_at", "2017-11-10 01:42:40.678092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.678762"], ["updated_at", "2017-11-10 01:42:40.678762"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.680587"], ["updated_at", "2017-11-10 01:42:40.680587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.685293"], ["updated_at", "2017-11-10 01:42:40.685293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.692244"], ["updated_at", "2017-11-10 01:42:40.692244"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "test_attr_through_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2017-11-10 01:42:40.700556"], ["test_attr_through_id", 1], ["updated_at", "2017-11-10 01:42:40.700556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("n_way_join_item_id", "test_attr_through_id") VALUES (?, ?) [["n_way_join_item_id", 1], ["test_attr_through_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.705155"], ["updated_at", "2017-11-10 01:42:40.705155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id", "test_model_id") VALUES (?, ?) [["test_another_model_id", 2], ["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.714610"], ["updated_at", "2017-11-10 01:42:40.714610"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.716485"], ["updated_at", "2017-11-10 01:42:40.716485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.717247"], ["updated_at", "2017-11-10 01:42:40.717247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.722036"], ["updated_at", "2017-11-10 01:42:40.722036"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.722925"], ["updated_at", "2017-11-10 01:42:40.722925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.725020"], ["updated_at", "2017-11-10 01:42:40.725020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:42:40.729430"], ["updated_at", "2017-11-10 01:42:40.729430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:42:40.739305"], ["updated_at", "2017-11-10 01:42:40.739305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:42:40.740287"], ["updated_at", "2017-11-10 01:42:40.740287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id", "test_model_id") VALUES (?, ?) [["test_another_model_id", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:42:40.741994"], ["updated_at", "2017-11-10 01:42:40.741994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:42:40.742772"], ["updated_at", "2017-11-10 01:42:40.742772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_another_model_id", "test_model_id") VALUES (?, ?) [["test_another_model_id", 4], ["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.746313"], ["updated_at", "2017-11-10 01:42:40.746313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.747059"], ["updated_at", "2017-11-10 01:42:40.747059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = 1 WHERE (("test_attrs"."id" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = 1 WHERE (("test_attrs"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.756037"], ["updated_at", "2017-11-10 01:42:40.756037"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.761030"], ["updated_at", "2017-11-10 01:42:40.761030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:40.761773"], ["updated_at", "2017-11-10 01:42:40.761773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id", "test_model_id") VALUES (?, ?) [["test_another_model_id", 2], ["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = 2 [["test_model_security_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = 3 [["attr_2", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = 2 LIMIT 1 [["test_model_security_model_id", 3]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:41.034529"], ["updated_at", "2017-11-10 01:42:41.034529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:41.038879"], ["updated_at", "2017-11-10 01:42:41.038879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:41.040882"], ["updated_at", "2017-11-10 01:42:41.040882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:42:41.048959"], ["updated_at", "2017-11-10 01:42:41.048959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:42:41.052650"], ["updated_at", "2017-11-10 01:42:41.052650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:42:41.053350"], ["updated_at", "2017-11-10 01:42:41.053350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = 7 [["attr_2", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = 1 [["test_model_security_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = 7 [["attr", 11]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:42:41.075186"], ["updated_at", "2017-11-10 01:42:41.075186"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:43:38.727098"], ["updated_at", "2017-11-10 01:43:38.727098"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:43:38.731504"], ["updated_at", "2017-11-10 01:43:38.731504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:43:38.732329"], ["updated_at", "2017-11-10 01:43:38.732329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.764733"], ["updated_at", "2017-11-10 01:43:38.764733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.772688"], ["updated_at", "2017-11-10 01:43:38.772688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.775408"], ["updated_at", "2017-11-10 01:43:38.775408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.786896"], ["updated_at", "2017-11-10 01:43:38.786896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:43:38.845172"], ["updated_at", "2017-11-10 01:43:38.845172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:43:38.856346"], ["updated_at", "2017-11-10 01:43:38.856346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:43:38.860485"], ["updated_at", "2017-11-10 01:43:38.860485"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.861414"], ["updated_at", "2017-11-10 01:43:38.861414"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.863305"], ["updated_at", "2017-11-10 01:43:38.863305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.864032"], ["updated_at", "2017-11-10 01:43:38.864032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.872628"], ["updated_at", "2017-11-10 01:43:38.872628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.873496"], ["updated_at", "2017-11-10 01:43:38.873496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.874198"], ["updated_at", "2017-11-10 01:43:38.874198"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.884162"], ["updated_at", "2017-11-10 01:43:38.884162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.886006"], ["updated_at", "2017-11-10 01:43:38.886006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:43:38.888998"], ["updated_at", "2017-11-10 01:43:38.888998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:43:38.889760"], ["updated_at", "2017-11-10 01:43:38.889760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:43:38.891902"], ["updated_at", "2017-11-10 01:43:38.891902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:43:38.892737"], ["updated_at", "2017-11-10 01:43:38.892737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.903208"], ["updated_at", "2017-11-10 01:43:38.903208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.904095"], ["updated_at", "2017-11-10 01:43:38.904095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:43:38.912897"], ["updated_at", "2017-11-10 01:43:38.912897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:43:38.914915"], ["updated_at", "2017-11-10 01:43:38.914915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.922927"], ["updated_at", "2017-11-10 01:43:38.922927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.925137"], ["updated_at", "2017-11-10 01:43:38.925137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.927005"], ["updated_at", "2017-11-10 01:43:38.927005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.930842"], ["updated_at", "2017-11-10 01:43:38.930842"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.931801"], ["updated_at", "2017-11-10 01:43:38.931801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.932667"], ["updated_at", "2017-11-10 01:43:38.932667"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.937375"], ["updated_at", "2017-11-10 01:43:38.937375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.938164"], ["updated_at", "2017-11-10 01:43:38.938164"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:43:38.940999"], ["updated_at", "2017-11-10 01:43:38.940999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 01:43:38.942259"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:43:38.943179"], ["updated_at", "2017-11-10 01:43:38.943179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:43:38.944082"], ["updated_at", "2017-11-10 01:43:38.944082"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.947679"], ["updated_at", "2017-11-10 01:43:38.947679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.948503"], ["updated_at", "2017-11-10 01:43:38.948503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.950663"], ["updated_at", "2017-11-10 01:43:38.950663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.954352"], ["updated_at", "2017-11-10 01:43:38.954352"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.955138"], ["updated_at", "2017-11-10 01:43:38.955138"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.959048"], ["updated_at", "2017-11-10 01:43:38.959048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:43:38.959927"], ["updated_at", "2017-11-10 01:43:38.959927"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.963412"], ["updated_at", "2017-11-10 01:43:38.963412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.964228"], ["updated_at", "2017-11-10 01:43:38.964228"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.965959"], ["updated_at", "2017-11-10 01:43:38.965959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.971413"], ["updated_at", "2017-11-10 01:43:38.971413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.973239"], ["updated_at", "2017-11-10 01:43:38.973239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.975991"], ["updated_at", "2017-11-10 01:43:38.975991"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:43:38.982732"], ["updated_at", "2017-11-10 01:43:38.982732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.987662"], ["updated_at", "2017-11-10 01:43:38.987662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:38.992451"], ["updated_at", "2017-11-10 01:43:38.992451"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.000602"], ["updated_at", "2017-11-10 01:43:39.000602"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.006165"], ["updated_at", "2017-11-10 01:43:39.006165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.007011"], ["updated_at", "2017-11-10 01:43:39.007011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.012473"], ["updated_at", "2017-11-10 01:43:39.012473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.013243"], ["updated_at", "2017-11-10 01:43:39.013243"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:43:39.015557"], ["updated_at", "2017-11-10 01:43:39.015557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:43:39.016380"], ["updated_at", "2017-11-10 01:43:39.016380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:43:39.018184"], ["updated_at", "2017-11-10 01:43:39.018184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:43:39.018983"], ["updated_at", "2017-11-10 01:43:39.018983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.022257"], ["updated_at", "2017-11-10 01:43:39.022257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.023030"], ["updated_at", "2017-11-10 01:43:39.023030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.027663"], ["updated_at", "2017-11-10 01:43:39.027663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.028817"], ["updated_at", "2017-11-10 01:43:39.028817"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.045061"], ["updated_at", "2017-11-10 01:43:39.045061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.049171"], ["updated_at", "2017-11-10 01:43:39.049171"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.053978"], ["updated_at", "2017-11-10 01:43:39.053978"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.059880"], ["updated_at", "2017-11-10 01:43:39.059880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.064657"], ["updated_at", "2017-11-10 01:43:39.064657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.065652"], ["updated_at", "2017-11-10 01:43:39.065652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.067833"], ["updated_at", "2017-11-10 01:43:39.067833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 01:43:39.071403"], ["updated_at", "2017-11-10 01:43:39.071403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.073510"], ["updated_at", "2017-11-10 01:43:39.073510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.077156"], ["updated_at", "2017-11-10 01:43:39.077156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.077978"], ["updated_at", "2017-11-10 01:43:39.077978"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.079779"], ["updated_at", "2017-11-10 01:43:39.079779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.080497"], ["updated_at", "2017-11-10 01:43:39.080497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.086180"], ["updated_at", "2017-11-10 01:43:39.086180"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.087783"], ["updated_at", "2017-11-10 01:43:39.087783"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.088478"], ["updated_at", "2017-11-10 01:43:39.088478"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.090809"], ["updated_at", "2017-11-10 01:43:39.090809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.092663"], ["updated_at", "2017-11-10 01:43:39.092663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:43:39.097006"], ["updated_at", "2017-11-10 01:43:39.097006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (1.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:51:51.772784"], ["updated_at", "2017-11-10 01:51:51.772784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:51:51.774142"], ["updated_at", "2017-11-10 01:51:51.774142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:51:51.822303"], ["updated_at", "2017-11-10 01:51:51.822303"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.6ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:51.854302"], ["updated_at", "2017-11-10 01:51:51.854302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:51.859493"], ["updated_at", "2017-11-10 01:51:51.859493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:51.862037"], ["updated_at", "2017-11-10 01:51:51.862037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:51.876132"], ["updated_at", "2017-11-10 01:51:51.876132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.139327"], ["updated_at", "2017-11-10 01:51:52.139327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.141455"], ["updated_at", "2017-11-10 01:51:52.141455"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:51:52.146603"], ["updated_at", "2017-11-10 01:51:52.146603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 01:51:52.148375"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:51:52.149342"], ["updated_at", "2017-11-10 01:51:52.149342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:51:52.150189"], ["updated_at", "2017-11-10 01:51:52.150189"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.153841"], ["updated_at", "2017-11-10 01:51:52.153841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.154750"], ["updated_at", "2017-11-10 01:51:52.154750"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.156754"], ["updated_at", "2017-11-10 01:51:52.156754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.163651"], ["updated_at", "2017-11-10 01:51:52.163651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.164929"], ["updated_at", "2017-11-10 01:51:52.164929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.167546"], ["updated_at", "2017-11-10 01:51:52.167546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.171224"], ["updated_at", "2017-11-10 01:51:52.171224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 01:51:52.175654"], ["updated_at", "2017-11-10 01:51:52.175654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.177590"], ["updated_at", "2017-11-10 01:51:52.177590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:51:52.183516"], ["updated_at", "2017-11-10 01:51:52.183516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:51:52.193849"], ["updated_at", "2017-11-10 01:51:52.193849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:51:52.194676"], ["updated_at", "2017-11-10 01:51:52.194676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.195387"], ["updated_at", "2017-11-10 01:51:52.195387"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.197285"], ["updated_at", "2017-11-10 01:51:52.197285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.198060"], ["updated_at", "2017-11-10 01:51:52.198060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.198756"], ["updated_at", "2017-11-10 01:51:52.198756"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:51:52.201045"], ["updated_at", "2017-11-10 01:51:52.201045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:51:52.201804"], ["updated_at", "2017-11-10 01:51:52.201804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:51:52.203429"], ["updated_at", "2017-11-10 01:51:52.203429"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:51:52.204445"], ["updated_at", "2017-11-10 01:51:52.204445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.211606"], ["updated_at", "2017-11-10 01:51:52.211606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.212668"], ["updated_at", "2017-11-10 01:51:52.212668"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.215590"], ["updated_at", "2017-11-10 01:51:52.215590"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.216515"], ["updated_at", "2017-11-10 01:51:52.216515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.221190"], ["updated_at", "2017-11-10 01:51:52.221190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.221962"], ["updated_at", "2017-11-10 01:51:52.221962"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.224116"], ["updated_at", "2017-11-10 01:51:52.224116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.228969"], ["updated_at", "2017-11-10 01:51:52.228969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.240296"], ["updated_at", "2017-11-10 01:51:52.240296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.243531"], ["updated_at", "2017-11-10 01:51:52.243531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.244298"], ["updated_at", "2017-11-10 01:51:52.244298"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.246098"], ["updated_at", "2017-11-10 01:51:52.246098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.247152"], ["updated_at", "2017-11-10 01:51:52.247152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.252146"], ["updated_at", "2017-11-10 01:51:52.252146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.252949"], ["updated_at", "2017-11-10 01:51:52.252949"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:51:52.258409"], ["updated_at", "2017-11-10 01:51:52.258409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.263483"], ["updated_at", "2017-11-10 01:51:52.263483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.270430"], ["updated_at", "2017-11-10 01:51:52.270430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.272226"], ["updated_at", "2017-11-10 01:51:52.272226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.273916"], ["updated_at", "2017-11-10 01:51:52.273916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.277061"], ["updated_at", "2017-11-10 01:51:52.277061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.277841"], ["updated_at", "2017-11-10 01:51:52.277841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:51:52.298843"], ["updated_at", "2017-11-10 01:51:52.298843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:51:52.300112"], ["updated_at", "2017-11-10 01:51:52.300112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:51:52.301794"], ["updated_at", "2017-11-10 01:51:52.301794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:51:52.302572"], ["updated_at", "2017-11-10 01:51:52.302572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.306423"], ["updated_at", "2017-11-10 01:51:52.306423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.308328"], ["updated_at", "2017-11-10 01:51:52.308328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.311406"], ["updated_at", "2017-11-10 01:51:52.311406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.317996"], ["updated_at", "2017-11-10 01:51:52.317996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.319098"], ["updated_at", "2017-11-10 01:51:52.319098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.319925"], ["updated_at", "2017-11-10 01:51:52.319925"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.322394"], ["updated_at", "2017-11-10 01:51:52.322394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.326231"], ["updated_at", "2017-11-10 01:51:52.326231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:51:52.327035"], ["updated_at", "2017-11-10 01:51:52.327035"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.329346"], ["updated_at", "2017-11-10 01:51:52.329346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.330757"], ["updated_at", "2017-11-10 01:51:52.330757"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.333542"], ["updated_at", "2017-11-10 01:51:52.333542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.334362"], ["updated_at", "2017-11-10 01:51:52.334362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.336093"], ["updated_at", "2017-11-10 01:51:52.336093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.340945"], ["updated_at", "2017-11-10 01:51:52.340945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.341725"], ["updated_at", "2017-11-10 01:51:52.341725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.351351"], ["updated_at", "2017-11-10 01:51:52.351351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.352172"], ["updated_at", "2017-11-10 01:51:52.352172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.360057"], ["updated_at", "2017-11-10 01:51:52.360057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.365384"], ["updated_at", "2017-11-10 01:51:52.365384"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.367961"], ["updated_at", "2017-11-10 01:51:52.367961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.368827"], ["updated_at", "2017-11-10 01:51:52.368827"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:51:52.373729"], ["updated_at", "2017-11-10 01:51:52.373729"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:51:52.375868"], ["updated_at", "2017-11-10 01:51:52.375868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.386438"], ["updated_at", "2017-11-10 01:51:52.386438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.392455"], ["updated_at", "2017-11-10 01:51:52.392455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:51:52.400418"], ["updated_at", "2017-11-10 01:51:52.400418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:52:00.101685"], ["updated_at", "2017-11-10 01:52:00.101685"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:52:00.103049"], ["updated_at", "2017-11-10 01:52:00.103049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:52:00.112774"], ["updated_at", "2017-11-10 01:52:00.112774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:52:00.113647"], ["updated_at", "2017-11-10 01:52:00.113647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.123006"], ["updated_at", "2017-11-10 01:52:00.123006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.123916"], ["updated_at", "2017-11-10 01:52:00.123916"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.125793"], ["updated_at", "2017-11-10 01:52:00.125793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.126582"], ["updated_at", "2017-11-10 01:52:00.126582"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.143643"], ["updated_at", "2017-11-10 01:52:00.143643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.146851"], ["updated_at", "2017-11-10 01:52:00.146851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.147562"], ["updated_at", "2017-11-10 01:52:00.147562"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.150622"], ["updated_at", "2017-11-10 01:52:00.150622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.151515"], ["updated_at", "2017-11-10 01:52:00.151515"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.153318"], ["updated_at", "2017-11-10 01:52:00.153318"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.154294"], ["updated_at", "2017-11-10 01:52:00.154294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.156973"], ["updated_at", "2017-11-10 01:52:00.156973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:52:00.160756"], ["updated_at", "2017-11-10 01:52:00.160756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:52:00.161841"], ["updated_at", "2017-11-10 01:52:00.161841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.162612"], ["updated_at", "2017-11-10 01:52:00.162612"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 01:52:00.164576"], ["updated_at", "2017-11-10 01:52:00.164576"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.167456"], ["updated_at", "2017-11-10 01:52:00.167456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.172426"], ["updated_at", "2017-11-10 01:52:00.172426"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.174344"], ["updated_at", "2017-11-10 01:52:00.174344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.177611"], ["updated_at", "2017-11-10 01:52:00.177611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.179277"], ["updated_at", "2017-11-10 01:52:00.179277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.182019"], ["updated_at", "2017-11-10 01:52:00.182019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.182912"], ["updated_at", "2017-11-10 01:52:00.182912"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:52:00.191380"], ["updated_at", "2017-11-10 01:52:00.191380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.195680"], ["updated_at", "2017-11-10 01:52:00.195680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.196563"], ["updated_at", "2017-11-10 01:52:00.196563"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.199328"], ["updated_at", "2017-11-10 01:52:00.199328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.200877"], ["updated_at", "2017-11-10 01:52:00.200877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.208565"], ["updated_at", "2017-11-10 01:52:00.208565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:52:00.209504"], ["updated_at", "2017-11-10 01:52:00.209504"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.211863"], ["updated_at", "2017-11-10 01:52:00.211863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.216791"], ["updated_at", "2017-11-10 01:52:00.216791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.217947"], ["updated_at", "2017-11-10 01:52:00.217947"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.227409"], ["updated_at", "2017-11-10 01:52:00.227409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.231198"], ["updated_at", "2017-11-10 01:52:00.231198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.232050"], ["updated_at", "2017-11-10 01:52:00.232050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:52:00.240594"], ["updated_at", "2017-11-10 01:52:00.240594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 01:52:00.242335"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:52:00.243772"], ["updated_at", "2017-11-10 01:52:00.243772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:52:00.244620"], ["updated_at", "2017-11-10 01:52:00.244620"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.248457"], ["updated_at", "2017-11-10 01:52:00.248457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.249230"], ["updated_at", "2017-11-10 01:52:00.249230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.251478"], ["updated_at", "2017-11-10 01:52:00.251478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.271168"], ["updated_at", "2017-11-10 01:52:00.271168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.275621"], ["updated_at", "2017-11-10 01:52:00.275621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:52:00.285956"], ["updated_at", "2017-11-10 01:52:00.285956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.295896"], ["updated_at", "2017-11-10 01:52:00.295896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.296727"], ["updated_at", "2017-11-10 01:52:00.296727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.297571"], ["updated_at", "2017-11-10 01:52:00.297571"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.302351"], ["updated_at", "2017-11-10 01:52:00.302351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.307335"], ["updated_at", "2017-11-10 01:52:00.307335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.308194"], ["updated_at", "2017-11-10 01:52:00.308194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.310831"], ["updated_at", "2017-11-10 01:52:00.310831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.313007"], ["updated_at", "2017-11-10 01:52:00.313007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.316246"], ["updated_at", "2017-11-10 01:52:00.316246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.317158"], ["updated_at", "2017-11-10 01:52:00.317158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.317923"], ["updated_at", "2017-11-10 01:52:00.317923"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.320379"], ["updated_at", "2017-11-10 01:52:00.320379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.322145"], ["updated_at", "2017-11-10 01:52:00.322145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.333983"], ["updated_at", "2017-11-10 01:52:00.333983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:52:00.338322"], ["updated_at", "2017-11-10 01:52:00.338322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:52:00.339114"], ["updated_at", "2017-11-10 01:52:00.339114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:52:00.340793"], ["updated_at", "2017-11-10 01:52:00.340793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:52:00.341648"], ["updated_at", "2017-11-10 01:52:00.341648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:52:00.347834"], ["updated_at", "2017-11-10 01:52:00.347834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:52:00.350640"], ["updated_at", "2017-11-10 01:52:00.350640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.363245"], ["updated_at", "2017-11-10 01:52:00.363245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.370063"], ["updated_at", "2017-11-10 01:52:00.370063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.375524"], ["updated_at", "2017-11-10 01:52:00.375524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.377389"], ["updated_at", "2017-11-10 01:52:00.377389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.379051"], ["updated_at", "2017-11-10 01:52:00.379051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.383915"], ["updated_at", "2017-11-10 01:52:00.383915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.384922"], ["updated_at", "2017-11-10 01:52:00.384922"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.390382"], ["updated_at", "2017-11-10 01:52:00.390382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.391145"], ["updated_at", "2017-11-10 01:52:00.391145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.430461"], ["updated_at", "2017-11-10 01:52:00.430461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.437020"], ["updated_at", "2017-11-10 01:52:00.437020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.439586"], ["updated_at", "2017-11-10 01:52:00.439586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:00.481757"], ["updated_at", "2017-11-10 01:52:00.481757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:52:00.486401"], ["updated_at", "2017-11-10 01:52:00.486401"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:52:00.489313"], ["updated_at", "2017-11-10 01:52:00.489313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:52:00.490305"], ["updated_at", "2017-11-10 01:52:00.490305"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:52:26.731514"], ["updated_at", "2017-11-10 01:52:26.731514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:52:26.732624"], ["updated_at", "2017-11-10 01:52:26.732624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:26.778847"], ["updated_at", "2017-11-10 01:52:26.778847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:26.785572"], ["updated_at", "2017-11-10 01:52:26.785572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:26.788239"], ["updated_at", "2017-11-10 01:52:26.788239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:52:26.798919"], ["updated_at", "2017-11-10 01:52:26.798919"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:26.808722"], ["updated_at", "2017-11-10 01:52:26.808722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.195531"], ["updated_at", "2017-11-10 01:52:27.195531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.196384"], ["updated_at", "2017-11-10 01:52:27.196384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:52:27.203382"], ["updated_at", "2017-11-10 01:52:27.203382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.207338"], ["updated_at", "2017-11-10 01:52:27.207338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.208144"], ["updated_at", "2017-11-10 01:52:27.208144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.221703"], ["updated_at", "2017-11-10 01:52:27.221703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.223511"], ["updated_at", "2017-11-10 01:52:27.223511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.226333"], ["updated_at", "2017-11-10 01:52:27.226333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.227064"], ["updated_at", "2017-11-10 01:52:27.227064"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.228932"], ["updated_at", "2017-11-10 01:52:27.228932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.255359"], ["updated_at", "2017-11-10 01:52:27.255359"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.260260"], ["updated_at", "2017-11-10 01:52:27.260260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.261200"], ["updated_at", "2017-11-10 01:52:27.261200"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.263577"], ["updated_at", "2017-11-10 01:52:27.263577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.266922"], ["updated_at", "2017-11-10 01:52:27.266922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:52:27.271559"], ["updated_at", "2017-11-10 01:52:27.271559"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:52:27.272596"], ["updated_at", "2017-11-10 01:52:27.272596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:52:27.274568"], ["updated_at", "2017-11-10 01:52:27.274568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:52:27.275395"], ["updated_at", "2017-11-10 01:52:27.275395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.285358"], ["updated_at", "2017-11-10 01:52:27.285358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.286158"], ["updated_at", "2017-11-10 01:52:27.286158"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.288516"], ["updated_at", "2017-11-10 01:52:27.288516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.293620"], ["updated_at", "2017-11-10 01:52:27.293620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.295739"], ["updated_at", "2017-11-10 01:52:27.295739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.299075"], ["updated_at", "2017-11-10 01:52:27.299075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.304675"], ["updated_at", "2017-11-10 01:52:27.304675"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.310003"], ["updated_at", "2017-11-10 01:52:27.310003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.310799"], ["updated_at", "2017-11-10 01:52:27.310799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:52:27.320678"], ["updated_at", "2017-11-10 01:52:27.320678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 01:52:27.322096"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:52:27.322914"], ["updated_at", "2017-11-10 01:52:27.322914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:52:27.323703"], ["updated_at", "2017-11-10 01:52:27.323703"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.326643"], ["updated_at", "2017-11-10 01:52:27.326643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.329645"], ["updated_at", "2017-11-10 01:52:27.329645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.330788"], ["updated_at", "2017-11-10 01:52:27.330788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.344670"], ["updated_at", "2017-11-10 01:52:27.344670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.345450"], ["updated_at", "2017-11-10 01:52:27.345450"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 01:52:27.347136"], ["updated_at", "2017-11-10 01:52:27.347136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.348830"], ["updated_at", "2017-11-10 01:52:27.348830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.352325"], ["updated_at", "2017-11-10 01:52:27.352325"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.354791"], ["updated_at", "2017-11-10 01:52:27.354791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.360550"], ["updated_at", "2017-11-10 01:52:27.360550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.361637"], ["updated_at", "2017-11-10 01:52:27.361637"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.364834"], ["updated_at", "2017-11-10 01:52:27.364834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.365669"], ["updated_at", "2017-11-10 01:52:27.365669"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:52:27.369686"], ["updated_at", "2017-11-10 01:52:27.369686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:52:27.380106"], ["updated_at", "2017-11-10 01:52:27.380106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:52:27.381095"], ["updated_at", "2017-11-10 01:52:27.381095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.381804"], ["updated_at", "2017-11-10 01:52:27.381804"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.383642"], ["updated_at", "2017-11-10 01:52:27.383642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.388408"], ["updated_at", "2017-11-10 01:52:27.388408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.389181"], ["updated_at", "2017-11-10 01:52:27.389181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.389925"], ["updated_at", "2017-11-10 01:52:27.389925"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.392042"], ["updated_at", "2017-11-10 01:52:27.392042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.392782"], ["updated_at", "2017-11-10 01:52:27.392782"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.395284"], ["updated_at", "2017-11-10 01:52:27.395284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:52:27.398851"], ["updated_at", "2017-11-10 01:52:27.398851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:52:27.399723"], ["updated_at", "2017-11-10 01:52:27.399723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:52:27.401316"], ["updated_at", "2017-11-10 01:52:27.401316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:52:27.402122"], ["updated_at", "2017-11-10 01:52:27.402122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.417600"], ["updated_at", "2017-11-10 01:52:27.417600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.418789"], ["updated_at", "2017-11-10 01:52:27.418789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.420829"], ["updated_at", "2017-11-10 01:52:27.420829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.424203"], ["updated_at", "2017-11-10 01:52:27.424203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.424984"], ["updated_at", "2017-11-10 01:52:27.424984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.425681"], ["updated_at", "2017-11-10 01:52:27.425681"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.428384"], ["updated_at", "2017-11-10 01:52:27.428384"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.434090"], ["updated_at", "2017-11-10 01:52:27.434090"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:52:27.435203"], ["updated_at", "2017-11-10 01:52:27.435203"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:52:27.438601"], ["updated_at", "2017-11-10 01:52:27.438601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:52:27.440497"], ["updated_at", "2017-11-10 01:52:27.440497"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.448695"], ["updated_at", "2017-11-10 01:52:27.448695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.449545"], ["updated_at", "2017-11-10 01:52:27.449545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.457017"], ["updated_at", "2017-11-10 01:52:27.457017"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.458960"], ["updated_at", "2017-11-10 01:52:27.458960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.461157"], ["updated_at", "2017-11-10 01:52:27.461157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.463304"], ["updated_at", "2017-11-10 01:52:27.463304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.466318"], ["updated_at", "2017-11-10 01:52:27.466318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:52:27.467047"], ["updated_at", "2017-11-10 01:52:27.467047"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.656692"], ["updated_at", "2017-11-10 01:53:22.656692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.658099"], ["updated_at", "2017-11-10 01:53:22.658099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.686824"], ["updated_at", "2017-11-10 01:53:22.686824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.687883"], ["updated_at", "2017-11-10 01:53:22.687883"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.689920"], ["updated_at", "2017-11-10 01:53:22.689920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.691822"], ["updated_at", "2017-11-10 01:53:22.691822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.693682"], ["updated_at", "2017-11-10 01:53:22.693682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.696536"], ["updated_at", "2017-11-10 01:53:22.696536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:53:22.697327"], ["updated_at", "2017-11-10 01:53:22.697327"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.699951"], ["updated_at", "2017-11-10 01:53:22.699951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.700673"], ["updated_at", "2017-11-10 01:53:22.700673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.702609"], ["updated_at", "2017-11-10 01:53:22.702609"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:53:22.706400"], ["updated_at", "2017-11-10 01:53:22.706400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:53:22.708885"], ["updated_at", "2017-11-10 01:53:22.708885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.718066"], ["updated_at", "2017-11-10 01:53:22.718066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.720330"], ["updated_at", "2017-11-10 01:53:22.720330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.730075"], ["updated_at", "2017-11-10 01:53:22.730075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.734472"], ["updated_at", "2017-11-10 01:53:22.734472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.739330"], ["updated_at", "2017-11-10 01:53:22.739330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.740128"], ["updated_at", "2017-11-10 01:53:22.740128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.740796"], ["updated_at", "2017-11-10 01:53:22.740796"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:53:22.745229"], ["updated_at", "2017-11-10 01:53:22.745229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 01:53:22.746865"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:53:22.748110"], ["updated_at", "2017-11-10 01:53:22.748110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:53:22.748952"], ["updated_at", "2017-11-10 01:53:22.748952"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.752526"], ["updated_at", "2017-11-10 01:53:22.752526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.753519"], ["updated_at", "2017-11-10 01:53:22.753519"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:53:22.759479"], ["updated_at", "2017-11-10 01:53:22.759479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:53:22.760442"], ["updated_at", "2017-11-10 01:53:22.760442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:53:22.762448"], ["updated_at", "2017-11-10 01:53:22.762448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:53:22.763192"], ["updated_at", "2017-11-10 01:53:22.763192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.766798"], ["updated_at", "2017-11-10 01:53:22.766798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 01:53:22.771079"], ["updated_at", "2017-11-10 01:53:22.771079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.772979"], ["updated_at", "2017-11-10 01:53:22.772979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.777429"], ["updated_at", "2017-11-10 01:53:22.777429"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.782657"], ["updated_at", "2017-11-10 01:53:22.782657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:53:22.786229"], ["updated_at", "2017-11-10 01:53:22.786229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:53:22.787253"], ["updated_at", "2017-11-10 01:53:22.787253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.788130"], ["updated_at", "2017-11-10 01:53:22.788130"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.805830"], ["updated_at", "2017-11-10 01:53:22.805830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.806861"], ["updated_at", "2017-11-10 01:53:22.806861"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.809384"], ["updated_at", "2017-11-10 01:53:22.809384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.810279"], ["updated_at", "2017-11-10 01:53:22.810279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.814526"], ["updated_at", "2017-11-10 01:53:22.814526"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.816257"], ["updated_at", "2017-11-10 01:53:22.816257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.824409"], ["updated_at", "2017-11-10 01:53:22.824409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.825327"], ["updated_at", "2017-11-10 01:53:22.825327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.830333"], ["updated_at", "2017-11-10 01:53:22.830333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.832123"], ["updated_at", "2017-11-10 01:53:22.832123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:53:22.835901"], ["updated_at", "2017-11-10 01:53:22.835901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.857976"], ["updated_at", "2017-11-10 01:53:22.857976"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.865617"], ["updated_at", "2017-11-10 01:53:22.865617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.871283"], ["updated_at", "2017-11-10 01:53:22.871283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.872080"], ["updated_at", "2017-11-10 01:53:22.872080"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.874676"], ["updated_at", "2017-11-10 01:53:22.874676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.879075"], ["updated_at", "2017-11-10 01:53:22.879075"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.879864"], ["updated_at", "2017-11-10 01:53:22.879864"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.881417"], ["updated_at", "2017-11-10 01:53:22.881417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.883111"], ["updated_at", "2017-11-10 01:53:22.883111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:53:22.886051"], ["updated_at", "2017-11-10 01:53:22.886051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:53:22.886908"], ["updated_at", "2017-11-10 01:53:22.886908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:53:22.888405"], ["updated_at", "2017-11-10 01:53:22.888405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:53:22.889121"], ["updated_at", "2017-11-10 01:53:22.889121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.895974"], ["updated_at", "2017-11-10 01:53:22.895974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.897013"], ["updated_at", "2017-11-10 01:53:22.897013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.898865"], ["updated_at", "2017-11-10 01:53:22.898865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.901907"], ["updated_at", "2017-11-10 01:53:22.901907"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.903371"], ["updated_at", "2017-11-10 01:53:22.903371"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.912708"], ["updated_at", "2017-11-10 01:53:22.912708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.913885"], ["updated_at", "2017-11-10 01:53:22.913885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.920453"], ["updated_at", "2017-11-10 01:53:22.920453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.921339"], ["updated_at", "2017-11-10 01:53:22.921339"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.923621"], ["updated_at", "2017-11-10 01:53:22.923621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.924524"], ["updated_at", "2017-11-10 01:53:22.924524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.925410"], ["updated_at", "2017-11-10 01:53:22.925410"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.927942"], ["updated_at", "2017-11-10 01:53:22.927942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.931098"], ["updated_at", "2017-11-10 01:53:22.931098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.931894"], ["updated_at", "2017-11-10 01:53:22.931894"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:53:22.936164"], ["updated_at", "2017-11-10 01:53:22.936164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.951400"], ["updated_at", "2017-11-10 01:53:22.951400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.957866"], ["updated_at", "2017-11-10 01:53:22.957866"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.960779"], ["updated_at", "2017-11-10 01:53:22.960779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:53:22.965875"], ["updated_at", "2017-11-10 01:53:22.965875"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:22.967901"], ["updated_at", "2017-11-10 01:53:22.967901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:53:22.989103"], ["updated_at", "2017-11-10 01:53:22.989103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:53:22.990010"], ["updated_at", "2017-11-10 01:53:22.990010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:53:37.668576"], ["updated_at", "2017-11-10 01:53:37.668576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:55:28.286863"], ["updated_at", "2017-11-10 01:55:28.286863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:22.432960"], ["updated_at", "2017-11-10 01:57:22.432960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.239857"], ["updated_at", "2017-11-10 01:57:38.239857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.242771"], ["updated_at", "2017-11-10 01:57:38.242771"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.267859"], ["updated_at", "2017-11-10 01:57:38.267859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.268919"], ["updated_at", "2017-11-10 01:57:38.268919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.272500"], ["updated_at", "2017-11-10 01:57:38.272500"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:57:38.281802"], ["updated_at", "2017-11-10 01:57:38.281802"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.3ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.302586"], ["updated_at", "2017-11-10 01:57:38.302586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.303735"], ["updated_at", "2017-11-10 01:57:38.303735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.304686"], ["updated_at", "2017-11-10 01:57:38.304686"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:57:38.308926"], ["updated_at", "2017-11-10 01:57:38.308926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 01:57:38.310443"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:57:38.316428"], ["updated_at", "2017-11-10 01:57:38.316428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:57:38.317636"], ["updated_at", "2017-11-10 01:57:38.317636"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.3ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:57:38.329911"], ["updated_at", "2017-11-10 01:57:38.329911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:57:38.332473"], ["updated_at", "2017-11-10 01:57:38.332473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.343252"], ["updated_at", "2017-11-10 01:57:38.343252"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.344282"], ["updated_at", "2017-11-10 01:57:38.344282"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.347596"], ["updated_at", "2017-11-10 01:57:38.347596"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.355030"], ["updated_at", "2017-11-10 01:57:38.355030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.359909"], ["updated_at", "2017-11-10 01:57:38.359909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.360833"], ["updated_at", "2017-11-10 01:57:38.360833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.362988"], ["updated_at", "2017-11-10 01:57:38.362988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (7.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.393127"], ["updated_at", "2017-11-10 01:57:38.393127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.393927"], ["updated_at", "2017-11-10 01:57:38.393927"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.396242"], ["updated_at", "2017-11-10 01:57:38.396242"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.398639"], ["updated_at", "2017-11-10 01:57:38.398639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.405408"], ["updated_at", "2017-11-10 01:57:38.405408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.411328"], ["updated_at", "2017-11-10 01:57:38.411328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.413516"], ["updated_at", "2017-11-10 01:57:38.413516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.415464"], ["updated_at", "2017-11-10 01:57:38.415464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:57:38.418760"], ["updated_at", "2017-11-10 01:57:38.418760"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:57:38.419555"], ["updated_at", "2017-11-10 01:57:38.419555"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:57:38.421222"], ["updated_at", "2017-11-10 01:57:38.421222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:57:38.421960"], ["updated_at", "2017-11-10 01:57:38.421960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.425135"], ["updated_at", "2017-11-10 01:57:38.425135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.426117"], ["updated_at", "2017-11-10 01:57:38.426117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.434969"], ["updated_at", "2017-11-10 01:57:38.434969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:57:38.435818"], ["updated_at", "2017-11-10 01:57:38.435818"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.440429"], ["updated_at", "2017-11-10 01:57:38.440429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:57:38.447250"], ["updated_at", "2017-11-10 01:57:38.447250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:57:38.448594"], ["updated_at", "2017-11-10 01:57:38.448594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:57:38.450529"], ["updated_at", "2017-11-10 01:57:38.450529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:57:38.451271"], ["updated_at", "2017-11-10 01:57:38.451271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.457902"], ["updated_at", "2017-11-10 01:57:38.457902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.458827"], ["updated_at", "2017-11-10 01:57:38.458827"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.461266"], ["updated_at", "2017-11-10 01:57:38.461266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.461955"], ["updated_at", "2017-11-10 01:57:38.461955"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.463384"], ["updated_at", "2017-11-10 01:57:38.463384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.464200"], ["updated_at", "2017-11-10 01:57:38.464200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.469509"], ["updated_at", "2017-11-10 01:57:38.469509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.473899"], ["updated_at", "2017-11-10 01:57:38.473899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.474793"], ["updated_at", "2017-11-10 01:57:38.474793"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.476904"], ["updated_at", "2017-11-10 01:57:38.476904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.477582"], ["updated_at", "2017-11-10 01:57:38.477582"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.479811"], ["updated_at", "2017-11-10 01:57:38.479811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.482060"], ["updated_at", "2017-11-10 01:57:38.482060"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.485173"], ["updated_at", "2017-11-10 01:57:38.485173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.490748"], ["updated_at", "2017-11-10 01:57:38.490748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.493489"], ["updated_at", "2017-11-10 01:57:38.493489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.494278"], ["updated_at", "2017-11-10 01:57:38.494278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.494989"], ["updated_at", "2017-11-10 01:57:38.494989"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 3))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:57:38.496659"], ["updated_at", "2017-11-10 01:57:38.496659"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:57:38.497438"], ["updated_at", "2017-11-10 01:57:38.497438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.498195"], ["updated_at", "2017-11-10 01:57:38.498195"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 5 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.500045"], ["updated_at", "2017-11-10 01:57:38.500045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.504296"], ["updated_at", "2017-11-10 01:57:38.504296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.504988"], ["updated_at", "2017-11-10 01:57:38.504988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.511843"], ["updated_at", "2017-11-10 01:57:38.511843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.512852"], ["updated_at", "2017-11-10 01:57:38.512852"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.515367"], ["updated_at", "2017-11-10 01:57:38.515367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.520406"], ["updated_at", "2017-11-10 01:57:38.520406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.522560"], ["updated_at", "2017-11-10 01:57:38.522560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.525856"], ["updated_at", "2017-11-10 01:57:38.525856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.526600"], ["updated_at", "2017-11-10 01:57:38.526600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (3.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.538306"], ["updated_at", "2017-11-10 01:57:38.538306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.540658"], ["updated_at", "2017-11-10 01:57:38.540658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:57:38.545887"], ["updated_at", "2017-11-10 01:57:38.545887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:57:38.686669"], ["updated_at", "2017-11-10 01:57:38.686669"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.706894"], ["updated_at", "2017-11-10 01:57:38.706894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.711563"], ["updated_at", "2017-11-10 01:57:38.711563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.714660"], ["updated_at", "2017-11-10 01:57:38.714660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:57:38.740660"], ["updated_at", "2017-11-10 01:57:38.740660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:57:38.741658"], ["updated_at", "2017-11-10 01:57:38.741658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:38.756355"], ["updated_at", "2017-11-10 01:57:38.756355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:57:57.933791"], ["updated_at", "2017-11-10 01:57:57.933791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:57:57.935455"], ["updated_at", "2017-11-10 01:57:57.935455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:57:57.938661"], ["updated_at", "2017-11-10 01:57:57.938661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:57:57.939751"], ["updated_at", "2017-11-10 01:57:57.939751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:57.944156"], ["updated_at", "2017-11-10 01:57:57.944156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:57.945408"], ["updated_at", "2017-11-10 01:57:57.945408"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:57.948837"], ["updated_at", "2017-11-10 01:57:57.948837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:57.954365"], ["updated_at", "2017-11-10 01:57:57.954365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:57.966478"], ["updated_at", "2017-11-10 01:57:57.966478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:57.967503"], ["updated_at", "2017-11-10 01:57:57.967503"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:57.970063"], ["updated_at", "2017-11-10 01:57:57.970063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:57.970984"], ["updated_at", "2017-11-10 01:57:57.970984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:57:57.977228"], ["updated_at", "2017-11-10 01:57:57.977228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:57:57.978383"], ["updated_at", "2017-11-10 01:57:57.978383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:57.979599"], ["updated_at", "2017-11-10 01:57:57.979599"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:57:57.984660"], ["updated_at", "2017-11-10 01:57:57.984660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 01:57:57.987012"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:57:57.990926"], ["updated_at", "2017-11-10 01:57:57.990926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:57:57.991936"], ["updated_at", "2017-11-10 01:57:57.991936"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.006886"], ["updated_at", "2017-11-10 01:57:58.006886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.007904"], ["updated_at", "2017-11-10 01:57:58.007904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.010194"], ["updated_at", "2017-11-10 01:57:58.010194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:57:58.013400"], ["updated_at", "2017-11-10 01:57:58.013400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:57:58.015269"], ["updated_at", "2017-11-10 01:57:58.015269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.032675"], ["updated_at", "2017-11-10 01:57:58.032675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.037847"], ["updated_at", "2017-11-10 01:57:58.037847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.040348"], ["updated_at", "2017-11-10 01:57:58.040348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.043913"], ["updated_at", "2017-11-10 01:57:58.043913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.048208"], ["updated_at", "2017-11-10 01:57:58.048208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.051781"], ["updated_at", "2017-11-10 01:57:58.051781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.052572"], ["updated_at", "2017-11-10 01:57:58.052572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.065081"], ["updated_at", "2017-11-10 01:57:58.065081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.066147"], ["updated_at", "2017-11-10 01:57:58.066147"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.069183"], ["updated_at", "2017-11-10 01:57:58.069183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:57:58.074237"], ["updated_at", "2017-11-10 01:57:58.074237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.085299"], ["updated_at", "2017-11-10 01:57:58.085299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:57:58.086232"], ["updated_at", "2017-11-10 01:57:58.086232"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.088589"], ["updated_at", "2017-11-10 01:57:58.088589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.089376"], ["updated_at", "2017-11-10 01:57:58.089376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.094381"], ["updated_at", "2017-11-10 01:57:58.094381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.095258"], ["updated_at", "2017-11-10 01:57:58.095258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.096003"], ["updated_at", "2017-11-10 01:57:58.096003"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.098236"], ["updated_at", "2017-11-10 01:57:58.098236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.098981"], ["updated_at", "2017-11-10 01:57:58.098981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.106953"], ["updated_at", "2017-11-10 01:57:58.106953"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.108577"], ["updated_at", "2017-11-10 01:57:58.108577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.109246"], ["updated_at", "2017-11-10 01:57:58.109246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.109977"], ["updated_at", "2017-11-10 01:57:58.109977"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:57:58.116457"], ["updated_at", "2017-11-10 01:57:58.116457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.121131"], ["updated_at", "2017-11-10 01:57:58.121131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.122005"], ["updated_at", "2017-11-10 01:57:58.122005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.129065"], ["updated_at", "2017-11-10 01:57:58.129065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.131961"], ["updated_at", "2017-11-10 01:57:58.131961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.134012"], ["updated_at", "2017-11-10 01:57:58.134012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.137559"], ["updated_at", "2017-11-10 01:57:58.137559"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.139429"], ["updated_at", "2017-11-10 01:57:58.139429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.142804"], ["updated_at", "2017-11-10 01:57:58.142804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.144832"], ["updated_at", "2017-11-10 01:57:58.144832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.146765"], ["updated_at", "2017-11-10 01:57:58.146765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.150219"], ["updated_at", "2017-11-10 01:57:58.150219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.151398"], ["updated_at", "2017-11-10 01:57:58.151398"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.154242"], ["updated_at", "2017-11-10 01:57:58.154242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.158055"], ["updated_at", "2017-11-10 01:57:58.158055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.163200"], ["updated_at", "2017-11-10 01:57:58.163200"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.165402"], ["updated_at", "2017-11-10 01:57:58.165402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.170591"], ["updated_at", "2017-11-10 01:57:58.170591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.176720"], ["updated_at", "2017-11-10 01:57:58.176720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.177532"], ["updated_at", "2017-11-10 01:57:58.177532"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.179757"], ["updated_at", "2017-11-10 01:57:58.179757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.180781"], ["updated_at", "2017-11-10 01:57:58.180781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.182903"], ["updated_at", "2017-11-10 01:57:58.182903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.186041"], ["updated_at", "2017-11-10 01:57:58.186041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.186740"], ["updated_at", "2017-11-10 01:57:58.186740"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:57:58.188435"], ["updated_at", "2017-11-10 01:57:58.188435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:57:58.189235"], ["updated_at", "2017-11-10 01:57:58.189235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:57:58.190883"], ["updated_at", "2017-11-10 01:57:58.190883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:57:58.191631"], ["updated_at", "2017-11-10 01:57:58.191631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.272826"], ["updated_at", "2017-11-10 01:57:58.272826"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.285794"], ["updated_at", "2017-11-10 01:57:58.285794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.292147"], ["updated_at", "2017-11-10 01:57:58.292147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:57:58.294907"], ["updated_at", "2017-11-10 01:57:58.294907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:57:58.305890"], ["updated_at", "2017-11-10 01:57:58.305890"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:57:58.308593"], ["updated_at", "2017-11-10 01:57:58.308593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:57:58.309645"], ["updated_at", "2017-11-10 01:57:58.309645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:58:46.683643"], ["updated_at", "2017-11-10 01:58:46.683643"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.688610"], ["updated_at", "2017-11-10 01:58:46.688610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.694608"], ["updated_at", "2017-11-10 01:58:46.694608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.697434"], ["updated_at", "2017-11-10 01:58:46.697434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:58:46.703383"], ["updated_at", "2017-11-10 01:58:46.703383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:58:46.704289"], ["updated_at", "2017-11-10 01:58:46.704289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 7], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.752980"], ["updated_at", "2017-11-10 01:58:46.752980"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.761606"], ["updated_at", "2017-11-10 01:58:46.761606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.762646"], ["updated_at", "2017-11-10 01:58:46.762646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.773575"], ["updated_at", "2017-11-10 01:58:46.773575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.774742"], ["updated_at", "2017-11-10 01:58:46.774742"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.777234"], ["updated_at", "2017-11-10 01:58:46.777234"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.782716"], ["updated_at", "2017-11-10 01:58:46.782716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.802517"], ["updated_at", "2017-11-10 01:58:46.802517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.803806"], ["updated_at", "2017-11-10 01:58:46.803806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.806288"], ["updated_at", "2017-11-10 01:58:46.806288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:58:46.812420"], ["updated_at", "2017-11-10 01:58:46.812420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 01:58:46.814030"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:58:46.815109"], ["updated_at", "2017-11-10 01:58:46.815109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:58:46.816194"], ["updated_at", "2017-11-10 01:58:46.816194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.3ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.820882"], ["updated_at", "2017-11-10 01:58:46.820882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:58:46.826247"], ["updated_at", "2017-11-10 01:58:46.826247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:58:46.827667"], ["updated_at", "2017-11-10 01:58:46.827667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:58:46.830468"], ["updated_at", "2017-11-10 01:58:46.830468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:58:46.831783"], ["updated_at", "2017-11-10 01:58:46.831783"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.840972"], ["updated_at", "2017-11-10 01:58:46.840972"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.841983"], ["updated_at", "2017-11-10 01:58:46.841983"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.845284"], ["updated_at", "2017-11-10 01:58:46.845284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.846190"], ["updated_at", "2017-11-10 01:58:46.846190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (6.9ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.859739"], ["updated_at", "2017-11-10 01:58:46.859739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.863611"], ["updated_at", "2017-11-10 01:58:46.863611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.864403"], ["updated_at", "2017-11-10 01:58:46.864403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.866100"], ["updated_at", "2017-11-10 01:58:46.866100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:58:46.869122"], ["updated_at", "2017-11-10 01:58:46.869122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:58:46.869885"], ["updated_at", "2017-11-10 01:58:46.869885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:58:46.872033"], ["updated_at", "2017-11-10 01:58:46.872033"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:58:46.873332"], ["updated_at", "2017-11-10 01:58:46.873332"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.879775"], ["updated_at", "2017-11-10 01:58:46.879775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.881530"], ["updated_at", "2017-11-10 01:58:46.881530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.883376"], ["updated_at", "2017-11-10 01:58:46.883376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:58:46.887804"], ["updated_at", "2017-11-10 01:58:46.887804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.898292"], ["updated_at", "2017-11-10 01:58:46.898292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.900389"], ["updated_at", "2017-11-10 01:58:46.900389"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:58:46.903277"], ["updated_at", "2017-11-10 01:58:46.903277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:58:46.905134"], ["updated_at", "2017-11-10 01:58:46.905134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.914255"], ["updated_at", "2017-11-10 01:58:46.914255"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.915184"], ["updated_at", "2017-11-10 01:58:46.915184"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.917274"], ["updated_at", "2017-11-10 01:58:46.917274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.917958"], ["updated_at", "2017-11-10 01:58:46.917958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.922405"], ["updated_at", "2017-11-10 01:58:46.922405"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.923490"], ["updated_at", "2017-11-10 01:58:46.923490"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:58:46.926135"], ["updated_at", "2017-11-10 01:58:46.926135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:58:46.927074"], ["updated_at", "2017-11-10 01:58:46.927074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.927799"], ["updated_at", "2017-11-10 01:58:46.927799"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.929647"], ["updated_at", "2017-11-10 01:58:46.929647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.930422"], ["updated_at", "2017-11-10 01:58:46.930422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.931084"], ["updated_at", "2017-11-10 01:58:46.931084"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.933436"], ["updated_at", "2017-11-10 01:58:46.933436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.937842"], ["updated_at", "2017-11-10 01:58:46.937842"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.951697"], ["updated_at", "2017-11-10 01:58:46.951697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.952491"], ["updated_at", "2017-11-10 01:58:46.952491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.961173"], ["updated_at", "2017-11-10 01:58:46.961173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:58:46.969864"], ["updated_at", "2017-11-10 01:58:46.969864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.973879"], ["updated_at", "2017-11-10 01:58:46.973879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:58:46.974757"], ["updated_at", "2017-11-10 01:58:46.974757"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.977178"], ["updated_at", "2017-11-10 01:58:46.977178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.978015"], ["updated_at", "2017-11-10 01:58:46.978015"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.980291"], ["updated_at", "2017-11-10 01:58:46.980291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.984506"], ["updated_at", "2017-11-10 01:58:46.984506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.986482"], ["updated_at", "2017-11-10 01:58:46.986482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.989607"], ["updated_at", "2017-11-10 01:58:46.989607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.990513"], ["updated_at", "2017-11-10 01:58:46.990513"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.993029"], ["updated_at", "2017-11-10 01:58:46.993029"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.994109"], ["updated_at", "2017-11-10 01:58:46.994109"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:46.996018"], ["updated_at", "2017-11-10 01:58:46.996018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:47.001477"], ["updated_at", "2017-11-10 01:58:47.001477"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:47.006081"], ["updated_at", "2017-11-10 01:58:47.006081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 3)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:47.011415"], ["updated_at", "2017-11-10 01:58:47.011415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:47.012255"], ["updated_at", "2017-11-10 01:58:47.012255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:47.013024"], ["updated_at", "2017-11-10 01:58:47.013024"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:47.015287"], ["updated_at", "2017-11-10 01:58:47.015287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:47.016005"], ["updated_at", "2017-11-10 01:58:47.016005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:47.020115"], ["updated_at", "2017-11-10 01:58:47.020115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:47.021975"], ["updated_at", "2017-11-10 01:58:47.021975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.710858"], ["updated_at", "2017-11-10 01:58:56.710858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:58:56.729456"], ["updated_at", "2017-11-10 01:58:56.729456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:58:56.730506"], ["updated_at", "2017-11-10 01:58:56.730506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.765587"], ["updated_at", "2017-11-10 01:58:56.765587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.773870"], ["updated_at", "2017-11-10 01:58:56.773870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.777055"], ["updated_at", "2017-11-10 01:58:56.777055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:58:56.823473"], ["updated_at", "2017-11-10 01:58:56.823473"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.889110"], ["updated_at", "2017-11-10 01:58:56.889110"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 2)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.895681"], ["updated_at", "2017-11-10 01:58:56.895681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.897388"], ["updated_at", "2017-11-10 01:58:56.897388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.900064"], ["updated_at", "2017-11-10 01:58:56.900064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.900714"], ["updated_at", "2017-11-10 01:58:56.900714"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.902035"], ["updated_at", "2017-11-10 01:58:56.902035"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.905113"], ["updated_at", "2017-11-10 01:58:56.905113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.905761"], ["updated_at", "2017-11-10 01:58:56.905761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.912219"], ["updated_at", "2017-11-10 01:58:56.912219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:58:56.915163"], ["updated_at", "2017-11-10 01:58:56.915163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:58:56.916920"], ["updated_at", "2017-11-10 01:58:56.916920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 3]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.923537"], ["updated_at", "2017-11-10 01:58:56.923537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:58:56.930542"], ["updated_at", "2017-11-10 01:58:56.930542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 01:58:56.932162"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:58:56.933063"], ["updated_at", "2017-11-10 01:58:56.933063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:58:56.933794"], ["updated_at", "2017-11-10 01:58:56.933794"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:58:56.938728"], ["updated_at", "2017-11-10 01:58:56.938728"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.945135"], ["updated_at", "2017-11-10 01:58:56.945135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.945891"], ["updated_at", "2017-11-10 01:58:56.945891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.947910"], ["updated_at", "2017-11-10 01:58:56.947910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.953110"], ["updated_at", "2017-11-10 01:58:56.953110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.953804"], ["updated_at", "2017-11-10 01:58:56.953804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.958178"], ["updated_at", "2017-11-10 01:58:56.958178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.962866"], ["updated_at", "2017-11-10 01:58:56.962866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.964572"], ["updated_at", "2017-11-10 01:58:56.964572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:58:56.967683"], ["updated_at", "2017-11-10 01:58:56.967683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:58:56.968507"], ["updated_at", "2017-11-10 01:58:56.968507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.969169"], ["updated_at", "2017-11-10 01:58:56.969169"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.970706"], ["updated_at", "2017-11-10 01:58:56.970706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.971362"], ["updated_at", "2017-11-10 01:58:56.971362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:58:56.976663"], ["updated_at", "2017-11-10 01:58:56.976663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.985970"], ["updated_at", "2017-11-10 01:58:56.985970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.989032"], ["updated_at", "2017-11-10 01:58:56.989032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.989711"], ["updated_at", "2017-11-10 01:58:56.989711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.990661"], ["updated_at", "2017-11-10 01:58:56.990661"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.996028"], ["updated_at", "2017-11-10 01:58:56.996028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:56.998071"], ["updated_at", "2017-11-10 01:58:56.998071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.001091"], ["updated_at", "2017-11-10 01:58:57.001091"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.002101"], ["updated_at", "2017-11-10 01:58:57.002101"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.006410"], ["updated_at", "2017-11-10 01:58:57.006410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.007244"], ["updated_at", "2017-11-10 01:58:57.007244"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:58:57.009532"], ["updated_at", "2017-11-10 01:58:57.009532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:58:57.010562"], ["updated_at", "2017-11-10 01:58:57.010562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:58:57.012216"], ["updated_at", "2017-11-10 01:58:57.012216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:58:57.012938"], ["updated_at", "2017-11-10 01:58:57.012938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.016476"], ["updated_at", "2017-11-10 01:58:57.016476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.017291"], ["updated_at", "2017-11-10 01:58:57.017291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.017987"], ["updated_at", "2017-11-10 01:58:57.017987"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.020489"], ["updated_at", "2017-11-10 01:58:57.020489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.021169"], ["updated_at", "2017-11-10 01:58:57.021169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.022901"], ["updated_at", "2017-11-10 01:58:57.022901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.026749"], ["updated_at", "2017-11-10 01:58:57.026749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:58:57.027717"], ["updated_at", "2017-11-10 01:58:57.027717"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.030265"], ["updated_at", "2017-11-10 01:58:57.030265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.044964"], ["updated_at", "2017-11-10 01:58:57.044964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.045762"], ["updated_at", "2017-11-10 01:58:57.045762"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.048269"], ["updated_at", "2017-11-10 01:58:57.048269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.049239"], ["updated_at", "2017-11-10 01:58:57.049239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.057772"], ["updated_at", "2017-11-10 01:58:57.057772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.058776"], ["updated_at", "2017-11-10 01:58:57.058776"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.068308"], ["updated_at", "2017-11-10 01:58:57.068308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.069056"], ["updated_at", "2017-11-10 01:58:57.069056"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.071713"], ["updated_at", "2017-11-10 01:58:57.071713"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.076151"], ["updated_at", "2017-11-10 01:58:57.076151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.080832"], ["updated_at", "2017-11-10 01:58:57.080832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.081699"], ["updated_at", "2017-11-10 01:58:57.081699"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.084015"], ["updated_at", "2017-11-10 01:58:57.084015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.084695"], ["updated_at", "2017-11-10 01:58:57.084695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:58:57.094363"], ["updated_at", "2017-11-10 01:58:57.094363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:58:57.095257"], ["updated_at", "2017-11-10 01:58:57.095257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:58:57.096816"], ["updated_at", "2017-11-10 01:58:57.096816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:58:57.097534"], ["updated_at", "2017-11-10 01:58:57.097534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.103703"], ["updated_at", "2017-11-10 01:58:57.103703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.108242"], ["updated_at", "2017-11-10 01:58:57.108242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.113328"], ["updated_at", "2017-11-10 01:58:57.113328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.115525"], ["updated_at", "2017-11-10 01:58:57.115525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:58:57.117336"], ["updated_at", "2017-11-10 01:58:57.117336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.3ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:59:08.046918"], ["updated_at", "2017-11-10 01:59:08.046918"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:59:08.065269"], ["updated_at", "2017-11-10 01:59:08.065269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:59:08.066493"], ["updated_at", "2017-11-10 01:59:08.066493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.088775"], ["updated_at", "2017-11-10 01:59:08.088775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.096247"], ["updated_at", "2017-11-10 01:59:08.096247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.099686"], ["updated_at", "2017-11-10 01:59:08.099686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.112641"], ["updated_at", "2017-11-10 01:59:08.112641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.4ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.3ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.203491"], ["updated_at", "2017-11-10 01:59:08.203491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.204665"], ["updated_at", "2017-11-10 01:59:08.204665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 2) OR ("test_attrs_test_models_2"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:59:08.212314"], ["updated_at", "2017-11-10 01:59:08.212314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.217663"], ["updated_at", "2017-11-10 01:59:08.217663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.219394"], ["updated_at", "2017-11-10 01:59:08.219394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.221290"], ["updated_at", "2017-11-10 01:59:08.221290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.224150"], ["updated_at", "2017-11-10 01:59:08.224150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.224886"], ["updated_at", "2017-11-10 01:59:08.224886"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.227829"], ["updated_at", "2017-11-10 01:59:08.227829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.231238"], ["updated_at", "2017-11-10 01:59:08.231238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.232864"], ["updated_at", "2017-11-10 01:59:08.232864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.243963"], ["updated_at", "2017-11-10 01:59:08.243963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.244848"], ["updated_at", "2017-11-10 01:59:08.244848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.246647"], ["updated_at", "2017-11-10 01:59:08.246647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.249465"], ["updated_at", "2017-11-10 01:59:08.249465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.254158"], ["updated_at", "2017-11-10 01:59:08.254158"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.256163"], ["updated_at", "2017-11-10 01:59:08.256163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.256949"], ["updated_at", "2017-11-10 01:59:08.256949"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.258962"], ["updated_at", "2017-11-10 01:59:08.258962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.263500"], ["updated_at", "2017-11-10 01:59:08.263500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.265911"], ["updated_at", "2017-11-10 01:59:08.265911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.266569"], ["updated_at", "2017-11-10 01:59:08.266569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 3)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.290654"], ["updated_at", "2017-11-10 01:59:08.290654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.292544"], ["updated_at", "2017-11-10 01:59:08.292544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.295516"], ["updated_at", "2017-11-10 01:59:08.295516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.296281"], ["updated_at", "2017-11-10 01:59:08.296281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.305395"], ["updated_at", "2017-11-10 01:59:08.305395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.306173"], ["updated_at", "2017-11-10 01:59:08.306173"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.308078"], ["updated_at", "2017-11-10 01:59:08.308078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.313009"], ["updated_at", "2017-11-10 01:59:08.313009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.318807"], ["updated_at", "2017-11-10 01:59:08.318807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:59:08.322243"], ["updated_at", "2017-11-10 01:59:08.322243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:59:08.323137"], ["updated_at", "2017-11-10 01:59:08.323137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:59:08.324871"], ["updated_at", "2017-11-10 01:59:08.324871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:59:08.325652"], ["updated_at", "2017-11-10 01:59:08.325652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.335117"], ["updated_at", "2017-11-10 01:59:08.335117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:59:08.336023"], ["updated_at", "2017-11-10 01:59:08.336023"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.338366"], ["updated_at", "2017-11-10 01:59:08.338366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.339087"], ["updated_at", "2017-11-10 01:59:08.339087"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.343843"], ["updated_at", "2017-11-10 01:59:08.343843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.348588"], ["updated_at", "2017-11-10 01:59:08.348588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.349338"], ["updated_at", "2017-11-10 01:59:08.349338"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.351302"], ["updated_at", "2017-11-10 01:59:08.351302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.351988"], ["updated_at", "2017-11-10 01:59:08.351988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.352710"], ["updated_at", "2017-11-10 01:59:08.352710"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:59:08.354965"], ["updated_at", "2017-11-10 01:59:08.354965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:59:08.356819"], ["updated_at", "2017-11-10 01:59:08.356819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.364498"], ["updated_at", "2017-11-10 01:59:08.364498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.365452"], ["updated_at", "2017-11-10 01:59:08.365452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.367246"], ["updated_at", "2017-11-10 01:59:08.367246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:59:08.370279"], ["updated_at", "2017-11-10 01:59:08.370279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:59:08.371072"], ["updated_at", "2017-11-10 01:59:08.371072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.371814"], ["updated_at", "2017-11-10 01:59:08.371814"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.376298"], ["updated_at", "2017-11-10 01:59:08.376298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:59:08.383191"], ["updated_at", "2017-11-10 01:59:08.383191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 01:59:08.384980"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:59:08.386265"], ["updated_at", "2017-11-10 01:59:08.386265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:59:08.387264"], ["updated_at", "2017-11-10 01:59:08.387264"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:59:08.390563"], ["updated_at", "2017-11-10 01:59:08.390563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:59:08.391416"], ["updated_at", "2017-11-10 01:59:08.391416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:59:08.393245"], ["updated_at", "2017-11-10 01:59:08.393245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:59:08.393981"], ["updated_at", "2017-11-10 01:59:08.393981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.397223"], ["updated_at", "2017-11-10 01:59:08.397223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.397954"], ["updated_at", "2017-11-10 01:59:08.397954"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:59:08.403238"], ["updated_at", "2017-11-10 01:59:08.403238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.412306"], ["updated_at", "2017-11-10 01:59:08.412306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.413151"], ["updated_at", "2017-11-10 01:59:08.413151"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.415530"], ["updated_at", "2017-11-10 01:59:08.415530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.419093"], ["updated_at", "2017-11-10 01:59:08.419093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.419887"], ["updated_at", "2017-11-10 01:59:08.419887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.426064"], ["updated_at", "2017-11-10 01:59:08.426064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.428807"], ["updated_at", "2017-11-10 01:59:08.428807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.432261"], ["updated_at", "2017-11-10 01:59:08.432261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.433042"], ["updated_at", "2017-11-10 01:59:08.433042"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.434663"], ["updated_at", "2017-11-10 01:59:08.434663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.435352"], ["updated_at", "2017-11-10 01:59:08.435352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:08.436068"], ["updated_at", "2017-11-10 01:59:08.436068"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.507321"], ["updated_at", "2017-11-10 01:59:12.507321"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.508858"], ["updated_at", "2017-11-10 01:59:12.508858"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.521634"], ["updated_at", "2017-11-10 01:59:12.521634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 01:59:12.554328"], ["updated_at", "2017-11-10 01:59:12.554328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 01:59:12.556219"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:59:12.559916"], ["updated_at", "2017-11-10 01:59:12.559916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 01:59:12.560937"], ["updated_at", "2017-11-10 01:59:12.560937"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.565012"], ["updated_at", "2017-11-10 01:59:12.565012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.567194"], ["updated_at", "2017-11-10 01:59:12.567194"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.579034"], ["updated_at", "2017-11-10 01:59:12.579034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.582224"], ["updated_at", "2017-11-10 01:59:12.582224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.586789"], ["updated_at", "2017-11-10 01:59:12.586789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.590674"], ["updated_at", "2017-11-10 01:59:12.590674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.591513"], ["updated_at", "2017-11-10 01:59:12.591513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.598478"], ["updated_at", "2017-11-10 01:59:12.598478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.602923"], ["updated_at", "2017-11-10 01:59:12.602923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.603793"], ["updated_at", "2017-11-10 01:59:12.603793"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.605873"], ["updated_at", "2017-11-10 01:59:12.605873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.606750"], ["updated_at", "2017-11-10 01:59:12.606750"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:59:12.609594"], ["updated_at", "2017-11-10 01:59:12.609594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:59:12.611204"], ["updated_at", "2017-11-10 01:59:12.611204"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:59:12.613274"], ["updated_at", "2017-11-10 01:59:12.613274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:59:12.614056"], ["updated_at", "2017-11-10 01:59:12.614056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 01:59:12.621126"], ["updated_at", "2017-11-10 01:59:12.621126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 01:59:12.623295"], ["updated_at", "2017-11-10 01:59:12.623295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 01:59:12.636632"], ["updated_at", "2017-11-10 01:59:12.636632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.641070"], ["updated_at", "2017-11-10 01:59:12.641070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.642098"], ["updated_at", "2017-11-10 01:59:12.642098"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.657920"], ["updated_at", "2017-11-10 01:59:12.657920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.659068"], ["updated_at", "2017-11-10 01:59:12.659068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.660443"], ["updated_at", "2017-11-10 01:59:12.660443"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.663516"], ["updated_at", "2017-11-10 01:59:12.663516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.664368"], ["updated_at", "2017-11-10 01:59:12.664368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.675662"], ["updated_at", "2017-11-10 01:59:12.675662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.677178"], ["updated_at", "2017-11-10 01:59:12.677178"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.680647"], ["updated_at", "2017-11-10 01:59:12.680647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 01:59:12.688139"], ["updated_at", "2017-11-10 01:59:12.688139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.700742"], ["updated_at", "2017-11-10 01:59:12.700742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.702969"], ["updated_at", "2017-11-10 01:59:12.702969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.705271"], ["updated_at", "2017-11-10 01:59:12.705271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:59:12.708702"], ["updated_at", "2017-11-10 01:59:12.708702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 01:59:12.709845"], ["updated_at", "2017-11-10 01:59:12.709845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.710751"], ["updated_at", "2017-11-10 01:59:12.710751"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.712880"], ["updated_at", "2017-11-10 01:59:12.712880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.713683"], ["updated_at", "2017-11-10 01:59:12.713683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.721383"], ["updated_at", "2017-11-10 01:59:12.721383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.722474"], ["updated_at", "2017-11-10 01:59:12.722474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.733791"], ["updated_at", "2017-11-10 01:59:12.733791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.734764"], ["updated_at", "2017-11-10 01:59:12.734764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.737117"], ["updated_at", "2017-11-10 01:59:12.737117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.741254"], ["updated_at", "2017-11-10 01:59:12.741254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.742400"], ["updated_at", "2017-11-10 01:59:12.742400"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.745913"], ["updated_at", "2017-11-10 01:59:12.745913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 01:59:12.746898"], ["updated_at", "2017-11-10 01:59:12.746898"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.749813"], ["updated_at", "2017-11-10 01:59:12.749813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.756691"], ["updated_at", "2017-11-10 01:59:12.756691"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.758707"], ["updated_at", "2017-11-10 01:59:12.758707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.760056"], ["updated_at", "2017-11-10 01:59:12.760056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.765118"], ["updated_at", "2017-11-10 01:59:12.765118"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.766856"], ["updated_at", "2017-11-10 01:59:12.766856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.770941"], ["updated_at", "2017-11-10 01:59:12.770941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.772672"], ["updated_at", "2017-11-10 01:59:12.772672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.778473"], ["updated_at", "2017-11-10 01:59:12.778473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.781481"], ["updated_at", "2017-11-10 01:59:12.781481"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.782203"], ["updated_at", "2017-11-10 01:59:12.782203"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 3))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 01:59:12.783860"], ["updated_at", "2017-11-10 01:59:12.783860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 01:59:12.784705"], ["updated_at", "2017-11-10 01:59:12.784705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 4], ["test_another_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 01:59:12.786375"], ["updated_at", "2017-11-10 01:59:12.786375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 01:59:12.787129"], ["updated_at", "2017-11-10 01:59:12.787129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 6], ["test_another_model_id", 7]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 6]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 6]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.793587"], ["updated_at", "2017-11-10 01:59:12.793587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.797115"], ["updated_at", "2017-11-10 01:59:12.797115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.797840"], ["updated_at", "2017-11-10 01:59:12.797840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.798523"], ["updated_at", "2017-11-10 01:59:12.798523"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.800963"], ["updated_at", "2017-11-10 01:59:12.800963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.806731"], ["updated_at", "2017-11-10 01:59:12.806731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.813179"], ["updated_at", "2017-11-10 01:59:12.813179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.815029"], ["updated_at", "2017-11-10 01:59:12.815029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.872705"], ["updated_at", "2017-11-10 01:59:12.872705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.878124"], ["updated_at", "2017-11-10 01:59:12.878124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.880884"], ["updated_at", "2017-11-10 01:59:12.880884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 01:59:12.885844"], ["updated_at", "2017-11-10 01:59:12.885844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 01:59:12.895960"], ["updated_at", "2017-11-10 01:59:12.895960"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 01:59:12.899252"], ["updated_at", "2017-11-10 01:59:12.899252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 01:59:12.900229"], ["updated_at", "2017-11-10 01:59:12.900229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:01:32.221498"], ["updated_at", "2017-11-10 02:01:32.221498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:01:32.222713"], ["updated_at", "2017-11-10 02:01:32.222713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.301460"], ["updated_at", "2017-11-10 02:01:32.301460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.315494"], ["updated_at", "2017-11-10 02:01:32.315494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.322148"], ["updated_at", "2017-11-10 02:01:32.322148"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.324976"], ["updated_at", "2017-11-10 02:01:32.324976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:01:32.333491"], ["updated_at", "2017-11-10 02:01:32.333491"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.411894"], ["updated_at", "2017-11-10 02:01:32.411894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.3ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.417129"], ["updated_at", "2017-11-10 02:01:32.417129"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.418335"], ["updated_at", "2017-11-10 02:01:32.418335"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:01:32.433688"], ["updated_at", "2017-11-10 02:01:32.433688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.444292"], ["updated_at", "2017-11-10 02:01:32.444292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.445424"], ["updated_at", "2017-11-10 02:01:32.445424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.455120"], ["updated_at", "2017-11-10 02:01:32.455120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.456296"], ["updated_at", "2017-11-10 02:01:32.456296"]]  (0.2ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.458407"], ["updated_at", "2017-11-10 02:01:32.458407"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.459346"], ["updated_at", "2017-11-10 02:01:32.459346"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.466819"], ["updated_at", "2017-11-10 02:01:32.466819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.467876"], ["updated_at", "2017-11-10 02:01:32.467876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.468672"], ["updated_at", "2017-11-10 02:01:32.468672"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.481011"], ["updated_at", "2017-11-10 02:01:32.481011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.482265"], ["updated_at", "2017-11-10 02:01:32.482265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.491146"], ["updated_at", "2017-11-10 02:01:32.491146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.491937"], ["updated_at", "2017-11-10 02:01:32.491937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.492631"], ["updated_at", "2017-11-10 02:01:32.492631"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:01:32.494946"], ["updated_at", "2017-11-10 02:01:32.494946"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:01:32.496148"], ["updated_at", "2017-11-10 02:01:32.496148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:01:32.499080"], ["updated_at", "2017-11-10 02:01:32.499080"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:01:32.500098"], ["updated_at", "2017-11-10 02:01:32.500098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.503547"], ["updated_at", "2017-11-10 02:01:32.503547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.504272"], ["updated_at", "2017-11-10 02:01:32.504272"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.508256"], ["updated_at", "2017-11-10 02:01:32.508256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.509021"], ["updated_at", "2017-11-10 02:01:32.509021"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:01:32.511176"], ["updated_at", "2017-11-10 02:01:32.511176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:01:32.511965"], ["updated_at", "2017-11-10 02:01:32.511965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.512919"], ["updated_at", "2017-11-10 02:01:32.512919"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.514881"], ["updated_at", "2017-11-10 02:01:32.514881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.515649"], ["updated_at", "2017-11-10 02:01:32.515649"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.517691"], ["updated_at", "2017-11-10 02:01:32.517691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:01:32.518457"], ["updated_at", "2017-11-10 02:01:32.518457"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.521360"], ["updated_at", "2017-11-10 02:01:32.521360"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.526697"], ["updated_at", "2017-11-10 02:01:32.526697"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.528663"], ["updated_at", "2017-11-10 02:01:32.528663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.531337"], ["updated_at", "2017-11-10 02:01:32.531337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.534722"], ["updated_at", "2017-11-10 02:01:32.534722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.536876"], ["updated_at", "2017-11-10 02:01:32.536876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.539814"], ["updated_at", "2017-11-10 02:01:32.539814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.540518"], ["updated_at", "2017-11-10 02:01:32.540518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.542286"], ["updated_at", "2017-11-10 02:01:32.542286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:01:32.546179"], ["updated_at", "2017-11-10 02:01:32.546179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 02:01:32.547599"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:01:32.548962"], ["updated_at", "2017-11-10 02:01:32.548962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:01:32.549952"], ["updated_at", "2017-11-10 02:01:32.549952"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:01:32.553318"], ["updated_at", "2017-11-10 02:01:32.553318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:01:32.554067"], ["updated_at", "2017-11-10 02:01:32.554067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:01:32.555884"], ["updated_at", "2017-11-10 02:01:32.555884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:01:32.556758"], ["updated_at", "2017-11-10 02:01:32.556758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.562504"], ["updated_at", "2017-11-10 02:01:32.562504"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.564932"], ["updated_at", "2017-11-10 02:01:32.564932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:01:32.568946"], ["updated_at", "2017-11-10 02:01:32.568946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:01:32.571381"], ["updated_at", "2017-11-10 02:01:32.571381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.579520"], ["updated_at", "2017-11-10 02:01:32.579520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:01:32.585654"], ["updated_at", "2017-11-10 02:01:32.585654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.592162"], ["updated_at", "2017-11-10 02:01:32.592162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.593005"], ["updated_at", "2017-11-10 02:01:32.593005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.594895"], ["updated_at", "2017-11-10 02:01:32.594895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.609219"], ["updated_at", "2017-11-10 02:01:32.609219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.611028"], ["updated_at", "2017-11-10 02:01:32.611028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.614727"], ["updated_at", "2017-11-10 02:01:32.614727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.619696"], ["updated_at", "2017-11-10 02:01:32.619696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.623043"], ["updated_at", "2017-11-10 02:01:32.623043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.628051"], ["updated_at", "2017-11-10 02:01:32.628051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.638230"], ["updated_at", "2017-11-10 02:01:32.638230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.642817"], ["updated_at", "2017-11-10 02:01:32.642817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.643623"], ["updated_at", "2017-11-10 02:01:32.643623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.648862"], ["updated_at", "2017-11-10 02:01:32.648862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.652490"], ["updated_at", "2017-11-10 02:01:32.652490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.657350"], ["updated_at", "2017-11-10 02:01:32.657350"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.659065"], ["updated_at", "2017-11-10 02:01:32.659065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.659884"], ["updated_at", "2017-11-10 02:01:32.659884"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.661990"], ["updated_at", "2017-11-10 02:01:32.661990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.662765"], ["updated_at", "2017-11-10 02:01:32.662765"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.668394"], ["updated_at", "2017-11-10 02:01:32.668394"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:01:32.669422"], ["updated_at", "2017-11-10 02:01:32.669422"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (8.5ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:35.963749"], ["updated_at", "2017-11-10 02:03:35.963749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:35.966521"], ["updated_at", "2017-11-10 02:03:35.966521"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:35.986057"], ["updated_at", "2017-11-10 02:03:35.986057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:03:35.999167"], ["updated_at", "2017-11-10 02:03:35.999167"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:03:36.000244"], ["updated_at", "2017-11-10 02:03:36.000244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:03:36.002635"], ["updated_at", "2017-11-10 02:03:36.002635"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:03:36.003591"], ["updated_at", "2017-11-10 02:03:36.003591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.012306"], ["updated_at", "2017-11-10 02:03:36.012306"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.014901"], ["updated_at", "2017-11-10 02:03:36.014901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:03:36.040770"], ["updated_at", "2017-11-10 02:03:36.040770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.046367"], ["updated_at", "2017-11-10 02:03:36.046367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.049372"], ["updated_at", "2017-11-10 02:03:36.049372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.056507"], ["updated_at", "2017-11-10 02:03:36.056507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.057469"], ["updated_at", "2017-11-10 02:03:36.057469"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.060292"], ["updated_at", "2017-11-10 02:03:36.060292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.062744"], ["updated_at", "2017-11-10 02:03:36.062744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.067118"], ["updated_at", "2017-11-10 02:03:36.067118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.068212"], ["updated_at", "2017-11-10 02:03:36.068212"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.070792"], ["updated_at", "2017-11-10 02:03:36.070792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.073217"], ["updated_at", "2017-11-10 02:03:36.073217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:03:36.077019"], ["updated_at", "2017-11-10 02:03:36.077019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:03:36.078166"], ["updated_at", "2017-11-10 02:03:36.078166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:03:36.080515"], ["updated_at", "2017-11-10 02:03:36.080515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:03:36.082122"], ["updated_at", "2017-11-10 02:03:36.082122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.089590"], ["updated_at", "2017-11-10 02:03:36.089590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.096076"], ["updated_at", "2017-11-10 02:03:36.096076"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.100954"], ["updated_at", "2017-11-10 02:03:36.100954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.101846"], ["updated_at", "2017-11-10 02:03:36.101846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.102655"], ["updated_at", "2017-11-10 02:03:36.102655"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.105608"], ["updated_at", "2017-11-10 02:03:36.105608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.116681"], ["updated_at", "2017-11-10 02:03:36.116681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.117618"], ["updated_at", "2017-11-10 02:03:36.117618"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.120322"], ["updated_at", "2017-11-10 02:03:36.120322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.121201"], ["updated_at", "2017-11-10 02:03:36.121201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (6.9ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.138437"], ["updated_at", "2017-11-10 02:03:36.138437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.139301"], ["updated_at", "2017-11-10 02:03:36.139301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.144057"], ["updated_at", "2017-11-10 02:03:36.144057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.145827"], ["updated_at", "2017-11-10 02:03:36.145827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.147794"], ["updated_at", "2017-11-10 02:03:36.147794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:03:36.153473"], ["updated_at", "2017-11-10 02:03:36.153473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:03:36.155142"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:03:36.156550"], ["updated_at", "2017-11-10 02:03:36.156550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:03:36.157324"], ["updated_at", "2017-11-10 02:03:36.157324"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.160829"], ["updated_at", "2017-11-10 02:03:36.160829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.161667"], ["updated_at", "2017-11-10 02:03:36.161667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.167333"], ["updated_at", "2017-11-10 02:03:36.167333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.173002"], ["updated_at", "2017-11-10 02:03:36.173002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.179392"], ["updated_at", "2017-11-10 02:03:36.179392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.184526"], ["updated_at", "2017-11-10 02:03:36.184526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:03:36.185475"], ["updated_at", "2017-11-10 02:03:36.185475"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.188255"], ["updated_at", "2017-11-10 02:03:36.188255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.189047"], ["updated_at", "2017-11-10 02:03:36.189047"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.191015"], ["updated_at", "2017-11-10 02:03:36.191015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.191778"], ["updated_at", "2017-11-10 02:03:36.191778"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.193917"], ["updated_at", "2017-11-10 02:03:36.193917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.194593"], ["updated_at", "2017-11-10 02:03:36.194593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.196403"], ["updated_at", "2017-11-10 02:03:36.196403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.200080"], ["updated_at", "2017-11-10 02:03:36.200080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.203521"], ["updated_at", "2017-11-10 02:03:36.203521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.204425"], ["updated_at", "2017-11-10 02:03:36.204425"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:03:36.206318"], ["updated_at", "2017-11-10 02:03:36.206318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:03:36.207073"], ["updated_at", "2017-11-10 02:03:36.207073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.207863"], ["updated_at", "2017-11-10 02:03:36.207863"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.209859"], ["updated_at", "2017-11-10 02:03:36.209859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.210694"], ["updated_at", "2017-11-10 02:03:36.210694"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.219518"], ["updated_at", "2017-11-10 02:03:36.219518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.220338"], ["updated_at", "2017-11-10 02:03:36.220338"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:03:36.222540"], ["updated_at", "2017-11-10 02:03:36.222540"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:03:36.224707"], ["updated_at", "2017-11-10 02:03:36.224707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.244722"], ["updated_at", "2017-11-10 02:03:36.244722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.245533"], ["updated_at", "2017-11-10 02:03:36.245533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.246276"], ["updated_at", "2017-11-10 02:03:36.246276"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.249070"], ["updated_at", "2017-11-10 02:03:36.249070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.251919"], ["updated_at", "2017-11-10 02:03:36.251919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:03:36.256878"], ["updated_at", "2017-11-10 02:03:36.256878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.267105"], ["updated_at", "2017-11-10 02:03:36.267105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.268072"], ["updated_at", "2017-11-10 02:03:36.268072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:03:36.332159"], ["updated_at", "2017-11-10 02:03:36.332159"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:03:36.351016"], ["updated_at", "2017-11-10 02:03:36.351016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:03:36.351822"], ["updated_at", "2017-11-10 02:03:36.351822"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.389210"], ["updated_at", "2017-11-10 02:03:36.389210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.394260"], ["updated_at", "2017-11-10 02:03:36.394260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.396730"], ["updated_at", "2017-11-10 02:03:36.396730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:36.402174"], ["updated_at", "2017-11-10 02:03:36.402174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.380720"], ["updated_at", "2017-11-10 02:03:44.380720"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.406315"], ["updated_at", "2017-11-10 02:03:44.406315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.411892"], ["updated_at", "2017-11-10 02:03:44.411892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:03:44.412695"], ["updated_at", "2017-11-10 02:03:44.412695"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.422419"], ["updated_at", "2017-11-10 02:03:44.422419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.423735"], ["updated_at", "2017-11-10 02:03:44.423735"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.426192"], ["updated_at", "2017-11-10 02:03:44.426192"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.443983"], ["updated_at", "2017-11-10 02:03:44.443983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.450284"], ["updated_at", "2017-11-10 02:03:44.450284"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.451561"], ["updated_at", "2017-11-10 02:03:44.451561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.452453"], ["updated_at", "2017-11-10 02:03:44.452453"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.469605"], ["updated_at", "2017-11-10 02:03:44.469605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:03:44.475579"], ["updated_at", "2017-11-10 02:03:44.475579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:03:44.476554"], ["updated_at", "2017-11-10 02:03:44.476554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:03:44.478457"], ["updated_at", "2017-11-10 02:03:44.478457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:03:44.479410"], ["updated_at", "2017-11-10 02:03:44.479410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.489029"], ["updated_at", "2017-11-10 02:03:44.489029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.490360"], ["updated_at", "2017-11-10 02:03:44.490360"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:03:44.492959"], ["updated_at", "2017-11-10 02:03:44.492959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:03:44.493881"], ["updated_at", "2017-11-10 02:03:44.493881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:03:44.496050"], ["updated_at", "2017-11-10 02:03:44.496050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:03:44.496986"], ["updated_at", "2017-11-10 02:03:44.496986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.501511"], ["updated_at", "2017-11-10 02:03:44.501511"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.502441"], ["updated_at", "2017-11-10 02:03:44.502441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.515913"], ["updated_at", "2017-11-10 02:03:44.515913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.517234"], ["updated_at", "2017-11-10 02:03:44.517234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.529714"], ["updated_at", "2017-11-10 02:03:44.529714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.534037"], ["updated_at", "2017-11-10 02:03:44.534037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.535158"], ["updated_at", "2017-11-10 02:03:44.535158"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:03:44.539602"], ["updated_at", "2017-11-10 02:03:44.539602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:03:44.541129"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:03:44.542369"], ["updated_at", "2017-11-10 02:03:44.542369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:03:44.543131"], ["updated_at", "2017-11-10 02:03:44.543131"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.546238"], ["updated_at", "2017-11-10 02:03:44.546238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.546937"], ["updated_at", "2017-11-10 02:03:44.546937"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.548431"], ["updated_at", "2017-11-10 02:03:44.548431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.549437"], ["updated_at", "2017-11-10 02:03:44.549437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.550479"], ["updated_at", "2017-11-10 02:03:44.550479"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.553108"], ["updated_at", "2017-11-10 02:03:44.553108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.553844"], ["updated_at", "2017-11-10 02:03:44.553844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.558429"], ["updated_at", "2017-11-10 02:03:44.558429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.563087"], ["updated_at", "2017-11-10 02:03:44.563087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.565485"], ["updated_at", "2017-11-10 02:03:44.565485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.571318"], ["updated_at", "2017-11-10 02:03:44.571318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.572089"], ["updated_at", "2017-11-10 02:03:44.572089"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:03:44.575988"], ["updated_at", "2017-11-10 02:03:44.575988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.586120"], ["updated_at", "2017-11-10 02:03:44.586120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.587004"], ["updated_at", "2017-11-10 02:03:44.587004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.588808"], ["updated_at", "2017-11-10 02:03:44.588808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.591894"], ["updated_at", "2017-11-10 02:03:44.591894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.593640"], ["updated_at", "2017-11-10 02:03:44.593640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.595305"], ["updated_at", "2017-11-10 02:03:44.595305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.599148"], ["updated_at", "2017-11-10 02:03:44.599148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.606781"], ["updated_at", "2017-11-10 02:03:44.606781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.612865"], ["updated_at", "2017-11-10 02:03:44.612865"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.617589"], ["updated_at", "2017-11-10 02:03:44.617589"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.621270"], ["updated_at", "2017-11-10 02:03:44.621270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.623050"], ["updated_at", "2017-11-10 02:03:44.623050"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:03:44.626337"], ["updated_at", "2017-11-10 02:03:44.626337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:03:44.627136"], ["updated_at", "2017-11-10 02:03:44.627136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.627798"], ["updated_at", "2017-11-10 02:03:44.627798"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.629387"], ["updated_at", "2017-11-10 02:03:44.629387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.630062"], ["updated_at", "2017-11-10 02:03:44.630062"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:03:44.635890"], ["updated_at", "2017-11-10 02:03:44.635890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:03:44.640392"], ["updated_at", "2017-11-10 02:03:44.640392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:03:44.642452"], ["updated_at", "2017-11-10 02:03:44.642452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.650921"], ["updated_at", "2017-11-10 02:03:44.650921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.652061"], ["updated_at", "2017-11-10 02:03:44.652061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.660309"], ["updated_at", "2017-11-10 02:03:44.660309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.661046"], ["updated_at", "2017-11-10 02:03:44.661046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.662711"], ["updated_at", "2017-11-10 02:03:44.662711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.669516"], ["updated_at", "2017-11-10 02:03:44.669516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.671452"], ["updated_at", "2017-11-10 02:03:44.671452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.674553"], ["updated_at", "2017-11-10 02:03:44.674553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.675362"], ["updated_at", "2017-11-10 02:03:44.675362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.686337"], ["updated_at", "2017-11-10 02:03:44.686337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.687206"], ["updated_at", "2017-11-10 02:03:44.687206"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:03:44.765128"], ["updated_at", "2017-11-10 02:03:44.765128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:03:44.766321"], ["updated_at", "2017-11-10 02:03:44.766321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.0ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:03:44.790546"], ["updated_at", "2017-11-10 02:03:44.790546"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.804213"], ["updated_at", "2017-11-10 02:03:44.804213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.813418"], ["updated_at", "2017-11-10 02:03:44.813418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.819155"], ["updated_at", "2017-11-10 02:03:44.819155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:44.821417"], ["updated_at", "2017-11-10 02:03:44.821417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:49.850437"], ["updated_at", "2017-11-10 02:03:49.850437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:03:49.867444"], ["updated_at", "2017-11-10 02:03:49.867444"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:49.880013"], ["updated_at", "2017-11-10 02:03:49.880013"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.4ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:49.887170"], ["updated_at", "2017-11-10 02:03:49.887170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:49.890566"], ["updated_at", "2017-11-10 02:03:49.890566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.3ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:03:49.903405"], ["updated_at", "2017-11-10 02:03:49.903405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:03:49.904520"], ["updated_at", "2017-11-10 02:03:49.904520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.046315"], ["updated_at", "2017-11-10 02:03:50.046315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.052663"], ["updated_at", "2017-11-10 02:03:50.052663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.053654"], ["updated_at", "2017-11-10 02:03:50.053654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.054469"], ["updated_at", "2017-11-10 02:03:50.054469"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.057496"], ["updated_at", "2017-11-10 02:03:50.057496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.065836"], ["updated_at", "2017-11-10 02:03:50.065836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.067022"], ["updated_at", "2017-11-10 02:03:50.067022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.069527"], ["updated_at", "2017-11-10 02:03:50.069527"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.073576"], ["updated_at", "2017-11-10 02:03:50.073576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:03:50.079730"], ["updated_at", "2017-11-10 02:03:50.079730"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:03:50.080847"], ["updated_at", "2017-11-10 02:03:50.080847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:03:50.083352"], ["updated_at", "2017-11-10 02:03:50.083352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:03:50.084585"], ["updated_at", "2017-11-10 02:03:50.084585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:03:50.093256"], ["updated_at", "2017-11-10 02:03:50.093256"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:03:50.094651"], ["updated_at", "2017-11-10 02:03:50.094651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:03:50.096698"], ["updated_at", "2017-11-10 02:03:50.096698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:03:50.097657"], ["updated_at", "2017-11-10 02:03:50.097657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:03:50.102168"], ["updated_at", "2017-11-10 02:03:50.102168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (7.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:03:50.111644"], ["updated_at", "2017-11-10 02:03:50.111644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.119572"], ["updated_at", "2017-11-10 02:03:50.119572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.120404"], ["updated_at", "2017-11-10 02:03:50.120404"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:03:50.125126"], ["updated_at", "2017-11-10 02:03:50.125126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.136285"], ["updated_at", "2017-11-10 02:03:50.136285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.138310"], ["updated_at", "2017-11-10 02:03:50.138310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.144778"], ["updated_at", "2017-11-10 02:03:50.144778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.145605"], ["updated_at", "2017-11-10 02:03:50.145605"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.147449"], ["updated_at", "2017-11-10 02:03:50.147449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.148158"], ["updated_at", "2017-11-10 02:03:50.148158"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.153122"], ["updated_at", "2017-11-10 02:03:50.153122"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.155192"], ["updated_at", "2017-11-10 02:03:50.155192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.161108"], ["updated_at", "2017-11-10 02:03:50.161108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.161866"], ["updated_at", "2017-11-10 02:03:50.161866"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.163368"], ["updated_at", "2017-11-10 02:03:50.163368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.168614"], ["updated_at", "2017-11-10 02:03:50.168614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.172762"], ["updated_at", "2017-11-10 02:03:50.172762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.173554"], ["updated_at", "2017-11-10 02:03:50.173554"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.182592"], ["updated_at", "2017-11-10 02:03:50.182592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.183750"], ["updated_at", "2017-11-10 02:03:50.183750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.184481"], ["updated_at", "2017-11-10 02:03:50.184481"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.187700"], ["updated_at", "2017-11-10 02:03:50.187700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.193098"], ["updated_at", "2017-11-10 02:03:50.193098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.198017"], ["updated_at", "2017-11-10 02:03:50.198017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.203573"], ["updated_at", "2017-11-10 02:03:50.203573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.205426"], ["updated_at", "2017-11-10 02:03:50.205426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.207135"], ["updated_at", "2017-11-10 02:03:50.207135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.221455"], ["updated_at", "2017-11-10 02:03:50.221455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.222259"], ["updated_at", "2017-11-10 02:03:50.222259"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:03:50.227129"], ["updated_at", "2017-11-10 02:03:50.227129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.231106"], ["updated_at", "2017-11-10 02:03:50.231106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.232042"], ["updated_at", "2017-11-10 02:03:50.232042"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.235342"], ["updated_at", "2017-11-10 02:03:50.235342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:03:50.236384"], ["updated_at", "2017-11-10 02:03:50.236384"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.238644"], ["updated_at", "2017-11-10 02:03:50.238644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.239376"], ["updated_at", "2017-11-10 02:03:50.239376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.245698"], ["updated_at", "2017-11-10 02:03:50.245698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.246468"], ["updated_at", "2017-11-10 02:03:50.246468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.265945"], ["updated_at", "2017-11-10 02:03:50.265945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.268149"], ["updated_at", "2017-11-10 02:03:50.268149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.271261"], ["updated_at", "2017-11-10 02:03:50.271261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.272387"], ["updated_at", "2017-11-10 02:03:50.272387"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.274485"], ["updated_at", "2017-11-10 02:03:50.274485"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.276915"], ["updated_at", "2017-11-10 02:03:50.276915"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.280161"], ["updated_at", "2017-11-10 02:03:50.280161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.281112"], ["updated_at", "2017-11-10 02:03:50.281112"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.283701"], ["updated_at", "2017-11-10 02:03:50.283701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.284817"], ["updated_at", "2017-11-10 02:03:50.284817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:03:50.289614"], ["updated_at", "2017-11-10 02:03:50.289614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:03:50.290408"], ["updated_at", "2017-11-10 02:03:50.290408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.291093"], ["updated_at", "2017-11-10 02:03:50.291093"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:03:50.293905"], ["updated_at", "2017-11-10 02:03:50.293905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 02:03:50.294999"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:03:50.295948"], ["updated_at", "2017-11-10 02:03:50.295948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:03:50.296694"], ["updated_at", "2017-11-10 02:03:50.296694"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.300684"], ["updated_at", "2017-11-10 02:03:50.300684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.301578"], ["updated_at", "2017-11-10 02:03:50.301578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.303372"], ["updated_at", "2017-11-10 02:03:50.303372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:50.307875"], ["updated_at", "2017-11-10 02:03:50.307875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.823407"], ["updated_at", "2017-11-10 02:03:56.823407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.841712"], ["updated_at", "2017-11-10 02:03:56.841712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.844104"], ["updated_at", "2017-11-10 02:03:56.844104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.849039"], ["updated_at", "2017-11-10 02:03:56.849039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:03:56.854059"], ["updated_at", "2017-11-10 02:03:56.854059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:03:56.854864"], ["updated_at", "2017-11-10 02:03:56.854864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:03:56.873768"], ["updated_at", "2017-11-10 02:03:56.873768"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.941243"], ["updated_at", "2017-11-10 02:03:56.941243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.943407"], ["updated_at", "2017-11-10 02:03:56.943407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.946562"], ["updated_at", "2017-11-10 02:03:56.946562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:03:56.955217"], ["updated_at", "2017-11-10 02:03:56.955217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.959139"], ["updated_at", "2017-11-10 02:03:56.959139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.961672"], ["updated_at", "2017-11-10 02:03:56.961672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.963808"], ["updated_at", "2017-11-10 02:03:56.963808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.967683"], ["updated_at", "2017-11-10 02:03:56.967683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.968705"], ["updated_at", "2017-11-10 02:03:56.968705"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.971320"], ["updated_at", "2017-11-10 02:03:56.971320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:03:56.975201"], ["updated_at", "2017-11-10 02:03:56.975201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:03:56.977059"], ["updated_at", "2017-11-10 02:03:56.977059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.985259"], ["updated_at", "2017-11-10 02:03:56.985259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.989550"], ["updated_at", "2017-11-10 02:03:56.989550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.992125"], ["updated_at", "2017-11-10 02:03:56.992125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.992822"], ["updated_at", "2017-11-10 02:03:56.992822"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.994741"], ["updated_at", "2017-11-10 02:03:56.994741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.995463"], ["updated_at", "2017-11-10 02:03:56.995463"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.997899"], ["updated_at", "2017-11-10 02:03:56.997899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:56.998658"], ["updated_at", "2017-11-10 02:03:56.998658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 2) OR ("test_attrs_test_models_2"."id" = 2))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.005195"], ["updated_at", "2017-11-10 02:03:57.005195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 4)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 4)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.009535"], ["updated_at", "2017-11-10 02:03:57.009535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.010263"], ["updated_at", "2017-11-10 02:03:57.010263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.019963"], ["updated_at", "2017-11-10 02:03:57.019963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.024674"], ["updated_at", "2017-11-10 02:03:57.024674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.030225"], ["updated_at", "2017-11-10 02:03:57.030225"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.031096"], ["updated_at", "2017-11-10 02:03:57.031096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.041535"], ["updated_at", "2017-11-10 02:03:57.041535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.042424"], ["updated_at", "2017-11-10 02:03:57.042424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.044296"], ["updated_at", "2017-11-10 02:03:57.044296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.047520"], ["updated_at", "2017-11-10 02:03:57.047520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.048349"], ["updated_at", "2017-11-10 02:03:57.048349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.049179"], ["updated_at", "2017-11-10 02:03:57.049179"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.056351"], ["updated_at", "2017-11-10 02:03:57.056351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.059726"], ["updated_at", "2017-11-10 02:03:57.059726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.060543"], ["updated_at", "2017-11-10 02:03:57.060543"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.062728"], ["updated_at", "2017-11-10 02:03:57.062728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.063517"], ["updated_at", "2017-11-10 02:03:57.063517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.064216"], ["updated_at", "2017-11-10 02:03:57.064216"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:03:57.067421"], ["updated_at", "2017-11-10 02:03:57.067421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:03:57.068442"], ["updated_at", "2017-11-10 02:03:57.068442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:03:57.072886"], ["updated_at", "2017-11-10 02:03:57.072886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:03:57.073656"], ["updated_at", "2017-11-10 02:03:57.073656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.079498"], ["updated_at", "2017-11-10 02:03:57.079498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.080347"], ["updated_at", "2017-11-10 02:03:57.080347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.082484"], ["updated_at", "2017-11-10 02:03:57.082484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.088257"], ["updated_at", "2017-11-10 02:03:57.088257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.089144"], ["updated_at", "2017-11-10 02:03:57.089144"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:03:57.102349"], ["updated_at", "2017-11-10 02:03:57.102349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.122496"], ["updated_at", "2017-11-10 02:03:57.122496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.123216"], ["updated_at", "2017-11-10 02:03:57.123216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.128649"], ["updated_at", "2017-11-10 02:03:57.128649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:03:57.129553"], ["updated_at", "2017-11-10 02:03:57.129553"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.131972"], ["updated_at", "2017-11-10 02:03:57.131972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.137349"], ["updated_at", "2017-11-10 02:03:57.137349"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.139123"], ["updated_at", "2017-11-10 02:03:57.139123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.140910"], ["updated_at", "2017-11-10 02:03:57.140910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.146626"], ["updated_at", "2017-11-10 02:03:57.146626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:03:57.151407"], ["updated_at", "2017-11-10 02:03:57.151407"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:03:57.152770"], ["updated_at", "2017-11-10 02:03:57.152770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.153577"], ["updated_at", "2017-11-10 02:03:57.153577"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.155316"], ["updated_at", "2017-11-10 02:03:57.155316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.155968"], ["updated_at", "2017-11-10 02:03:57.155968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.160383"], ["updated_at", "2017-11-10 02:03:57.160383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.161109"], ["updated_at", "2017-11-10 02:03:57.161109"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:03:57.163294"], ["updated_at", "2017-11-10 02:03:57.163294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 02:03:57.164285"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:03:57.165144"], ["updated_at", "2017-11-10 02:03:57.165144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:03:57.165885"], ["updated_at", "2017-11-10 02:03:57.165885"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.169247"], ["updated_at", "2017-11-10 02:03:57.169247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.171166"], ["updated_at", "2017-11-10 02:03:57.171166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.173977"], ["updated_at", "2017-11-10 02:03:57.173977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:03:57.174719"], ["updated_at", "2017-11-10 02:03:57.174719"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:03:57.176421"], ["updated_at", "2017-11-10 02:03:57.176421"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:03:57.177247"], ["updated_at", "2017-11-10 02:03:57.177247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:03:57.178922"], ["updated_at", "2017-11-10 02:03:57.178922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:03:57.179829"], ["updated_at", "2017-11-10 02:03:57.179829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.253622"], ["updated_at", "2017-11-10 02:04:09.253622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.254717"], ["updated_at", "2017-11-10 02:04:09.254717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.255350"], ["updated_at", "2017-11-10 02:04:09.255350"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:04:09.258145"], ["updated_at", "2017-11-10 02:04:09.258145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:04:09.259158"], ["updated_at", "2017-11-10 02:04:09.259158"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.260244"], ["updated_at", "2017-11-10 02:04:09.260244"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.262304"], ["updated_at", "2017-11-10 02:04:09.262304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.263173"], ["updated_at", "2017-11-10 02:04:09.263173"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.293553"], ["updated_at", "2017-11-10 02:04:09.293553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:04:09.308736"], ["updated_at", "2017-11-10 02:04:09.308736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.325801"], ["updated_at", "2017-11-10 02:04:09.325801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.326867"], ["updated_at", "2017-11-10 02:04:09.326867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.332373"], ["updated_at", "2017-11-10 02:04:09.332373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.333316"], ["updated_at", "2017-11-10 02:04:09.333316"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.336736"], ["updated_at", "2017-11-10 02:04:09.336736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.339298"], ["updated_at", "2017-11-10 02:04:09.339298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (6.6ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.349088"], ["updated_at", "2017-11-10 02:04:09.349088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.349971"], ["updated_at", "2017-11-10 02:04:09.349971"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.353005"], ["updated_at", "2017-11-10 02:04:09.353005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.353991"], ["updated_at", "2017-11-10 02:04:09.353991"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.356525"], ["updated_at", "2017-11-10 02:04:09.356525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.358291"], ["updated_at", "2017-11-10 02:04:09.358291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.362266"], ["updated_at", "2017-11-10 02:04:09.362266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.370260"], ["updated_at", "2017-11-10 02:04:09.370260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.372359"], ["updated_at", "2017-11-10 02:04:09.372359"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.374159"], ["updated_at", "2017-11-10 02:04:09.374159"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.377385"], ["updated_at", "2017-11-10 02:04:09.377385"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.380576"], ["updated_at", "2017-11-10 02:04:09.380576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:04:09.396412"], ["updated_at", "2017-11-10 02:04:09.396412"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 02:04:09.397578"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:04:09.399079"], ["updated_at", "2017-11-10 02:04:09.399079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:04:09.399883"], ["updated_at", "2017-11-10 02:04:09.399883"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:04:09.405028"], ["updated_at", "2017-11-10 02:04:09.405028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:04:09.405940"], ["updated_at", "2017-11-10 02:04:09.405940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:04:09.407785"], ["updated_at", "2017-11-10 02:04:09.407785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:04:09.408611"], ["updated_at", "2017-11-10 02:04:09.408611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.414906"], ["updated_at", "2017-11-10 02:04:09.414906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.415675"], ["updated_at", "2017-11-10 02:04:09.415675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.416331"], ["updated_at", "2017-11-10 02:04:09.416331"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.419346"], ["updated_at", "2017-11-10 02:04:09.419346"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.420454"], ["updated_at", "2017-11-10 02:04:09.420454"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:04:09.428215"], ["updated_at", "2017-11-10 02:04:09.428215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.433312"], ["updated_at", "2017-11-10 02:04:09.433312"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.436883"], ["updated_at", "2017-11-10 02:04:09.436883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.440436"], ["updated_at", "2017-11-10 02:04:09.440436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.441319"], ["updated_at", "2017-11-10 02:04:09.441319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.448375"], ["updated_at", "2017-11-10 02:04:09.448375"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:04:09.449323"], ["updated_at", "2017-11-10 02:04:09.449323"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.452614"], ["updated_at", "2017-11-10 02:04:09.452614"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.454205"], ["updated_at", "2017-11-10 02:04:09.454205"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.457544"], ["updated_at", "2017-11-10 02:04:09.457544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.458455"], ["updated_at", "2017-11-10 02:04:09.458455"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:04:09.460470"], ["updated_at", "2017-11-10 02:04:09.460470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:04:09.461379"], ["updated_at", "2017-11-10 02:04:09.461379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:04:09.463287"], ["updated_at", "2017-11-10 02:04:09.463287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:04:09.464214"], ["updated_at", "2017-11-10 02:04:09.464214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.4ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:04:09.469363"], ["updated_at", "2017-11-10 02:04:09.469363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:04:09.472036"], ["updated_at", "2017-11-10 02:04:09.472036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.481776"], ["updated_at", "2017-11-10 02:04:09.481776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.482697"], ["updated_at", "2017-11-10 02:04:09.482697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.485433"], ["updated_at", "2017-11-10 02:04:09.485433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.489913"], ["updated_at", "2017-11-10 02:04:09.489913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.490830"], ["updated_at", "2017-11-10 02:04:09.490830"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.493080"], ["updated_at", "2017-11-10 02:04:09.493080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.506996"], ["updated_at", "2017-11-10 02:04:09.506996"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.509346"], ["updated_at", "2017-11-10 02:04:09.509346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.510112"], ["updated_at", "2017-11-10 02:04:09.510112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.514978"], ["updated_at", "2017-11-10 02:04:09.514978"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.515845"], ["updated_at", "2017-11-10 02:04:09.515845"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.518375"], ["updated_at", "2017-11-10 02:04:09.518375"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.532118"], ["updated_at", "2017-11-10 02:04:09.532118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.532943"], ["updated_at", "2017-11-10 02:04:09.532943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.543374"], ["updated_at", "2017-11-10 02:04:09.543374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.547386"], ["updated_at", "2017-11-10 02:04:09.547386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.553900"], ["updated_at", "2017-11-10 02:04:09.553900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.559484"], ["updated_at", "2017-11-10 02:04:09.559484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.562205"], ["updated_at", "2017-11-10 02:04:09.562205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:04:09.668947"], ["updated_at", "2017-11-10 02:04:09.668947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:04:09.669976"], ["updated_at", "2017-11-10 02:04:09.669976"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.685629"], ["updated_at", "2017-11-10 02:04:09.685629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.690664"], ["updated_at", "2017-11-10 02:04:09.690664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.693163"], ["updated_at", "2017-11-10 02:04:09.693163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:04:09.698128"], ["updated_at", "2017-11-10 02:04:09.698128"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:09.719925"], ["updated_at", "2017-11-10 02:04:09.719925"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:04:16.275279"], ["updated_at", "2017-11-10 02:04:16.275279"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.313273"], ["updated_at", "2017-11-10 02:04:16.313273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.323264"], ["updated_at", "2017-11-10 02:04:16.323264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.326375"], ["updated_at", "2017-11-10 02:04:16.326375"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.338706"], ["updated_at", "2017-11-10 02:04:16.338706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 9], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:04:16.383436"], ["updated_at", "2017-11-10 02:04:16.383436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:04:16.384491"], ["updated_at", "2017-11-10 02:04:16.384491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 10ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.448772"], ["updated_at", "2017-11-10 02:04:16.448772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.450858"], ["updated_at", "2017-11-10 02:04:16.450858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.453215"], ["updated_at", "2017-11-10 02:04:16.453215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.457501"], ["updated_at", "2017-11-10 02:04:16.457501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.461966"], ["updated_at", "2017-11-10 02:04:16.461966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.470628"], ["updated_at", "2017-11-10 02:04:16.470628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.471528"], ["updated_at", "2017-11-10 02:04:16.471528"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:04:16.474123"], ["updated_at", "2017-11-10 02:04:16.474123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:04:16.476363"], ["updated_at", "2017-11-10 02:04:16.476363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.484110"], ["updated_at", "2017-11-10 02:04:16.484110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:04:16.485021"], ["updated_at", "2017-11-10 02:04:16.485021"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:04:16.490893"], ["updated_at", "2017-11-10 02:04:16.490893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:04:16.491750"], ["updated_at", "2017-11-10 02:04:16.491750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:04:16.493631"], ["updated_at", "2017-11-10 02:04:16.493631"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:04:16.494492"], ["updated_at", "2017-11-10 02:04:16.494492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.498784"], ["updated_at", "2017-11-10 02:04:16.498784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.501588"], ["updated_at", "2017-11-10 02:04:16.501588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.502656"], ["updated_at", "2017-11-10 02:04:16.502656"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.506259"], ["updated_at", "2017-11-10 02:04:16.506259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.508553"], ["updated_at", "2017-11-10 02:04:16.508553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.511764"], ["updated_at", "2017-11-10 02:04:16.511764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.512470"], ["updated_at", "2017-11-10 02:04:16.512470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.514170"], ["updated_at", "2017-11-10 02:04:16.514170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:04:16.519789"], ["updated_at", "2017-11-10 02:04:16.519789"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.525716"], ["updated_at", "2017-11-10 02:04:16.525716"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.526612"], ["updated_at", "2017-11-10 02:04:16.526612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.527339"], ["updated_at", "2017-11-10 02:04:16.527339"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.529759"], ["updated_at", "2017-11-10 02:04:16.529759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.530515"], ["updated_at", "2017-11-10 02:04:16.530515"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.532725"], ["updated_at", "2017-11-10 02:04:16.532725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.533452"], ["updated_at", "2017-11-10 02:04:16.533452"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.534238"], ["updated_at", "2017-11-10 02:04:16.534238"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.536615"], ["updated_at", "2017-11-10 02:04:16.536615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.543028"], ["updated_at", "2017-11-10 02:04:16.543028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.543892"], ["updated_at", "2017-11-10 02:04:16.543892"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.545524"], ["updated_at", "2017-11-10 02:04:16.545524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.546218"], ["updated_at", "2017-11-10 02:04:16.546218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:04:16.552713"], ["updated_at", "2017-11-10 02:04:16.552713"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:04:16.554583"], ["updated_at", "2017-11-10 02:04:16.554583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.555405"], ["updated_at", "2017-11-10 02:04:16.555405"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.557204"], ["updated_at", "2017-11-10 02:04:16.557204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.557988"], ["updated_at", "2017-11-10 02:04:16.557988"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.559966"], ["updated_at", "2017-11-10 02:04:16.559966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.560673"], ["updated_at", "2017-11-10 02:04:16.560673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.562563"], ["updated_at", "2017-11-10 02:04:16.562563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.565687"], ["updated_at", "2017-11-10 02:04:16.565687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.568593"], ["updated_at", "2017-11-10 02:04:16.568593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.569549"], ["updated_at", "2017-11-10 02:04:16.569549"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 2) OR ("test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:04:16.573635"], ["updated_at", "2017-11-10 02:04:16.573635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:04:16.574585"], ["updated_at", "2017-11-10 02:04:16.574585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:04:16.576502"], ["updated_at", "2017-11-10 02:04:16.576502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:04:16.577357"], ["updated_at", "2017-11-10 02:04:16.577357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.590846"], ["updated_at", "2017-11-10 02:04:16.590846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.591872"], ["updated_at", "2017-11-10 02:04:16.591872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.609237"], ["updated_at", "2017-11-10 02:04:16.609237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.609997"], ["updated_at", "2017-11-10 02:04:16.609997"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.612947"], ["updated_at", "2017-11-10 02:04:16.612947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.617251"], ["updated_at", "2017-11-10 02:04:16.617251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.617987"], ["updated_at", "2017-11-10 02:04:16.617987"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.628674"], ["updated_at", "2017-11-10 02:04:16.628674"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.630749"], ["updated_at", "2017-11-10 02:04:16.630749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.631532"], ["updated_at", "2017-11-10 02:04:16.631532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.636680"], ["updated_at", "2017-11-10 02:04:16.636680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.639043"], ["updated_at", "2017-11-10 02:04:16.639043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.642013"], ["updated_at", "2017-11-10 02:04:16.642013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.646284"], ["updated_at", "2017-11-10 02:04:16.646284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:04:16.652887"], ["updated_at", "2017-11-10 02:04:16.652887"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.663660"], ["updated_at", "2017-11-10 02:04:16.663660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.667985"], ["updated_at", "2017-11-10 02:04:16.667985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.668892"], ["updated_at", "2017-11-10 02:04:16.668892"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:04:16.676039"], ["updated_at", "2017-11-10 02:04:16.676039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 02:04:16.677091"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:04:16.677909"], ["updated_at", "2017-11-10 02:04:16.677909"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:04:16.678711"], ["updated_at", "2017-11-10 02:04:16.678711"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.681829"], ["updated_at", "2017-11-10 02:04:16.681829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.687098"], ["updated_at", "2017-11-10 02:04:16.687098"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:16.690042"], ["updated_at", "2017-11-10 02:04:16.690042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:30.964534"], ["updated_at", "2017-11-10 02:04:30.964534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:30.971949"], ["updated_at", "2017-11-10 02:04:30.971949"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:30.975514"], ["updated_at", "2017-11-10 02:04:30.975514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:30.982175"], ["updated_at", "2017-11-10 02:04:30.982175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:04:30.989342"], ["updated_at", "2017-11-10 02:04:30.989342"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:04:30.990667"], ["updated_at", "2017-11-10 02:04:30.990667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:04:31.017505"], ["updated_at", "2017-11-10 02:04:31.017505"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 7], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.207254"], ["updated_at", "2017-11-10 02:04:31.207254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.209605"], ["updated_at", "2017-11-10 02:04:31.209605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.212722"], ["updated_at", "2017-11-10 02:04:31.212722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.214676"], ["updated_at", "2017-11-10 02:04:31.214676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.218448"], ["updated_at", "2017-11-10 02:04:31.218448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.219348"], ["updated_at", "2017-11-10 02:04:31.219348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.221507"], ["updated_at", "2017-11-10 02:04:31.221507"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.225426"], ["updated_at", "2017-11-10 02:04:31.225426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.226236"], ["updated_at", "2017-11-10 02:04:31.226236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.226976"], ["updated_at", "2017-11-10 02:04:31.226976"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.229469"], ["updated_at", "2017-11-10 02:04:31.229469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.231457"], ["updated_at", "2017-11-10 02:04:31.231457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.233317"], ["updated_at", "2017-11-10 02:04:31.233317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.236295"], ["updated_at", "2017-11-10 02:04:31.236295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.237045"], ["updated_at", "2017-11-10 02:04:31.237045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.243613"], ["updated_at", "2017-11-10 02:04:31.243613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.249815"], ["updated_at", "2017-11-10 02:04:31.249815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.250747"], ["updated_at", "2017-11-10 02:04:31.250747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.252702"], ["updated_at", "2017-11-10 02:04:31.252702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (2,3))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.255850"], ["updated_at", "2017-11-10 02:04:31.255850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.256800"], ["updated_at", "2017-11-10 02:04:31.256800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.257482"], ["updated_at", "2017-11-10 02:04:31.257482"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.260642"], ["updated_at", "2017-11-10 02:04:31.260642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.265093"], ["updated_at", "2017-11-10 02:04:31.265093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.265878"], ["updated_at", "2017-11-10 02:04:31.265878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.274903"], ["updated_at", "2017-11-10 02:04:31.274903"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.275761"], ["updated_at", "2017-11-10 02:04:31.275761"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.277612"], ["updated_at", "2017-11-10 02:04:31.277612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.278345"], ["updated_at", "2017-11-10 02:04:31.278345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.292052"], ["updated_at", "2017-11-10 02:04:31.292052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.292923"], ["updated_at", "2017-11-10 02:04:31.292923"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.295008"], ["updated_at", "2017-11-10 02:04:31.295008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.295810"], ["updated_at", "2017-11-10 02:04:31.295810"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.298277"], ["updated_at", "2017-11-10 02:04:31.298277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.299103"], ["updated_at", "2017-11-10 02:04:31.299103"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.301424"], ["updated_at", "2017-11-10 02:04:31.301424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.302280"], ["updated_at", "2017-11-10 02:04:31.302280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.309586"], ["updated_at", "2017-11-10 02:04:31.309586"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:04:31.316113"], ["updated_at", "2017-11-10 02:04:31.316113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:04:31.317661"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:04:31.318537"], ["updated_at", "2017-11-10 02:04:31.318537"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:04:31.319387"], ["updated_at", "2017-11-10 02:04:31.319387"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.323174"], ["updated_at", "2017-11-10 02:04:31.323174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.324106"], ["updated_at", "2017-11-10 02:04:31.324106"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.329173"], ["updated_at", "2017-11-10 02:04:31.329173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.329994"], ["updated_at", "2017-11-10 02:04:31.329994"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:04:31.331750"], ["updated_at", "2017-11-10 02:04:31.331750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:04:31.332554"], ["updated_at", "2017-11-10 02:04:31.332554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:04:31.334238"], ["updated_at", "2017-11-10 02:04:31.334238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:04:31.335026"], ["updated_at", "2017-11-10 02:04:31.335026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.338692"], ["updated_at", "2017-11-10 02:04:31.338692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.343413"], ["updated_at", "2017-11-10 02:04:31.343413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:04:31.344443"], ["updated_at", "2017-11-10 02:04:31.344443"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:04:31.347056"], ["updated_at", "2017-11-10 02:04:31.347056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:04:31.347928"], ["updated_at", "2017-11-10 02:04:31.347928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:04:31.349773"], ["updated_at", "2017-11-10 02:04:31.349773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:04:31.350676"], ["updated_at", "2017-11-10 02:04:31.350676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.360941"], ["updated_at", "2017-11-10 02:04:31.360941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.366133"], ["updated_at", "2017-11-10 02:04:31.366133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.370710"], ["updated_at", "2017-11-10 02:04:31.370710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.377264"], ["updated_at", "2017-11-10 02:04:31.377264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.379199"], ["updated_at", "2017-11-10 02:04:31.379199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.382363"], ["updated_at", "2017-11-10 02:04:31.382363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.387260"], ["updated_at", "2017-11-10 02:04:31.387260"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:04:31.393170"], ["updated_at", "2017-11-10 02:04:31.393170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:04:31.402708"], ["updated_at", "2017-11-10 02:04:31.402708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:04:31.404753"], ["updated_at", "2017-11-10 02:04:31.404753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.413687"], ["updated_at", "2017-11-10 02:04:31.413687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.417869"], ["updated_at", "2017-11-10 02:04:31.417869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.418596"], ["updated_at", "2017-11-10 02:04:31.418596"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.431803"], ["updated_at", "2017-11-10 02:04:31.431803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:04:31.435701"], ["updated_at", "2017-11-10 02:04:31.435701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:04:31.436508"], ["updated_at", "2017-11-10 02:04:31.436508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.437295"], ["updated_at", "2017-11-10 02:04:31.437295"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:04:31.441160"], ["updated_at", "2017-11-10 02:04:31.441160"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.450366"], ["updated_at", "2017-11-10 02:04:31.450366"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:31.451240"], ["updated_at", "2017-11-10 02:04:31.451240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.6ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:04:36.913089"], ["updated_at", "2017-11-10 02:04:36.913089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:04:36.929964"], ["updated_at", "2017-11-10 02:04:36.929964"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:04:36.936718"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:04:36.940155"], ["updated_at", "2017-11-10 02:04:36.940155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:04:36.941017"], ["updated_at", "2017-11-10 02:04:36.941017"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:36.944299"], ["updated_at", "2017-11-10 02:04:36.944299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:36.947782"], ["updated_at", "2017-11-10 02:04:36.947782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:04:36.955334"], ["updated_at", "2017-11-10 02:04:36.955334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:04:36.956262"], ["updated_at", "2017-11-10 02:04:36.956262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:04:36.958479"], ["updated_at", "2017-11-10 02:04:36.958479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:04:36.959252"], ["updated_at", "2017-11-10 02:04:36.959252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:36.980115"], ["updated_at", "2017-11-10 02:04:36.980115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:36.980891"], ["updated_at", "2017-11-10 02:04:36.980891"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:36.982710"], ["updated_at", "2017-11-10 02:04:36.982710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:36.986779"], ["updated_at", "2017-11-10 02:04:36.986779"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:36.988583"], ["updated_at", "2017-11-10 02:04:36.988583"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:36.989510"], ["updated_at", "2017-11-10 02:04:36.989510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:36.998542"], ["updated_at", "2017-11-10 02:04:36.998542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:36.999358"], ["updated_at", "2017-11-10 02:04:36.999358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.000154"], ["updated_at", "2017-11-10 02:04:37.000154"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.003295"], ["updated_at", "2017-11-10 02:04:37.003295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.004245"], ["updated_at", "2017-11-10 02:04:37.004245"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.006705"], ["updated_at", "2017-11-10 02:04:37.006705"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.012981"], ["updated_at", "2017-11-10 02:04:37.012981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.017572"], ["updated_at", "2017-11-10 02:04:37.017572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.018300"], ["updated_at", "2017-11-10 02:04:37.018300"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.019976"], ["updated_at", "2017-11-10 02:04:37.019976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.020665"], ["updated_at", "2017-11-10 02:04:37.020665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.027713"], ["updated_at", "2017-11-10 02:04:37.027713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.028493"], ["updated_at", "2017-11-10 02:04:37.028493"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.030704"], ["updated_at", "2017-11-10 02:04:37.030704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.031439"], ["updated_at", "2017-11-10 02:04:37.031439"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.033340"], ["updated_at", "2017-11-10 02:04:37.033340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.035471"], ["updated_at", "2017-11-10 02:04:37.035471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.039616"], ["updated_at", "2017-11-10 02:04:37.039616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.043630"], ["updated_at", "2017-11-10 02:04:37.043630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.050345"], ["updated_at", "2017-11-10 02:04:37.050345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.052445"], ["updated_at", "2017-11-10 02:04:37.052445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.054295"], ["updated_at", "2017-11-10 02:04:37.054295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.057734"], ["updated_at", "2017-11-10 02:04:37.057734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.062288"], ["updated_at", "2017-11-10 02:04:37.062288"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.063235"], ["updated_at", "2017-11-10 02:04:37.063235"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.068693"], ["updated_at", "2017-11-10 02:04:37.068693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.075229"], ["updated_at", "2017-11-10 02:04:37.075229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:04:37.081292"], ["updated_at", "2017-11-10 02:04:37.081292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:04:37.082276"], ["updated_at", "2017-11-10 02:04:37.082276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.083021"], ["updated_at", "2017-11-10 02:04:37.083021"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:04:37.084784"], ["updated_at", "2017-11-10 02:04:37.084784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:04:37.085592"], ["updated_at", "2017-11-10 02:04:37.085592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:04:37.087207"], ["updated_at", "2017-11-10 02:04:37.087207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:04:37.088190"], ["updated_at", "2017-11-10 02:04:37.088190"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.091737"], ["updated_at", "2017-11-10 02:04:37.091737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.092590"], ["updated_at", "2017-11-10 02:04:37.092590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (3.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.104378"], ["updated_at", "2017-11-10 02:04:37.104378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.105297"], ["updated_at", "2017-11-10 02:04:37.105297"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.107943"], ["updated_at", "2017-11-10 02:04:37.107943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.108671"], ["updated_at", "2017-11-10 02:04:37.108671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.110387"], ["updated_at", "2017-11-10 02:04:37.110387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.124111"], ["updated_at", "2017-11-10 02:04:37.124111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.124939"], ["updated_at", "2017-11-10 02:04:37.124939"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.127190"], ["updated_at", "2017-11-10 02:04:37.127190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.130638"], ["updated_at", "2017-11-10 02:04:37.130638"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.131367"], ["updated_at", "2017-11-10 02:04:37.131367"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:04:37.134245"], ["updated_at", "2017-11-10 02:04:37.134245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.143720"], ["updated_at", "2017-11-10 02:04:37.143720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.147186"], ["updated_at", "2017-11-10 02:04:37.147186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.149285"], ["updated_at", "2017-11-10 02:04:37.149285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.153388"], ["updated_at", "2017-11-10 02:04:37.153388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.158368"], ["updated_at", "2017-11-10 02:04:37.158368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.159206"], ["updated_at", "2017-11-10 02:04:37.159206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.159890"], ["updated_at", "2017-11-10 02:04:37.159890"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.161986"], ["updated_at", "2017-11-10 02:04:37.161986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:04:37.162779"], ["updated_at", "2017-11-10 02:04:37.162779"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.165174"], ["updated_at", "2017-11-10 02:04:37.165174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.166061"], ["updated_at", "2017-11-10 02:04:37.166061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:04:37.174991"], ["updated_at", "2017-11-10 02:04:37.174991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:04:37.177038"], ["updated_at", "2017-11-10 02:04:37.177038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.184949"], ["updated_at", "2017-11-10 02:04:37.184949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:04:37.206784"], ["updated_at", "2017-11-10 02:04:37.206784"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:04:37.226533"], ["updated_at", "2017-11-10 02:04:37.226533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:04:37.227306"], ["updated_at", "2017-11-10 02:04:37.227306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.239537"], ["updated_at", "2017-11-10 02:04:37.239537"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.247808"], ["updated_at", "2017-11-10 02:04:37.247808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:37.250289"], ["updated_at", "2017-11-10 02:04:37.250289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.846908"], ["updated_at", "2017-11-10 02:04:43.846908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.847960"], ["updated_at", "2017-11-10 02:04:43.847960"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.848759"], ["updated_at", "2017-11-10 02:04:43.848759"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.851343"], ["updated_at", "2017-11-10 02:04:43.851343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:04:43.852286"], ["updated_at", "2017-11-10 02:04:43.852286"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.855265"], ["updated_at", "2017-11-10 02:04:43.855265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.856161"], ["updated_at", "2017-11-10 02:04:43.856161"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.858196"], ["updated_at", "2017-11-10 02:04:43.858196"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.870952"], ["updated_at", "2017-11-10 02:04:43.870952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.871843"], ["updated_at", "2017-11-10 02:04:43.871843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.873813"], ["updated_at", "2017-11-10 02:04:43.873813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.877939"], ["updated_at", "2017-11-10 02:04:43.877939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.878807"], ["updated_at", "2017-11-10 02:04:43.878807"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:04:43.881735"], ["updated_at", "2017-11-10 02:04:43.881735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:04:43.882694"], ["updated_at", "2017-11-10 02:04:43.882694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:04:43.884839"], ["updated_at", "2017-11-10 02:04:43.884839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:04:43.886013"], ["updated_at", "2017-11-10 02:04:43.886013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.896202"], ["updated_at", "2017-11-10 02:04:43.896202"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.898646"], ["updated_at", "2017-11-10 02:04:43.898646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.901658"], ["updated_at", "2017-11-10 02:04:43.901658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.910697"], ["updated_at", "2017-11-10 02:04:43.910697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.915851"], ["updated_at", "2017-11-10 02:04:43.915851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.916737"], ["updated_at", "2017-11-10 02:04:43.916737"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:04:43.923846"], ["updated_at", "2017-11-10 02:04:43.923846"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.943976"], ["updated_at", "2017-11-10 02:04:43.943976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.945009"], ["updated_at", "2017-11-10 02:04:43.945009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:04:43.956109"], ["updated_at", "2017-11-10 02:04:43.956109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:04:43.957200"], ["updated_at", "2017-11-10 02:04:43.957200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.958155"], ["updated_at", "2017-11-10 02:04:43.958155"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.960531"], ["updated_at", "2017-11-10 02:04:43.960531"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:04:43.964243"], ["updated_at", "2017-11-10 02:04:43.964243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:04:43.965137"], ["updated_at", "2017-11-10 02:04:43.965137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:04:43.967087"], ["updated_at", "2017-11-10 02:04:43.967087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:04:43.967957"], ["updated_at", "2017-11-10 02:04:43.967957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.979067"], ["updated_at", "2017-11-10 02:04:43.979067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.979900"], ["updated_at", "2017-11-10 02:04:43.979900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.981810"], ["updated_at", "2017-11-10 02:04:43.981810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.992379"], ["updated_at", "2017-11-10 02:04:43.992379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.993343"], ["updated_at", "2017-11-10 02:04:43.993343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.994101"], ["updated_at", "2017-11-10 02:04:43.994101"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:43.996390"], ["updated_at", "2017-11-10 02:04:43.996390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.000224"], ["updated_at", "2017-11-10 02:04:44.000224"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.001152"], ["updated_at", "2017-11-10 02:04:44.001152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.006964"], ["updated_at", "2017-11-10 02:04:44.006964"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.010546"], ["updated_at", "2017-11-10 02:04:44.010546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.013351"], ["updated_at", "2017-11-10 02:04:44.013351"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.014902"], ["updated_at", "2017-11-10 02:04:44.014902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.015700"], ["updated_at", "2017-11-10 02:04:44.015700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 3]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 3)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:04:44.029693"], ["updated_at", "2017-11-10 02:04:44.029693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.033794"], ["updated_at", "2017-11-10 02:04:44.033794"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.034851"], ["updated_at", "2017-11-10 02:04:44.034851"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.037068"], ["updated_at", "2017-11-10 02:04:44.037068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.037856"], ["updated_at", "2017-11-10 02:04:44.037856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:04:44.045264"], ["updated_at", "2017-11-10 02:04:44.045264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 02:04:44.046326"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:04:44.047477"], ["updated_at", "2017-11-10 02:04:44.047477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:04:44.048194"], ["updated_at", "2017-11-10 02:04:44.048194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.051402"], ["updated_at", "2017-11-10 02:04:44.051402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.053539"], ["updated_at", "2017-11-10 02:04:44.053539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:04:44.057190"], ["updated_at", "2017-11-10 02:04:44.057190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:04:44.059585"], ["updated_at", "2017-11-10 02:04:44.059585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.067064"], ["updated_at", "2017-11-10 02:04:44.067064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.067862"], ["updated_at", "2017-11-10 02:04:44.067862"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.070057"], ["updated_at", "2017-11-10 02:04:44.070057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.075288"], ["updated_at", "2017-11-10 02:04:44.075288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.077098"], ["updated_at", "2017-11-10 02:04:44.077098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.080049"], ["updated_at", "2017-11-10 02:04:44.080049"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.081922"], ["updated_at", "2017-11-10 02:04:44.081922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.085547"], ["updated_at", "2017-11-10 02:04:44.085547"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.086671"], ["updated_at", "2017-11-10 02:04:44.086671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.106546"], ["updated_at", "2017-11-10 02:04:44.106546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.107579"], ["updated_at", "2017-11-10 02:04:44.107579"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.109787"], ["updated_at", "2017-11-10 02:04:44.109787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.113239"], ["updated_at", "2017-11-10 02:04:44.113239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.113944"], ["updated_at", "2017-11-10 02:04:44.113944"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.116411"], ["updated_at", "2017-11-10 02:04:44.116411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.122475"], ["updated_at", "2017-11-10 02:04:44.122475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.259900"], ["updated_at", "2017-11-10 02:04:44.259900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.264100"], ["updated_at", "2017-11-10 02:04:44.264100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.268909"], ["updated_at", "2017-11-10 02:04:44.268909"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:04:44.272133"], ["updated_at", "2017-11-10 02:04:44.272133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 7], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:04:44.300574"], ["updated_at", "2017-11-10 02:04:44.300574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:04:44.301428"], ["updated_at", "2017-11-10 02:04:44.301428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:04:44.325806"], ["updated_at", "2017-11-10 02:04:44.325806"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:05:16.523908"], ["updated_at", "2017-11-10 02:05:16.523908"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.528250"], ["updated_at", "2017-11-10 02:05:16.528250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.534748"], ["updated_at", "2017-11-10 02:05:16.534748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.539179"], ["updated_at", "2017-11-10 02:05:16.539179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.552030"], ["updated_at", "2017-11-10 02:05:16.552030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:05:16.563557"], ["updated_at", "2017-11-10 02:05:16.563557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:05:16.564849"], ["updated_at", "2017-11-10 02:05:16.564849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.3ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 6], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:05:16.642884"], ["updated_at", "2017-11-10 02:05:16.642884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:05:16.656523"], ["updated_at", "2017-11-10 02:05:16.656523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:05:16.657387"], ["updated_at", "2017-11-10 02:05:16.657387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:05:16.659213"], ["updated_at", "2017-11-10 02:05:16.659213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:05:16.660083"], ["updated_at", "2017-11-10 02:05:16.660083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.667206"], ["updated_at", "2017-11-10 02:05:16.667206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.669183"], ["updated_at", "2017-11-10 02:05:16.669183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.672012"], ["updated_at", "2017-11-10 02:05:16.672012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.674778"], ["updated_at", "2017-11-10 02:05:16.674778"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.675599"], ["updated_at", "2017-11-10 02:05:16.675599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 3)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.690041"], ["updated_at", "2017-11-10 02:05:16.690041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.690829"], ["updated_at", "2017-11-10 02:05:16.690829"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:05:16.693179"], ["updated_at", "2017-11-10 02:05:16.693179"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:05:16.696445"], ["updated_at", "2017-11-10 02:05:16.696445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.704795"], ["updated_at", "2017-11-10 02:05:16.704795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.709196"], ["updated_at", "2017-11-10 02:05:16.709196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.715223"], ["updated_at", "2017-11-10 02:05:16.715223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.719093"], ["updated_at", "2017-11-10 02:05:16.719093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.719962"], ["updated_at", "2017-11-10 02:05:16.719962"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.722188"], ["updated_at", "2017-11-10 02:05:16.722188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.724296"], ["updated_at", "2017-11-10 02:05:16.724296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.726076"], ["updated_at", "2017-11-10 02:05:16.726076"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.729390"], ["updated_at", "2017-11-10 02:05:16.729390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:05:16.734636"], ["updated_at", "2017-11-10 02:05:16.734636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:05:16.736087"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:05:16.736962"], ["updated_at", "2017-11-10 02:05:16.736962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:05:16.737882"], ["updated_at", "2017-11-10 02:05:16.737882"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.741431"], ["updated_at", "2017-11-10 02:05:16.741431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.745979"], ["updated_at", "2017-11-10 02:05:16.745979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.750968"], ["updated_at", "2017-11-10 02:05:16.750968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:05:16.751893"], ["updated_at", "2017-11-10 02:05:16.751893"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.756170"], ["updated_at", "2017-11-10 02:05:16.756170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.756931"], ["updated_at", "2017-11-10 02:05:16.756931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.758802"], ["updated_at", "2017-11-10 02:05:16.758802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.763372"], ["updated_at", "2017-11-10 02:05:16.763372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.764370"], ["updated_at", "2017-11-10 02:05:16.764370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.765177"], ["updated_at", "2017-11-10 02:05:16.765177"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.767792"], ["updated_at", "2017-11-10 02:05:16.767792"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.770022"], ["updated_at", "2017-11-10 02:05:16.770022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.770838"], ["updated_at", "2017-11-10 02:05:16.770838"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:05:16.772454"], ["updated_at", "2017-11-10 02:05:16.772454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:05:16.773300"], ["updated_at", "2017-11-10 02:05:16.773300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:05:16.775031"], ["updated_at", "2017-11-10 02:05:16.775031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:05:16.775808"], ["updated_at", "2017-11-10 02:05:16.775808"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.779278"], ["updated_at", "2017-11-10 02:05:16.779278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.783972"], ["updated_at", "2017-11-10 02:05:16.783972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.789274"], ["updated_at", "2017-11-10 02:05:16.789274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.790278"], ["updated_at", "2017-11-10 02:05:16.790278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.797123"], ["updated_at", "2017-11-10 02:05:16.797123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.799013"], ["updated_at", "2017-11-10 02:05:16.799013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.802243"], ["updated_at", "2017-11-10 02:05:16.802243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.803062"], ["updated_at", "2017-11-10 02:05:16.803062"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.804657"], ["updated_at", "2017-11-10 02:05:16.804657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.808380"], ["updated_at", "2017-11-10 02:05:16.808380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.809343"], ["updated_at", "2017-11-10 02:05:16.809343"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.812780"], ["updated_at", "2017-11-10 02:05:16.812780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.814015"], ["updated_at", "2017-11-10 02:05:16.814015"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.817408"], ["updated_at", "2017-11-10 02:05:16.817408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.822864"], ["updated_at", "2017-11-10 02:05:16.822864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.823998"], ["updated_at", "2017-11-10 02:05:16.823998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.831080"], ["updated_at", "2017-11-10 02:05:16.831080"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:05:16.835880"], ["updated_at", "2017-11-10 02:05:16.835880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:05:16.836750"], ["updated_at", "2017-11-10 02:05:16.836750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.837482"], ["updated_at", "2017-11-10 02:05:16.837482"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.839123"], ["updated_at", "2017-11-10 02:05:16.839123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.839818"], ["updated_at", "2017-11-10 02:05:16.839818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.859587"], ["updated_at", "2017-11-10 02:05:16.859587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.860739"], ["updated_at", "2017-11-10 02:05:16.860739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.862641"], ["updated_at", "2017-11-10 02:05:16.862641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.868081"], ["updated_at", "2017-11-10 02:05:16.868081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.869877"], ["updated_at", "2017-11-10 02:05:16.869877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.872504"], ["updated_at", "2017-11-10 02:05:16.872504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.873288"], ["updated_at", "2017-11-10 02:05:16.873288"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:05:16.876108"], ["updated_at", "2017-11-10 02:05:16.876108"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.886149"], ["updated_at", "2017-11-10 02:05:16.886149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.886934"], ["updated_at", "2017-11-10 02:05:16.886934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:16.887883"], ["updated_at", "2017-11-10 02:05:16.887883"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.3ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:05:26.595319"], ["updated_at", "2017-11-10 02:05:26.595319"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:05:26.607012"], ["updated_at", "2017-11-10 02:05:26.607012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:05:26.607906"], ["updated_at", "2017-11-10 02:05:26.607906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.640811"], ["updated_at", "2017-11-10 02:05:26.640811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.645392"], ["updated_at", "2017-11-10 02:05:26.645392"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.651517"], ["updated_at", "2017-11-10 02:05:26.651517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.654063"], ["updated_at", "2017-11-10 02:05:26.654063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 6], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.671156"], ["updated_at", "2017-11-10 02:05:26.671156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.671953"], ["updated_at", "2017-11-10 02:05:26.671953"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.673702"], ["updated_at", "2017-11-10 02:05:26.673702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.674397"], ["updated_at", "2017-11-10 02:05:26.674397"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.675999"], ["updated_at", "2017-11-10 02:05:26.675999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.676748"], ["updated_at", "2017-11-10 02:05:26.676748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.677432"], ["updated_at", "2017-11-10 02:05:26.677432"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.680187"], ["updated_at", "2017-11-10 02:05:26.680187"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.681034"], ["updated_at", "2017-11-10 02:05:26.681034"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.683083"], ["updated_at", "2017-11-10 02:05:26.683083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.683856"], ["updated_at", "2017-11-10 02:05:26.683856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.685786"], ["updated_at", "2017-11-10 02:05:26.685786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:05:26.691614"], ["updated_at", "2017-11-10 02:05:26.691614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.695647"], ["updated_at", "2017-11-10 02:05:26.695647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.696451"], ["updated_at", "2017-11-10 02:05:26.696451"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.699461"], ["updated_at", "2017-11-10 02:05:26.699461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.704416"], ["updated_at", "2017-11-10 02:05:26.704416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.707712"], ["updated_at", "2017-11-10 02:05:26.707712"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:05:26.711682"], ["updated_at", "2017-11-10 02:05:26.711682"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:05:26.717989"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:05:26.718973"], ["updated_at", "2017-11-10 02:05:26.718973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:05:26.719707"], ["updated_at", "2017-11-10 02:05:26.719707"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.722734"], ["updated_at", "2017-11-10 02:05:26.722734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.723429"], ["updated_at", "2017-11-10 02:05:26.723429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.731447"], ["updated_at", "2017-11-10 02:05:26.731447"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.732178"], ["updated_at", "2017-11-10 02:05:26.732178"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.736968"], ["updated_at", "2017-11-10 02:05:26.736968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.738888"], ["updated_at", "2017-11-10 02:05:26.738888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.740655"], ["updated_at", "2017-11-10 02:05:26.740655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.743788"], ["updated_at", "2017-11-10 02:05:26.743788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.745085"], ["updated_at", "2017-11-10 02:05:26.745085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.751392"], ["updated_at", "2017-11-10 02:05:26.751392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:05:26.755032"], ["updated_at", "2017-11-10 02:05:26.755032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:05:26.756814"], ["updated_at", "2017-11-10 02:05:26.756814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.766752"], ["updated_at", "2017-11-10 02:05:26.766752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.771435"], ["updated_at", "2017-11-10 02:05:26.771435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.775006"], ["updated_at", "2017-11-10 02:05:26.775006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.780268"], ["updated_at", "2017-11-10 02:05:26.780268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.781267"], ["updated_at", "2017-11-10 02:05:26.781267"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.783750"], ["updated_at", "2017-11-10 02:05:26.783750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.785838"], ["updated_at", "2017-11-10 02:05:26.785838"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.796601"], ["updated_at", "2017-11-10 02:05:26.796601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:05:26.801837"], ["updated_at", "2017-11-10 02:05:26.801837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:05:26.802731"], ["updated_at", "2017-11-10 02:05:26.802731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.803410"], ["updated_at", "2017-11-10 02:05:26.803410"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:05:26.805063"], ["updated_at", "2017-11-10 02:05:26.805063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:05:26.805756"], ["updated_at", "2017-11-10 02:05:26.805756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:05:26.807478"], ["updated_at", "2017-11-10 02:05:26.807478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:05:26.808382"], ["updated_at", "2017-11-10 02:05:26.808382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.815437"], ["updated_at", "2017-11-10 02:05:26.815437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.817414"], ["updated_at", "2017-11-10 02:05:26.817414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:05:26.820298"], ["updated_at", "2017-11-10 02:05:26.820298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:05:26.821089"], ["updated_at", "2017-11-10 02:05:26.821089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:05:26.822711"], ["updated_at", "2017-11-10 02:05:26.822711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:05:26.823460"], ["updated_at", "2017-11-10 02:05:26.823460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.826525"], ["updated_at", "2017-11-10 02:05:26.826525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.827370"], ["updated_at", "2017-11-10 02:05:26.827370"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.836289"], ["updated_at", "2017-11-10 02:05:26.836289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.841154"], ["updated_at", "2017-11-10 02:05:26.841154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.848042"], ["updated_at", "2017-11-10 02:05:26.848042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.848971"], ["updated_at", "2017-11-10 02:05:26.848971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.849699"], ["updated_at", "2017-11-10 02:05:26.849699"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.852383"], ["updated_at", "2017-11-10 02:05:26.852383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.856033"], ["updated_at", "2017-11-10 02:05:26.856033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.856900"], ["updated_at", "2017-11-10 02:05:26.856900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.858697"], ["updated_at", "2017-11-10 02:05:26.858697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:05:26.865740"], ["updated_at", "2017-11-10 02:05:26.865740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.878344"], ["updated_at", "2017-11-10 02:05:26.878344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.879497"], ["updated_at", "2017-11-10 02:05:26.879497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.884430"], ["updated_at", "2017-11-10 02:05:26.884430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.885217"], ["updated_at", "2017-11-10 02:05:26.885217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.902249"], ["updated_at", "2017-11-10 02:05:26.902249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.903152"], ["updated_at", "2017-11-10 02:05:26.903152"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.905386"], ["updated_at", "2017-11-10 02:05:26.905386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.907320"], ["updated_at", "2017-11-10 02:05:26.907320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:05:26.910235"], ["updated_at", "2017-11-10 02:05:26.910235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:05:26.911053"], ["updated_at", "2017-11-10 02:05:26.911053"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.692131"], ["updated_at", "2017-11-10 02:07:02.692131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.709729"], ["updated_at", "2017-11-10 02:07:02.709729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.712302"], ["updated_at", "2017-11-10 02:07:02.712302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:07:02.718264"], ["updated_at", "2017-11-10 02:07:02.718264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:07:02.719104"], ["updated_at", "2017-11-10 02:07:02.719104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:07:02.745489"], ["updated_at", "2017-11-10 02:07:02.745489"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.765831"], ["updated_at", "2017-11-10 02:07:02.765831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.818362"], ["updated_at", "2017-11-10 02:07:02.818362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.822832"], ["updated_at", "2017-11-10 02:07:02.822832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.824926"], ["updated_at", "2017-11-10 02:07:02.824926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.827694"], ["updated_at", "2017-11-10 02:07:02.827694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.831402"], ["updated_at", "2017-11-10 02:07:02.831402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.834927"], ["updated_at", "2017-11-10 02:07:02.834927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.837896"], ["updated_at", "2017-11-10 02:07:02.837896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.842552"], ["updated_at", "2017-11-10 02:07:02.842552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.843892"], ["updated_at", "2017-11-10 02:07:02.843892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.852552"], ["updated_at", "2017-11-10 02:07:02.852552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.854488"], ["updated_at", "2017-11-10 02:07:02.854488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.857591"], ["updated_at", "2017-11-10 02:07:02.857591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.862341"], ["updated_at", "2017-11-10 02:07:02.862341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.867569"], ["updated_at", "2017-11-10 02:07:02.867569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.869598"], ["updated_at", "2017-11-10 02:07:02.869598"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.873116"], ["updated_at", "2017-11-10 02:07:02.873116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.873871"], ["updated_at", "2017-11-10 02:07:02.873871"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.875842"], ["updated_at", "2017-11-10 02:07:02.875842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.876801"], ["updated_at", "2017-11-10 02:07:02.876801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.878740"], ["updated_at", "2017-11-10 02:07:02.878740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.881762"], ["updated_at", "2017-11-10 02:07:02.881762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.882470"], ["updated_at", "2017-11-10 02:07:02.882470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.883130"], ["updated_at", "2017-11-10 02:07:02.883130"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.885376"], ["updated_at", "2017-11-10 02:07:02.885376"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.886975"], ["updated_at", "2017-11-10 02:07:02.886975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.887675"], ["updated_at", "2017-11-10 02:07:02.887675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.899681"], ["updated_at", "2017-11-10 02:07:02.899681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.900443"], ["updated_at", "2017-11-10 02:07:02.900443"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.902315"], ["updated_at", "2017-11-10 02:07:02.902315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.903010"], ["updated_at", "2017-11-10 02:07:02.903010"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.904921"], ["updated_at", "2017-11-10 02:07:02.904921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:07:02.911081"], ["updated_at", "2017-11-10 02:07:02.911081"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.915477"], ["updated_at", "2017-11-10 02:07:02.915477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:07:02.916320"], ["updated_at", "2017-11-10 02:07:02.916320"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:07:02.918714"], ["updated_at", "2017-11-10 02:07:02.918714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:07:02.919494"], ["updated_at", "2017-11-10 02:07:02.919494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.920381"], ["updated_at", "2017-11-10 02:07:02.920381"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.936850"], ["updated_at", "2017-11-10 02:07:02.936850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:07:02.940809"], ["updated_at", "2017-11-10 02:07:02.940809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:07:02.941628"], ["updated_at", "2017-11-10 02:07:02.941628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:07:02.943722"], ["updated_at", "2017-11-10 02:07:02.943722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:07:02.944515"], ["updated_at", "2017-11-10 02:07:02.944515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.950796"], ["updated_at", "2017-11-10 02:07:02.950796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.951574"], ["updated_at", "2017-11-10 02:07:02.951574"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.956043"], ["updated_at", "2017-11-10 02:07:02.956043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:07:02.964614"], ["updated_at", "2017-11-10 02:07:02.964614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.973933"], ["updated_at", "2017-11-10 02:07:02.973933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.974833"], ["updated_at", "2017-11-10 02:07:02.974833"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.976559"], ["updated_at", "2017-11-10 02:07:02.976559"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.977392"], ["updated_at", "2017-11-10 02:07:02.977392"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.980026"], ["updated_at", "2017-11-10 02:07:02.980026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.980832"], ["updated_at", "2017-11-10 02:07:02.980832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.990603"], ["updated_at", "2017-11-10 02:07:02.990603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.991324"], ["updated_at", "2017-11-10 02:07:02.991324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.992163"], ["updated_at", "2017-11-10 02:07:02.992163"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.994583"], ["updated_at", "2017-11-10 02:07:02.994583"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:02.996609"], ["updated_at", "2017-11-10 02:07:02.996609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:03.006744"], ["updated_at", "2017-11-10 02:07:03.006744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:03.007607"], ["updated_at", "2017-11-10 02:07:03.007607"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:03.015516"], ["updated_at", "2017-11-10 02:07:03.015516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:03.019679"], ["updated_at", "2017-11-10 02:07:03.019679"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:07:03.022300"], ["updated_at", "2017-11-10 02:07:03.022300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:07:03.024063"], ["updated_at", "2017-11-10 02:07:03.024063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 3]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:03.032218"], ["updated_at", "2017-11-10 02:07:03.032218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:03.033101"], ["updated_at", "2017-11-10 02:07:03.033101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:07:03.037747"], ["updated_at", "2017-11-10 02:07:03.037747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:07:03.038572"], ["updated_at", "2017-11-10 02:07:03.038572"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:07:03.040584"], ["updated_at", "2017-11-10 02:07:03.040584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:07:03.041430"], ["updated_at", "2017-11-10 02:07:03.041430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:03.044924"], ["updated_at", "2017-11-10 02:07:03.044924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:03.045806"], ["updated_at", "2017-11-10 02:07:03.045806"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:03.048229"], ["updated_at", "2017-11-10 02:07:03.048229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:03.048978"], ["updated_at", "2017-11-10 02:07:03.048978"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:07:03.051697"], ["updated_at", "2017-11-10 02:07:03.051697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 02:07:03.052764"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:07:03.053774"], ["updated_at", "2017-11-10 02:07:03.053774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:07:03.054573"], ["updated_at", "2017-11-10 02:07:03.054573"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:07:09.172471"], ["updated_at", "2017-11-10 02:07:09.172471"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:07:09.200268"], ["updated_at", "2017-11-10 02:07:09.200268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.204075"], ["updated_at", "2017-11-10 02:07:09.204075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.204930"], ["updated_at", "2017-11-10 02:07:09.204930"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.207515"], ["updated_at", "2017-11-10 02:07:09.207515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.222671"], ["updated_at", "2017-11-10 02:07:09.222671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.226221"], ["updated_at", "2017-11-10 02:07:09.226221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.227132"], ["updated_at", "2017-11-10 02:07:09.227132"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.230411"], ["updated_at", "2017-11-10 02:07:09.230411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.235608"], ["updated_at", "2017-11-10 02:07:09.235608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.248527"], ["updated_at", "2017-11-10 02:07:09.248527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.250278"], ["updated_at", "2017-11-10 02:07:09.250278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.252906"], ["updated_at", "2017-11-10 02:07:09.252906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.253624"], ["updated_at", "2017-11-10 02:07:09.253624"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.255611"], ["updated_at", "2017-11-10 02:07:09.255611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.260268"], ["updated_at", "2017-11-10 02:07:09.260268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.261182"], ["updated_at", "2017-11-10 02:07:09.261182"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.263431"], ["updated_at", "2017-11-10 02:07:09.263431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.266875"], ["updated_at", "2017-11-10 02:07:09.266875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.267580"], ["updated_at", "2017-11-10 02:07:09.267580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.269346"], ["updated_at", "2017-11-10 02:07:09.269346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:07:09.272599"], ["updated_at", "2017-11-10 02:07:09.272599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:07:09.273411"], ["updated_at", "2017-11-10 02:07:09.273411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.274109"], ["updated_at", "2017-11-10 02:07:09.274109"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.276540"], ["updated_at", "2017-11-10 02:07:09.276540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.280971"], ["updated_at", "2017-11-10 02:07:09.280971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.281714"], ["updated_at", "2017-11-10 02:07:09.281714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.289176"], ["updated_at", "2017-11-10 02:07:09.289176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.290038"], ["updated_at", "2017-11-10 02:07:09.290038"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:07:09.295996"], ["updated_at", "2017-11-10 02:07:09.295996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:07:09.296961"], ["updated_at", "2017-11-10 02:07:09.296961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:07:09.298549"], ["updated_at", "2017-11-10 02:07:09.298549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:07:09.299254"], ["updated_at", "2017-11-10 02:07:09.299254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.302329"], ["updated_at", "2017-11-10 02:07:09.302329"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.312517"], ["updated_at", "2017-11-10 02:07:09.312517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.316763"], ["updated_at", "2017-11-10 02:07:09.316763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.320358"], ["updated_at", "2017-11-10 02:07:09.320358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.322672"], ["updated_at", "2017-11-10 02:07:09.322672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.324579"], ["updated_at", "2017-11-10 02:07:09.324579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.327681"], ["updated_at", "2017-11-10 02:07:09.327681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.328550"], ["updated_at", "2017-11-10 02:07:09.328550"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.330940"], ["updated_at", "2017-11-10 02:07:09.330940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:07:09.331702"], ["updated_at", "2017-11-10 02:07:09.331702"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.333999"], ["updated_at", "2017-11-10 02:07:09.333999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.334730"], ["updated_at", "2017-11-10 02:07:09.334730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.342802"], ["updated_at", "2017-11-10 02:07:09.342802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.343814"], ["updated_at", "2017-11-10 02:07:09.343814"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:07:09.347019"], ["updated_at", "2017-11-10 02:07:09.347019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 02:07:09.348148"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:07:09.349413"], ["updated_at", "2017-11-10 02:07:09.349413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:07:09.350158"], ["updated_at", "2017-11-10 02:07:09.350158"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:07:09.353687"], ["updated_at", "2017-11-10 02:07:09.353687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:07:09.354681"], ["updated_at", "2017-11-10 02:07:09.354681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:07:09.356528"], ["updated_at", "2017-11-10 02:07:09.356528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:07:09.357246"], ["updated_at", "2017-11-10 02:07:09.357246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.364510"], ["updated_at", "2017-11-10 02:07:09.364510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.365327"], ["updated_at", "2017-11-10 02:07:09.365327"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.370649"], ["updated_at", "2017-11-10 02:07:09.370649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.372586"], ["updated_at", "2017-11-10 02:07:09.372586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:07:09.376335"], ["updated_at", "2017-11-10 02:07:09.376335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:07:09.378348"], ["updated_at", "2017-11-10 02:07:09.378348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.386241"], ["updated_at", "2017-11-10 02:07:09.386241"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.388836"], ["updated_at", "2017-11-10 02:07:09.388836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.392895"], ["updated_at", "2017-11-10 02:07:09.392895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.394145"], ["updated_at", "2017-11-10 02:07:09.394145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.402196"], ["updated_at", "2017-11-10 02:07:09.402196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.403110"], ["updated_at", "2017-11-10 02:07:09.403110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.415087"], ["updated_at", "2017-11-10 02:07:09.415087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.415868"], ["updated_at", "2017-11-10 02:07:09.415868"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.418037"], ["updated_at", "2017-11-10 02:07:09.418037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.421057"], ["updated_at", "2017-11-10 02:07:09.421057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.421824"], ["updated_at", "2017-11-10 02:07:09.421824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.422505"], ["updated_at", "2017-11-10 02:07:09.422505"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.424972"], ["updated_at", "2017-11-10 02:07:09.424972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.425767"], ["updated_at", "2017-11-10 02:07:09.425767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.427894"], ["updated_at", "2017-11-10 02:07:09.427894"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.431557"], ["updated_at", "2017-11-10 02:07:09.431557"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:07:09.462582"], ["updated_at", "2017-11-10 02:07:09.462582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:07:09.463469"], ["updated_at", "2017-11-10 02:07:09.463469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.478742"], ["updated_at", "2017-11-10 02:07:09.478742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.483767"], ["updated_at", "2017-11-10 02:07:09.483767"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.486223"], ["updated_at", "2017-11-10 02:07:09.486223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 7], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:09.505831"], ["updated_at", "2017-11-10 02:07:09.505831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:07:09.509708"], ["updated_at", "2017-11-10 02:07:09.509708"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.215181"], ["updated_at", "2017-11-10 02:07:29.215181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.217880"], ["updated_at", "2017-11-10 02:07:29.217880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.254367"], ["updated_at", "2017-11-10 02:07:29.254367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.255224"], ["updated_at", "2017-11-10 02:07:29.255224"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.257508"], ["updated_at", "2017-11-10 02:07:29.257508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.258425"], ["updated_at", "2017-11-10 02:07:29.258425"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.261012"], ["updated_at", "2017-11-10 02:07:29.261012"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.262096"], ["updated_at", "2017-11-10 02:07:29.262096"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:07:29.270730"], ["updated_at", "2017-11-10 02:07:29.270730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.276491"], ["updated_at", "2017-11-10 02:07:29.276491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.281045"], ["updated_at", "2017-11-10 02:07:29.281045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.286150"], ["updated_at", "2017-11-10 02:07:29.286150"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.287120"], ["updated_at", "2017-11-10 02:07:29.287120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.294421"], ["updated_at", "2017-11-10 02:07:29.294421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.295358"], ["updated_at", "2017-11-10 02:07:29.295358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.296247"], ["updated_at", "2017-11-10 02:07:29.296247"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.299527"], ["updated_at", "2017-11-10 02:07:29.299527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.314283"], ["updated_at", "2017-11-10 02:07:29.314283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.324221"], ["updated_at", "2017-11-10 02:07:29.324221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.325099"], ["updated_at", "2017-11-10 02:07:29.325099"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.327572"], ["updated_at", "2017-11-10 02:07:29.327572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.329867"], ["updated_at", "2017-11-10 02:07:29.329867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.334272"], ["updated_at", "2017-11-10 02:07:29.334272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.335022"], ["updated_at", "2017-11-10 02:07:29.335022"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:07:29.338696"], ["updated_at", "2017-11-10 02:07:29.338696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:07:29.339501"], ["updated_at", "2017-11-10 02:07:29.339501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.340190"], ["updated_at", "2017-11-10 02:07:29.340190"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:07:29.343530"], ["updated_at", "2017-11-10 02:07:29.343530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:07:29.344910"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:07:29.348354"], ["updated_at", "2017-11-10 02:07:29.348354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:07:29.349281"], ["updated_at", "2017-11-10 02:07:29.349281"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.352538"], ["updated_at", "2017-11-10 02:07:29.352538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.354573"], ["updated_at", "2017-11-10 02:07:29.354573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.357953"], ["updated_at", "2017-11-10 02:07:29.357953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:07:29.358818"], ["updated_at", "2017-11-10 02:07:29.358818"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:07:29.361195"], ["updated_at", "2017-11-10 02:07:29.361195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:07:29.362057"], ["updated_at", "2017-11-10 02:07:29.362057"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:07:29.363969"], ["updated_at", "2017-11-10 02:07:29.363969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:07:29.364808"], ["updated_at", "2017-11-10 02:07:29.364808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.377657"], ["updated_at", "2017-11-10 02:07:29.377657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.378472"], ["updated_at", "2017-11-10 02:07:29.378472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.383765"], ["updated_at", "2017-11-10 02:07:29.383765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.384526"], ["updated_at", "2017-11-10 02:07:29.384526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.392840"], ["updated_at", "2017-11-10 02:07:29.392840"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.393601"], ["updated_at", "2017-11-10 02:07:29.393601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.394264"], ["updated_at", "2017-11-10 02:07:29.394264"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.397414"], ["updated_at", "2017-11-10 02:07:29.397414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.401532"], ["updated_at", "2017-11-10 02:07:29.401532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.402294"], ["updated_at", "2017-11-10 02:07:29.402294"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.404489"], ["updated_at", "2017-11-10 02:07:29.404489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.406629"], ["updated_at", "2017-11-10 02:07:29.406629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.408620"], ["updated_at", "2017-11-10 02:07:29.408620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.411736"], ["updated_at", "2017-11-10 02:07:29.411736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.412625"], ["updated_at", "2017-11-10 02:07:29.412625"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.425292"], ["updated_at", "2017-11-10 02:07:29.425292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.427284"], ["updated_at", "2017-11-10 02:07:29.427284"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.430690"], ["updated_at", "2017-11-10 02:07:29.430690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.435448"], ["updated_at", "2017-11-10 02:07:29.435448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.436197"], ["updated_at", "2017-11-10 02:07:29.436197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.441987"], ["updated_at", "2017-11-10 02:07:29.441987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.445057"], ["updated_at", "2017-11-10 02:07:29.445057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 3)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.450346"], ["updated_at", "2017-11-10 02:07:29.450346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.456279"], ["updated_at", "2017-11-10 02:07:29.456279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.467810"], ["updated_at", "2017-11-10 02:07:29.467810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.468695"], ["updated_at", "2017-11-10 02:07:29.468695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.470645"], ["updated_at", "2017-11-10 02:07:29.470645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:07:29.473983"], ["updated_at", "2017-11-10 02:07:29.473983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:07:29.474823"], ["updated_at", "2017-11-10 02:07:29.474823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:07:29.476468"], ["updated_at", "2017-11-10 02:07:29.476468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:07:29.477208"], ["updated_at", "2017-11-10 02:07:29.477208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.484094"], ["updated_at", "2017-11-10 02:07:29.484094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.484929"], ["updated_at", "2017-11-10 02:07:29.484929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.486616"], ["updated_at", "2017-11-10 02:07:29.486616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:07:29.493797"], ["updated_at", "2017-11-10 02:07:29.493797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:07:29.503207"], ["updated_at", "2017-11-10 02:07:29.503207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:07:29.505218"], ["updated_at", "2017-11-10 02:07:29.505218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.512604"], ["updated_at", "2017-11-10 02:07:29.512604"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:07:29.581182"], ["updated_at", "2017-11-10 02:07:29.581182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:07:29.582188"], ["updated_at", "2017-11-10 02:07:29.582188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.598140"], ["updated_at", "2017-11-10 02:07:29.598140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.609173"], ["updated_at", "2017-11-10 02:07:29.609173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.617888"], ["updated_at", "2017-11-10 02:07:29.617888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:29.620651"], ["updated_at", "2017-11-10 02:07:29.620651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:07:29.629479"], ["updated_at", "2017-11-10 02:07:29.629479"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:07:52.176956"], ["updated_at", "2017-11-10 02:07:52.176956"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.241310"], ["updated_at", "2017-11-10 02:07:52.241310"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.247858"], ["updated_at", "2017-11-10 02:07:52.247858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.250913"], ["updated_at", "2017-11-10 02:07:52.250913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:07:52.261511"], ["updated_at", "2017-11-10 02:07:52.261511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:07:52.262539"], ["updated_at", "2017-11-10 02:07:52.262539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.297710"], ["updated_at", "2017-11-10 02:07:52.297710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.427378"], ["updated_at", "2017-11-10 02:07:52.427378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:07:52.432802"], ["updated_at", "2017-11-10 02:07:52.432802"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:07:52.434009"], ["updated_at", "2017-11-10 02:07:52.434009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:07:52.435949"], ["updated_at", "2017-11-10 02:07:52.435949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:07:52.436636"], ["updated_at", "2017-11-10 02:07:52.436636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.451605"], ["updated_at", "2017-11-10 02:07:52.451605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.455176"], ["updated_at", "2017-11-10 02:07:52.455176"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.456752"], ["updated_at", "2017-11-10 02:07:52.456752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.464440"], ["updated_at", "2017-11-10 02:07:52.464440"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.468931"], ["updated_at", "2017-11-10 02:07:52.468931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.475067"], ["updated_at", "2017-11-10 02:07:52.475067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.475825"], ["updated_at", "2017-11-10 02:07:52.475825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.477546"], ["updated_at", "2017-11-10 02:07:52.477546"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.480427"], ["updated_at", "2017-11-10 02:07:52.480427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.481153"], ["updated_at", "2017-11-10 02:07:52.481153"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:07:52.486454"], ["updated_at", "2017-11-10 02:07:52.486454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.492304"], ["updated_at", "2017-11-10 02:07:52.492304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.493062"], ["updated_at", "2017-11-10 02:07:52.493062"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.494592"], ["updated_at", "2017-11-10 02:07:52.494592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.495289"], ["updated_at", "2017-11-10 02:07:52.495289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.499886"], ["updated_at", "2017-11-10 02:07:52.499886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.504112"], ["updated_at", "2017-11-10 02:07:52.504112"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.508711"], ["updated_at", "2017-11-10 02:07:52.508711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.515384"], ["updated_at", "2017-11-10 02:07:52.515384"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.516553"], ["updated_at", "2017-11-10 02:07:52.516553"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.523126"], ["updated_at", "2017-11-10 02:07:52.523126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:07:52.527266"], ["updated_at", "2017-11-10 02:07:52.527266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:07:52.528529"], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:07:52.529365"], ["updated_at", "2017-11-10 02:07:52.529365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:07:52.530106"], ["updated_at", "2017-11-10 02:07:52.530106"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.533884"], ["updated_at", "2017-11-10 02:07:52.533884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.536100"], ["updated_at", "2017-11-10 02:07:52.536100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:07:52.539047"], ["updated_at", "2017-11-10 02:07:52.539047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:07:52.539823"], ["updated_at", "2017-11-10 02:07:52.539823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.540531"], ["updated_at", "2017-11-10 02:07:52.540531"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.542349"], ["updated_at", "2017-11-10 02:07:52.542349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.543044"], ["updated_at", "2017-11-10 02:07:52.543044"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:07:52.545708"], ["updated_at", "2017-11-10 02:07:52.545708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.555901"], ["updated_at", "2017-11-10 02:07:52.555901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.556813"], ["updated_at", "2017-11-10 02:07:52.556813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.565242"], ["updated_at", "2017-11-10 02:07:52.565242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.566256"], ["updated_at", "2017-11-10 02:07:52.566256"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.571746"], ["updated_at", "2017-11-10 02:07:52.571746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.572583"], ["updated_at", "2017-11-10 02:07:52.572583"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.574984"], ["updated_at", "2017-11-10 02:07:52.574984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.575795"], ["updated_at", "2017-11-10 02:07:52.575795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.576467"], ["updated_at", "2017-11-10 02:07:52.576467"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.578462"], ["updated_at", "2017-11-10 02:07:52.578462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.580358"], ["updated_at", "2017-11-10 02:07:52.580358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.584228"], ["updated_at", "2017-11-10 02:07:52.584228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.585432"], ["updated_at", "2017-11-10 02:07:52.585432"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.588097"], ["updated_at", "2017-11-10 02:07:52.588097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.590127"], ["updated_at", "2017-11-10 02:07:52.590127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.591858"], ["updated_at", "2017-11-10 02:07:52.591858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.594898"], ["updated_at", "2017-11-10 02:07:52.594898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.595655"], ["updated_at", "2017-11-10 02:07:52.595655"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:07:52.597786"], ["updated_at", "2017-11-10 02:07:52.597786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:07:52.600752"], ["updated_at", "2017-11-10 02:07:52.600752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.613637"], ["updated_at", "2017-11-10 02:07:52.613637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.614406"], ["updated_at", "2017-11-10 02:07:52.614406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.624206"], ["updated_at", "2017-11-10 02:07:52.624206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.628371"], ["updated_at", "2017-11-10 02:07:52.628371"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:07:52.629263"], ["updated_at", "2017-11-10 02:07:52.629263"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.631862"], ["updated_at", "2017-11-10 02:07:52.631862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.632802"], ["updated_at", "2017-11-10 02:07:52.632802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.633696"], ["updated_at", "2017-11-10 02:07:52.633696"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.635941"], ["updated_at", "2017-11-10 02:07:52.635941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.638189"], ["updated_at", "2017-11-10 02:07:52.638189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.641326"], ["updated_at", "2017-11-10 02:07:52.641326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.642102"], ["updated_at", "2017-11-10 02:07:52.642102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.643781"], ["updated_at", "2017-11-10 02:07:52.643781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:07:52.658001"], ["updated_at", "2017-11-10 02:07:52.658001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:07:52.658829"], ["updated_at", "2017-11-10 02:07:52.658829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:07:52.660437"], ["updated_at", "2017-11-10 02:07:52.660437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:07:52.661211"], ["updated_at", "2017-11-10 02:07:52.661211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.664179"], ["updated_at", "2017-11-10 02:07:52.664179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:07:52.664943"], ["updated_at", "2017-11-10 02:07:52.664943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.667637"], ["updated_at", "2017-11-10 02:08:06.667637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.697086"], ["updated_at", "2017-11-10 02:08:06.697086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.698151"], ["updated_at", "2017-11-10 02:08:06.698151"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.708663"], ["updated_at", "2017-11-10 02:08:06.708663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.709661"], ["updated_at", "2017-11-10 02:08:06.709661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.712146"], ["updated_at", "2017-11-10 02:08:06.712146"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:08:06.716149"], ["updated_at", "2017-11-10 02:08:06.716149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:08:06.717497"], ["updated_at", "2017-11-10 02:08:06.717497"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.718999"], ["updated_at", "2017-11-10 02:08:06.718999"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:08:06.724013"], ["updated_at", "2017-11-10 02:08:06.724013"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:08:06.725841"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:08:06.729110"], ["updated_at", "2017-11-10 02:08:06.729110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:08:06.730242"], ["updated_at", "2017-11-10 02:08:06.730242"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.733971"], ["updated_at", "2017-11-10 02:08:06.733971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.734925"], ["updated_at", "2017-11-10 02:08:06.734925"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.738471"], ["updated_at", "2017-11-10 02:08:06.738471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.741388"], ["updated_at", "2017-11-10 02:08:06.741388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:08:06.745589"], ["updated_at", "2017-11-10 02:08:06.745589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:08:06.748399"], ["updated_at", "2017-11-10 02:08:06.748399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.761828"], ["updated_at", "2017-11-10 02:08:06.761828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.770043"], ["updated_at", "2017-11-10 02:08:06.770043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (8.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.784679"], ["updated_at", "2017-11-10 02:08:06.784679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:08:06.785747"], ["updated_at", "2017-11-10 02:08:06.785747"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.790681"], ["updated_at", "2017-11-10 02:08:06.790681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.791441"], ["updated_at", "2017-11-10 02:08:06.791441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.797206"], ["updated_at", "2017-11-10 02:08:06.797206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.797935"], ["updated_at", "2017-11-10 02:08:06.797935"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.799959"], ["updated_at", "2017-11-10 02:08:06.799959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.800857"], ["updated_at", "2017-11-10 02:08:06.800857"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.803951"], ["updated_at", "2017-11-10 02:08:06.803951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.806178"], ["updated_at", "2017-11-10 02:08:06.806178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:08:06.812486"], ["updated_at", "2017-11-10 02:08:06.812486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.816855"], ["updated_at", "2017-11-10 02:08:06.816855"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.817979"], ["updated_at", "2017-11-10 02:08:06.817979"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.820456"], ["updated_at", "2017-11-10 02:08:06.820456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.837402"], ["updated_at", "2017-11-10 02:08:06.837402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.839364"], ["updated_at", "2017-11-10 02:08:06.839364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.842158"], ["updated_at", "2017-11-10 02:08:06.842158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.847143"], ["updated_at", "2017-11-10 02:08:06.847143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.848064"], ["updated_at", "2017-11-10 02:08:06.848064"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.850750"], ["updated_at", "2017-11-10 02:08:06.850750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.851693"], ["updated_at", "2017-11-10 02:08:06.851693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.860994"], ["updated_at", "2017-11-10 02:08:06.860994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.867958"], ["updated_at", "2017-11-10 02:08:06.867958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.869097"], ["updated_at", "2017-11-10 02:08:06.869097"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.871197"], ["updated_at", "2017-11-10 02:08:06.871197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.871948"], ["updated_at", "2017-11-10 02:08:06.871948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.880016"], ["updated_at", "2017-11-10 02:08:06.880016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.880721"], ["updated_at", "2017-11-10 02:08:06.880721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.881430"], ["updated_at", "2017-11-10 02:08:06.881430"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.883502"], ["updated_at", "2017-11-10 02:08:06.883502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.884265"], ["updated_at", "2017-11-10 02:08:06.884265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.886741"], ["updated_at", "2017-11-10 02:08:06.886741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.890245"], ["updated_at", "2017-11-10 02:08:06.890245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.891019"], ["updated_at", "2017-11-10 02:08:06.891019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.895255"], ["updated_at", "2017-11-10 02:08:06.895255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:08:06.898147"], ["updated_at", "2017-11-10 02:08:06.898147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:08:06.898902"], ["updated_at", "2017-11-10 02:08:06.898902"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 2], ["test_another_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:08:06.900457"], ["updated_at", "2017-11-10 02:08:06.900457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:08:06.901295"], ["updated_at", "2017-11-10 02:08:06.901295"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 4], ["test_another_model_id", 5]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 4]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.907999"], ["updated_at", "2017-11-10 02:08:06.907999"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.909683"], ["updated_at", "2017-11-10 02:08:06.909683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.912662"], ["updated_at", "2017-11-10 02:08:06.912662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:08:06.921500"], ["updated_at", "2017-11-10 02:08:06.921500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:08:06.923306"], ["updated_at", "2017-11-10 02:08:06.923306"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:08:06.926309"], ["updated_at", "2017-11-10 02:08:06.926309"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:08:06.927550"], ["updated_at", "2017-11-10 02:08:06.927550"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.931858"], ["updated_at", "2017-11-10 02:08:06.931858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.938182"], ["updated_at", "2017-11-10 02:08:06.938182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.940141"], ["updated_at", "2017-11-10 02:08:06.940141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.943003"], ["updated_at", "2017-11-10 02:08:06.943003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.943811"], ["updated_at", "2017-11-10 02:08:06.943811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.957691"], ["updated_at", "2017-11-10 02:08:06.957691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.958498"], ["updated_at", "2017-11-10 02:08:06.958498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.959204"], ["updated_at", "2017-11-10 02:08:06.959204"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:06.961471"], ["updated_at", "2017-11-10 02:08:06.961471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:08:06.965942"], ["updated_at", "2017-11-10 02:08:06.965942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:07.084081"], ["updated_at", "2017-11-10 02:08:07.084081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:07.089251"], ["updated_at", "2017-11-10 02:08:07.089251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:07.091741"], ["updated_at", "2017-11-10 02:08:07.091741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:08:07.097328"], ["updated_at", "2017-11-10 02:08:07.097328"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:08:07.135714"], ["updated_at", "2017-11-10 02:08:07.135714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:08:07.136899"], ["updated_at", "2017-11-10 02:08:07.136899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:07.149578"], ["updated_at", "2017-11-10 02:08:07.149578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:08:11.998174"], ["updated_at", "2017-11-10 02:08:11.998174"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.043819"], ["updated_at", "2017-11-10 02:08:12.043819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.049702"], ["updated_at", "2017-11-10 02:08:12.049702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.053369"], ["updated_at", "2017-11-10 02:08:12.053369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:08:12.068811"], ["updated_at", "2017-11-10 02:08:12.068811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:08:12.070768"], ["updated_at", "2017-11-10 02:08:12.070768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.2ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.104189"], ["updated_at", "2017-11-10 02:08:12.104189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.3ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.170161"], ["updated_at", "2017-11-10 02:08:12.170161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.174377"], ["updated_at", "2017-11-10 02:08:12.174377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.175160"], ["updated_at", "2017-11-10 02:08:12.175160"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.179634"], ["updated_at", "2017-11-10 02:08:12.179634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.181500"], ["updated_at", "2017-11-10 02:08:12.181500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.184163"], ["updated_at", "2017-11-10 02:08:12.184163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.184852"], ["updated_at", "2017-11-10 02:08:12.184852"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.187919"], ["updated_at", "2017-11-10 02:08:12.187919"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:08:12.189155"], ["updated_at", "2017-11-10 02:08:12.189155"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.192494"], ["updated_at", "2017-11-10 02:08:12.192494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.193291"], ["updated_at", "2017-11-10 02:08:12.193291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.195327"], ["updated_at", "2017-11-10 02:08:12.195327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.198441"], ["updated_at", "2017-11-10 02:08:12.198441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.199111"], ["updated_at", "2017-11-10 02:08:12.199111"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.200910"], ["updated_at", "2017-11-10 02:08:12.200910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.201623"], ["updated_at", "2017-11-10 02:08:12.201623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.209523"], ["updated_at", "2017-11-10 02:08:12.209523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.214546"], ["updated_at", "2017-11-10 02:08:12.214546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.219872"], ["updated_at", "2017-11-10 02:08:12.219872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.224624"], ["updated_at", "2017-11-10 02:08:12.224624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.225351"], ["updated_at", "2017-11-10 02:08:12.225351"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.226920"], ["updated_at", "2017-11-10 02:08:12.226920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.229043"], ["updated_at", "2017-11-10 02:08:12.229043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.231925"], ["updated_at", "2017-11-10 02:08:12.231925"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.232642"], ["updated_at", "2017-11-10 02:08:12.232642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.237595"], ["updated_at", "2017-11-10 02:08:12.237595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.238497"], ["updated_at", "2017-11-10 02:08:12.238497"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.241054"], ["updated_at", "2017-11-10 02:08:12.241054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.241946"], ["updated_at", "2017-11-10 02:08:12.241946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.250397"], ["updated_at", "2017-11-10 02:08:12.250397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:08:12.257075"], ["updated_at", "2017-11-10 02:08:12.257075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:08:12.258677"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:08:12.259743"], ["updated_at", "2017-11-10 02:08:12.259743"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:08:12.260583"], ["updated_at", "2017-11-10 02:08:12.260583"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.265211"], ["updated_at", "2017-11-10 02:08:12.265211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:08:12.269865"], ["updated_at", "2017-11-10 02:08:12.269865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:08:12.271858"], ["updated_at", "2017-11-10 02:08:12.271858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:08:12.300855"], ["updated_at", "2017-11-10 02:08:12.300855"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.305817"], ["updated_at", "2017-11-10 02:08:12.305817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:08:12.310938"], ["updated_at", "2017-11-10 02:08:12.310938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.321697"], ["updated_at", "2017-11-10 02:08:12.321697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.323608"], ["updated_at", "2017-11-10 02:08:12.323608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.326523"], ["updated_at", "2017-11-10 02:08:12.326523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.330097"], ["updated_at", "2017-11-10 02:08:12.330097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.334607"], ["updated_at", "2017-11-10 02:08:12.334607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.335457"], ["updated_at", "2017-11-10 02:08:12.335457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:08:12.340236"], ["updated_at", "2017-11-10 02:08:12.340236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:08:12.341086"], ["updated_at", "2017-11-10 02:08:12.341086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:08:12.342781"], ["updated_at", "2017-11-10 02:08:12.342781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:08:12.343693"], ["updated_at", "2017-11-10 02:08:12.343693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.350391"], ["updated_at", "2017-11-10 02:08:12.350391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.352426"], ["updated_at", "2017-11-10 02:08:12.352426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.354362"], ["updated_at", "2017-11-10 02:08:12.354362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:08:12.359821"], ["updated_at", "2017-11-10 02:08:12.359821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:08:12.360604"], ["updated_at", "2017-11-10 02:08:12.360604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.361265"], ["updated_at", "2017-11-10 02:08:12.361265"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.362899"], ["updated_at", "2017-11-10 02:08:12.362899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.363566"], ["updated_at", "2017-11-10 02:08:12.363566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.365332"], ["updated_at", "2017-11-10 02:08:12.365332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.368594"], ["updated_at", "2017-11-10 02:08:12.368594"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.370589"], ["updated_at", "2017-11-10 02:08:12.370589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.371383"], ["updated_at", "2017-11-10 02:08:12.371383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.372108"], ["updated_at", "2017-11-10 02:08:12.372108"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.374942"], ["updated_at", "2017-11-10 02:08:12.374942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.375823"], ["updated_at", "2017-11-10 02:08:12.375823"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.376665"], ["updated_at", "2017-11-10 02:08:12.376665"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.386154"], ["updated_at", "2017-11-10 02:08:12.386154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.387001"], ["updated_at", "2017-11-10 02:08:12.387001"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.395651"], ["updated_at", "2017-11-10 02:08:12.395651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.400142"], ["updated_at", "2017-11-10 02:08:12.400142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.400904"], ["updated_at", "2017-11-10 02:08:12.400904"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:08:12.403380"], ["updated_at", "2017-11-10 02:08:12.403380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:08:12.404153"], ["updated_at", "2017-11-10 02:08:12.404153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:08:12.405821"], ["updated_at", "2017-11-10 02:08:12.405821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:08:12.406642"], ["updated_at", "2017-11-10 02:08:12.406642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.412393"], ["updated_at", "2017-11-10 02:08:12.412393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:12.413459"], ["updated_at", "2017-11-10 02:08:12.413459"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.456863"], ["updated_at", "2017-11-10 02:08:21.456863"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:08:21.487659"], ["updated_at", "2017-11-10 02:08:21.487659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.517855"], ["updated_at", "2017-11-10 02:08:21.517855"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.519745"], ["updated_at", "2017-11-10 02:08:21.519745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.520905"], ["updated_at", "2017-11-10 02:08:21.520905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.529918"], ["updated_at", "2017-11-10 02:08:21.529918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.530628"], ["updated_at", "2017-11-10 02:08:21.530628"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.532614"], ["updated_at", "2017-11-10 02:08:21.532614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.536222"], ["updated_at", "2017-11-10 02:08:21.536222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.537081"], ["updated_at", "2017-11-10 02:08:21.537081"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.537934"], ["updated_at", "2017-11-10 02:08:21.537934"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.540811"], ["updated_at", "2017-11-10 02:08:21.540811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.541650"], ["updated_at", "2017-11-10 02:08:21.541650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.550313"], ["updated_at", "2017-11-10 02:08:21.550313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.551091"], ["updated_at", "2017-11-10 02:08:21.551091"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.552960"], ["updated_at", "2017-11-10 02:08:21.552960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.554883"], ["updated_at", "2017-11-10 02:08:21.554883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:08:21.558198"], ["updated_at", "2017-11-10 02:08:21.558198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:08:21.558975"], ["updated_at", "2017-11-10 02:08:21.558975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:08:21.560847"], ["updated_at", "2017-11-10 02:08:21.560847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:08:21.561610"], ["updated_at", "2017-11-10 02:08:21.561610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.569488"], ["updated_at", "2017-11-10 02:08:21.569488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.571672"], ["updated_at", "2017-11-10 02:08:21.571672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.573505"], ["updated_at", "2017-11-10 02:08:21.573505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.576819"], ["updated_at", "2017-11-10 02:08:21.576819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.577775"], ["updated_at", "2017-11-10 02:08:21.577775"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:08:21.589301"], ["updated_at", "2017-11-10 02:08:21.589301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:08:21.590739"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:08:21.591970"], ["updated_at", "2017-11-10 02:08:21.591970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:08:21.592686"], ["updated_at", "2017-11-10 02:08:21.592686"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.596894"], ["updated_at", "2017-11-10 02:08:21.596894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.597829"], ["updated_at", "2017-11-10 02:08:21.597829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.600106"], ["updated_at", "2017-11-10 02:08:21.600106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.603053"], ["updated_at", "2017-11-10 02:08:21.603053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.603882"], ["updated_at", "2017-11-10 02:08:21.603882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.605974"], ["updated_at", "2017-11-10 02:08:21.605974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.609301"], ["updated_at", "2017-11-10 02:08:21.609301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:08:21.610128"], ["updated_at", "2017-11-10 02:08:21.610128"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:08:21.613778"], ["updated_at", "2017-11-10 02:08:21.613778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.626414"], ["updated_at", "2017-11-10 02:08:21.626414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.627272"], ["updated_at", "2017-11-10 02:08:21.627272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.628047"], ["updated_at", "2017-11-10 02:08:21.628047"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.631094"], ["updated_at", "2017-11-10 02:08:21.631094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.631974"], ["updated_at", "2017-11-10 02:08:21.631974"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.634079"], ["updated_at", "2017-11-10 02:08:21.634079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.641076"], ["updated_at", "2017-11-10 02:08:21.641076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.641839"], ["updated_at", "2017-11-10 02:08:21.641839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.651494"], ["updated_at", "2017-11-10 02:08:21.651494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.655153"], ["updated_at", "2017-11-10 02:08:21.655153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.655868"], ["updated_at", "2017-11-10 02:08:21.655868"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.667422"], ["updated_at", "2017-11-10 02:08:21.667422"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.674415"], ["updated_at", "2017-11-10 02:08:21.674415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.678882"], ["updated_at", "2017-11-10 02:08:21.678882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.682574"], ["updated_at", "2017-11-10 02:08:21.682574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.686043"], ["updated_at", "2017-11-10 02:08:21.686043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.686806"], ["updated_at", "2017-11-10 02:08:21.686806"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.689651"], ["updated_at", "2017-11-10 02:08:21.689651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.694863"], ["updated_at", "2017-11-10 02:08:21.694863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:08:21.700199"], ["updated_at", "2017-11-10 02:08:21.700199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:08:21.700994"], ["updated_at", "2017-11-10 02:08:21.700994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:08:21.702679"], ["updated_at", "2017-11-10 02:08:21.702679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:08:21.703598"], ["updated_at", "2017-11-10 02:08:21.703598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.706926"], ["updated_at", "2017-11-10 02:08:21.706926"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.708070"], ["updated_at", "2017-11-10 02:08:21.708070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.712573"], ["updated_at", "2017-11-10 02:08:21.712573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.713284"], ["updated_at", "2017-11-10 02:08:21.713284"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.715366"], ["updated_at", "2017-11-10 02:08:21.715366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.716016"], ["updated_at", "2017-11-10 02:08:21.716016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:08:21.720272"], ["updated_at", "2017-11-10 02:08:21.720272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:08:21.721009"], ["updated_at", "2017-11-10 02:08:21.721009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.721789"], ["updated_at", "2017-11-10 02:08:21.721789"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.723684"], ["updated_at", "2017-11-10 02:08:21.723684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.725575"], ["updated_at", "2017-11-10 02:08:21.725575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.728717"], ["updated_at", "2017-11-10 02:08:21.728717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.730753"], ["updated_at", "2017-11-10 02:08:21.730753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:08:21.733836"], ["updated_at", "2017-11-10 02:08:21.733836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:08:21.735878"], ["updated_at", "2017-11-10 02:08:21.735878"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:08:21.753347"], ["updated_at", "2017-11-10 02:08:21.753347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:08:21.754235"], ["updated_at", "2017-11-10 02:08:21.754235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:08:21.779943"], ["updated_at", "2017-11-10 02:08:21.779943"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.783208"], ["updated_at", "2017-11-10 02:08:21.783208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.796152"], ["updated_at", "2017-11-10 02:08:21.796152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.800923"], ["updated_at", "2017-11-10 02:08:21.800923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:21.803843"], ["updated_at", "2017-11-10 02:08:21.803843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.035029"], ["updated_at", "2017-11-10 02:08:47.035029"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:08:47.062185"], ["updated_at", "2017-11-10 02:08:47.062185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:08:47.063340"], ["updated_at", "2017-11-10 02:08:47.063340"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:08:47.065777"], ["updated_at", "2017-11-10 02:08:47.065777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:08:47.066932"], ["updated_at", "2017-11-10 02:08:47.066932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.076801"], ["updated_at", "2017-11-10 02:08:47.076801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.079283"], ["updated_at", "2017-11-10 02:08:47.079283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:08:47.087789"], ["updated_at", "2017-11-10 02:08:47.087789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.092907"], ["updated_at", "2017-11-10 02:08:47.092907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.102399"], ["updated_at", "2017-11-10 02:08:47.102399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.106670"], ["updated_at", "2017-11-10 02:08:47.106670"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.107696"], ["updated_at", "2017-11-10 02:08:47.107696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.116750"], ["updated_at", "2017-11-10 02:08:47.116750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.117591"], ["updated_at", "2017-11-10 02:08:47.117591"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.120138"], ["updated_at", "2017-11-10 02:08:47.120138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.120986"], ["updated_at", "2017-11-10 02:08:47.120986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.125836"], ["updated_at", "2017-11-10 02:08:47.125836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.126677"], ["updated_at", "2017-11-10 02:08:47.126677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.127411"], ["updated_at", "2017-11-10 02:08:47.127411"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.130019"], ["updated_at", "2017-11-10 02:08:47.130019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.134735"], ["updated_at", "2017-11-10 02:08:47.134735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.135549"], ["updated_at", "2017-11-10 02:08:47.135549"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.138323"], ["updated_at", "2017-11-10 02:08:47.138323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.145102"], ["updated_at", "2017-11-10 02:08:47.145102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:08:47.150902"], ["updated_at", "2017-11-10 02:08:47.150902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:08:47.153498"], ["updated_at", "2017-11-10 02:08:47.153498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.164494"], ["updated_at", "2017-11-10 02:08:47.164494"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:08:47.172217"], ["updated_at", "2017-11-10 02:08:47.172217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.189994"], ["updated_at", "2017-11-10 02:08:47.189994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.191044"], ["updated_at", "2017-11-10 02:08:47.191044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.197060"], ["updated_at", "2017-11-10 02:08:47.197060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.197898"], ["updated_at", "2017-11-10 02:08:47.197898"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.200621"], ["updated_at", "2017-11-10 02:08:47.200621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.207291"], ["updated_at", "2017-11-10 02:08:47.207291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.208741"], ["updated_at", "2017-11-10 02:08:47.208741"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.210940"], ["updated_at", "2017-11-10 02:08:47.210940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.214764"], ["updated_at", "2017-11-10 02:08:47.214764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.215941"], ["updated_at", "2017-11-10 02:08:47.215941"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.216797"], ["updated_at", "2017-11-10 02:08:47.216797"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:08:47.226507"], ["updated_at", "2017-11-10 02:08:47.226507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 02:08:47.228015"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:08:47.229793"], ["updated_at", "2017-11-10 02:08:47.229793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:08:47.230822"], ["updated_at", "2017-11-10 02:08:47.230822"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.237755"], ["updated_at", "2017-11-10 02:08:47.237755"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.238728"], ["updated_at", "2017-11-10 02:08:47.238728"]]  (0.3ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.256115"], ["updated_at", "2017-11-10 02:08:47.256115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.262414"], ["updated_at", "2017-11-10 02:08:47.262414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.264668"], ["updated_at", "2017-11-10 02:08:47.264668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.266759"], ["updated_at", "2017-11-10 02:08:47.266759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.270873"], ["updated_at", "2017-11-10 02:08:47.270873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.271859"], ["updated_at", "2017-11-10 02:08:47.271859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.287458"], ["updated_at", "2017-11-10 02:08:47.287458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.289464"], ["updated_at", "2017-11-10 02:08:47.289464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.293097"], ["updated_at", "2017-11-10 02:08:47.293097"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.295322"], ["updated_at", "2017-11-10 02:08:47.295322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.296108"], ["updated_at", "2017-11-10 02:08:47.296108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.298112"], ["updated_at", "2017-11-10 02:08:47.298112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.7ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.301890"], ["updated_at", "2017-11-10 02:08:47.301890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.303473"], ["updated_at", "2017-11-10 02:08:47.303473"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:08:47.305876"], ["updated_at", "2017-11-10 02:08:47.305876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:08:47.306675"], ["updated_at", "2017-11-10 02:08:47.306675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:08:47.308325"], ["updated_at", "2017-11-10 02:08:47.308325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:08:47.309124"], ["updated_at", "2017-11-10 02:08:47.309124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.315060"], ["updated_at", "2017-11-10 02:08:47.315060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.315822"], ["updated_at", "2017-11-10 02:08:47.315822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.327768"], ["updated_at", "2017-11-10 02:08:47.327768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:08:47.328599"], ["updated_at", "2017-11-10 02:08:47.328599"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.332577"], ["updated_at", "2017-11-10 02:08:47.332577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.333280"], ["updated_at", "2017-11-10 02:08:47.333280"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:08:47.335003"], ["updated_at", "2017-11-10 02:08:47.335003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:08:47.335830"], ["updated_at", "2017-11-10 02:08:47.335830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.336827"], ["updated_at", "2017-11-10 02:08:47.336827"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.338656"], ["updated_at", "2017-11-10 02:08:47.338656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.339524"], ["updated_at", "2017-11-10 02:08:47.339524"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.341854"], ["updated_at", "2017-11-10 02:08:47.341854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.352556"], ["updated_at", "2017-11-10 02:08:47.352556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.357048"], ["updated_at", "2017-11-10 02:08:47.357048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.361216"], ["updated_at", "2017-11-10 02:08:47.361216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.384657"], ["updated_at", "2017-11-10 02:08:47.384657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.389971"], ["updated_at", "2017-11-10 02:08:47.389971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:08:47.392449"], ["updated_at", "2017-11-10 02:08:47.392449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:08:47.397489"], ["updated_at", "2017-11-10 02:08:47.397489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:08:47.398281"], ["updated_at", "2017-11-10 02:08:47.398281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 6], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:08:47.433175"], ["updated_at", "2017-11-10 02:08:47.433175"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.150284"], ["updated_at", "2017-11-10 02:09:19.150284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:09:19.205037"], ["updated_at", "2017-11-10 02:09:19.205037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:09:19.206174"], ["updated_at", "2017-11-10 02:09:19.206174"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:09:19.251008"], ["updated_at", "2017-11-10 02:09:19.251008"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.253321"], ["updated_at", "2017-11-10 02:09:19.253321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.258665"], ["updated_at", "2017-11-10 02:09:19.258665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.261843"], ["updated_at", "2017-11-10 02:09:19.261843"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.427262"], ["updated_at", "2017-11-10 02:09:19.427262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.430796"], ["updated_at", "2017-11-10 02:09:19.430796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.434817"], ["updated_at", "2017-11-10 02:09:19.434817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:09:19.435853"], ["updated_at", "2017-11-10 02:09:19.435853"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.438959"], ["updated_at", "2017-11-10 02:09:19.438959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.439929"], ["updated_at", "2017-11-10 02:09:19.439929"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.442961"], ["updated_at", "2017-11-10 02:09:19.442961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.443857"], ["updated_at", "2017-11-10 02:09:19.443857"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.447608"], ["updated_at", "2017-11-10 02:09:19.447608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.448810"], ["updated_at", "2017-11-10 02:09:19.448810"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.452037"], ["updated_at", "2017-11-10 02:09:19.452037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.453080"], ["updated_at", "2017-11-10 02:09:19.453080"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.455823"], ["updated_at", "2017-11-10 02:09:19.455823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.456864"], ["updated_at", "2017-11-10 02:09:19.456864"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.461557"], ["updated_at", "2017-11-10 02:09:19.461557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.462523"], ["updated_at", "2017-11-10 02:09:19.462523"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.480226"], ["updated_at", "2017-11-10 02:09:19.480226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.485712"], ["updated_at", "2017-11-10 02:09:19.485712"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.488123"], ["updated_at", "2017-11-10 02:09:19.488123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.492962"], ["updated_at", "2017-11-10 02:09:19.492962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.495755"], ["updated_at", "2017-11-10 02:09:19.495755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.498277"], ["updated_at", "2017-11-10 02:09:19.498277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.503167"], ["updated_at", "2017-11-10 02:09:19.503167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.504595"], ["updated_at", "2017-11-10 02:09:19.504595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.507380"], ["updated_at", "2017-11-10 02:09:19.507380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:09:19.516132"], ["updated_at", "2017-11-10 02:09:19.516132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:09:19.518885"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:09:19.520145"], ["updated_at", "2017-11-10 02:09:19.520145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:09:19.521275"], ["updated_at", "2017-11-10 02:09:19.521275"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.526453"], ["updated_at", "2017-11-10 02:09:19.526453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.527416"], ["updated_at", "2017-11-10 02:09:19.527416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.528660"], ["updated_at", "2017-11-10 02:09:19.528660"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.533203"], ["updated_at", "2017-11-10 02:09:19.533203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.539753"], ["updated_at", "2017-11-10 02:09:19.539753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:09:19.557669"], ["updated_at", "2017-11-10 02:09:19.557669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:09:19.558674"], ["updated_at", "2017-11-10 02:09:19.558674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:09:19.560519"], ["updated_at", "2017-11-10 02:09:19.560519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:09:19.561470"], ["updated_at", "2017-11-10 02:09:19.561470"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.565302"], ["updated_at", "2017-11-10 02:09:19.565302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:09:19.573767"], ["updated_at", "2017-11-10 02:09:19.573767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:09:19.590733"], ["updated_at", "2017-11-10 02:09:19.590733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:09:19.600456"], ["updated_at", "2017-11-10 02:09:19.600456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:09:19.601405"], ["updated_at", "2017-11-10 02:09:19.601405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.602248"], ["updated_at", "2017-11-10 02:09:19.602248"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:09:19.604477"], ["updated_at", "2017-11-10 02:09:19.604477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:09:19.607446"], ["updated_at", "2017-11-10 02:09:19.607446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.622130"], ["updated_at", "2017-11-10 02:09:19.622130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.628816"], ["updated_at", "2017-11-10 02:09:19.628816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.629815"], ["updated_at", "2017-11-10 02:09:19.629815"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.635777"], ["updated_at", "2017-11-10 02:09:19.635777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.636718"], ["updated_at", "2017-11-10 02:09:19.636718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.645267"], ["updated_at", "2017-11-10 02:09:19.645267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.646410"], ["updated_at", "2017-11-10 02:09:19.646410"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.660187"], ["updated_at", "2017-11-10 02:09:19.660187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.666179"], ["updated_at", "2017-11-10 02:09:19.666179"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.671159"], ["updated_at", "2017-11-10 02:09:19.671159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.676770"], ["updated_at", "2017-11-10 02:09:19.676770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.678147"], ["updated_at", "2017-11-10 02:09:19.678147"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.685523"], ["updated_at", "2017-11-10 02:09:19.685523"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.686548"], ["updated_at", "2017-11-10 02:09:19.686548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:09:19.698139"], ["updated_at", "2017-11-10 02:09:19.698139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:09:19.699182"], ["updated_at", "2017-11-10 02:09:19.699182"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:09:19.701545"], ["updated_at", "2017-11-10 02:09:19.701545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:09:19.702572"], ["updated_at", "2017-11-10 02:09:19.702572"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.711224"], ["updated_at", "2017-11-10 02:09:19.711224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.714345"], ["updated_at", "2017-11-10 02:09:19.714345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.717913"], ["updated_at", "2017-11-10 02:09:19.717913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.718990"], ["updated_at", "2017-11-10 02:09:19.718990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.719955"], ["updated_at", "2017-11-10 02:09:19.719955"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.726201"], ["updated_at", "2017-11-10 02:09:19.726201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.727343"], ["updated_at", "2017-11-10 02:09:19.727343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.730166"], ["updated_at", "2017-11-10 02:09:19.730166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.734135"], ["updated_at", "2017-11-10 02:09:19.734135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.740225"], ["updated_at", "2017-11-10 02:09:19.740225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.742920"], ["updated_at", "2017-11-10 02:09:19.742920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.747223"], ["updated_at", "2017-11-10 02:09:19.747223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:09:19.748360"], ["updated_at", "2017-11-10 02:09:19.748360"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.2ms) DELETE FROM "test_models" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.083567"], ["updated_at", "2017-11-10 02:11:02.083567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.084808"], ["updated_at", "2017-11-10 02:11:02.084808"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.117997"], ["updated_at", "2017-11-10 02:11:02.117997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.119040"], ["updated_at", "2017-11-10 02:11:02.119040"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:11:02.124076"], ["updated_at", "2017-11-10 02:11:02.124076"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:11:02.126605"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:11:02.128889"], ["updated_at", "2017-11-10 02:11:02.128889"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:11:02.130065"], ["updated_at", "2017-11-10 02:11:02.130065"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.134323"], ["updated_at", "2017-11-10 02:11:02.134323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.135175"], ["updated_at", "2017-11-10 02:11:02.135175"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.137114"], ["updated_at", "2017-11-10 02:11:02.137114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.143790"], ["updated_at", "2017-11-10 02:11:02.143790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.145364"], ["updated_at", "2017-11-10 02:11:02.145364"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.148150"], ["updated_at", "2017-11-10 02:11:02.148150"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.154477"], ["updated_at", "2017-11-10 02:11:02.154477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.157258"], ["updated_at", "2017-11-10 02:11:02.157258"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.162624"], ["updated_at", "2017-11-10 02:11:02.162624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.163610"], ["updated_at", "2017-11-10 02:11:02.163610"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.166577"], ["updated_at", "2017-11-10 02:11:02.166577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.171407"], ["updated_at", "2017-11-10 02:11:02.171407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:11:02.179131"], ["updated_at", "2017-11-10 02:11:02.179131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.199208"], ["updated_at", "2017-11-10 02:11:02.199208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.200249"], ["updated_at", "2017-11-10 02:11:02.200249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.210689"], ["updated_at", "2017-11-10 02:11:02.210689"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:11:02.217835"], ["updated_at", "2017-11-10 02:11:02.217835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:11:02.219027"], ["updated_at", "2017-11-10 02:11:02.219027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:11:02.221457"], ["updated_at", "2017-11-10 02:11:02.221457"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:11:02.222907"], ["updated_at", "2017-11-10 02:11:02.222907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:11:02.226830"], ["updated_at", "2017-11-10 02:11:02.226830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:11:02.228050"], ["updated_at", "2017-11-10 02:11:02.228050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.229133"], ["updated_at", "2017-11-10 02:11:02.229133"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.246087"], ["updated_at", "2017-11-10 02:11:02.246087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.247346"], ["updated_at", "2017-11-10 02:11:02.247346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.250437"], ["updated_at", "2017-11-10 02:11:02.250437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.254405"], ["updated_at", "2017-11-10 02:11:02.254405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.255307"], ["updated_at", "2017-11-10 02:11:02.255307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.256201"], ["updated_at", "2017-11-10 02:11:02.256201"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.259530"], ["updated_at", "2017-11-10 02:11:02.259530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:11:02.260689"], ["updated_at", "2017-11-10 02:11:02.260689"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 02:11:02.277665"], ["updated_at", "2017-11-10 02:11:02.277665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.280020"], ["updated_at", "2017-11-10 02:11:02.280020"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.284328"], ["updated_at", "2017-11-10 02:11:02.284328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.288301"], ["updated_at", "2017-11-10 02:11:02.288301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.289109"], ["updated_at", "2017-11-10 02:11:02.289109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:11:02.298877"], ["updated_at", "2017-11-10 02:11:02.298877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:11:02.299768"], ["updated_at", "2017-11-10 02:11:02.299768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:11:02.301389"], ["updated_at", "2017-11-10 02:11:02.301389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:11:02.302197"], ["updated_at", "2017-11-10 02:11:02.302197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.311537"], ["updated_at", "2017-11-10 02:11:02.311537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:11:02.321665"], ["updated_at", "2017-11-10 02:11:02.321665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.327998"], ["updated_at", "2017-11-10 02:11:02.327998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.328909"], ["updated_at", "2017-11-10 02:11:02.328909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.335491"], ["updated_at", "2017-11-10 02:11:02.335491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.337620"], ["updated_at", "2017-11-10 02:11:02.337620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.340938"], ["updated_at", "2017-11-10 02:11:02.340938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.341876"], ["updated_at", "2017-11-10 02:11:02.341876"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.352740"], ["updated_at", "2017-11-10 02:11:02.352740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.353569"], ["updated_at", "2017-11-10 02:11:02.353569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.358328"], ["updated_at", "2017-11-10 02:11:02.358328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.360931"], ["updated_at", "2017-11-10 02:11:02.360931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:11:02.365449"], ["updated_at", "2017-11-10 02:11:02.365449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:11:02.367749"], ["updated_at", "2017-11-10 02:11:02.367749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.375621"], ["updated_at", "2017-11-10 02:11:02.375621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.376457"], ["updated_at", "2017-11-10 02:11:02.376457"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.379353"], ["updated_at", "2017-11-10 02:11:02.379353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.380322"], ["updated_at", "2017-11-10 02:11:02.380322"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.383724"], ["updated_at", "2017-11-10 02:11:02.383724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.386199"], ["updated_at", "2017-11-10 02:11:02.386199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.388377"], ["updated_at", "2017-11-10 02:11:02.388377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.391536"], ["updated_at", "2017-11-10 02:11:02.391536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.392426"], ["updated_at", "2017-11-10 02:11:02.392426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.393158"], ["updated_at", "2017-11-10 02:11:02.393158"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.396073"], ["updated_at", "2017-11-10 02:11:02.396073"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.405219"], ["updated_at", "2017-11-10 02:11:02.405219"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.415293"], ["updated_at", "2017-11-10 02:11:02.415293"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.419808"], ["updated_at", "2017-11-10 02:11:02.419808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.420700"], ["updated_at", "2017-11-10 02:11:02.420700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.423140"], ["updated_at", "2017-11-10 02:11:02.423140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.426880"], ["updated_at", "2017-11-10 02:11:02.426880"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.460771"], ["updated_at", "2017-11-10 02:11:02.460771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:11:02.473398"], ["updated_at", "2017-11-10 02:11:02.473398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:11:02.474243"], ["updated_at", "2017-11-10 02:11:02.474243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.501805"], ["updated_at", "2017-11-10 02:11:02.501805"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.511567"], ["updated_at", "2017-11-10 02:11:02.511567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:02.515103"], ["updated_at", "2017-11-10 02:11:02.515103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:11:02.524524"], ["updated_at", "2017-11-10 02:11:02.524524"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.113957"], ["updated_at", "2017-11-10 02:11:10.113957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.146018"], ["updated_at", "2017-11-10 02:11:10.146018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.148941"], ["updated_at", "2017-11-10 02:11:10.148941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.152774"], ["updated_at", "2017-11-10 02:11:10.152774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.153732"], ["updated_at", "2017-11-10 02:11:10.153732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.3ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.167157"], ["updated_at", "2017-11-10 02:11:10.167157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.173002"], ["updated_at", "2017-11-10 02:11:10.173002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.183379"], ["updated_at", "2017-11-10 02:11:10.183379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.191339"], ["updated_at", "2017-11-10 02:11:10.191339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (7.8ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:11:10.207619"], ["updated_at", "2017-11-10 02:11:10.207619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.212462"], ["updated_at", "2017-11-10 02:11:10.212462"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.213533"], ["updated_at", "2017-11-10 02:11:10.213533"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.215797"], ["updated_at", "2017-11-10 02:11:10.215797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.220386"], ["updated_at", "2017-11-10 02:11:10.220386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.221279"], ["updated_at", "2017-11-10 02:11:10.221279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.222982"], ["updated_at", "2017-11-10 02:11:10.222982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.229022"], ["updated_at", "2017-11-10 02:11:10.229022"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.230048"], ["updated_at", "2017-11-10 02:11:10.230048"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.232039"], ["updated_at", "2017-11-10 02:11:10.232039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.233879"], ["updated_at", "2017-11-10 02:11:10.233879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.249799"], ["updated_at", "2017-11-10 02:11:10.249799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:11:10.256411"], ["updated_at", "2017-11-10 02:11:10.256411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:11:10.257151"], ["updated_at", "2017-11-10 02:11:10.257151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:11:10.258922"], ["updated_at", "2017-11-10 02:11:10.258922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:11:10.259832"], ["updated_at", "2017-11-10 02:11:10.259832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:11:10.269294"], ["updated_at", "2017-11-10 02:11:10.269294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:11:10.271139"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:11:10.274880"], ["updated_at", "2017-11-10 02:11:10.274880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:11:10.275798"], ["updated_at", "2017-11-10 02:11:10.275798"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.279928"], ["updated_at", "2017-11-10 02:11:10.279928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.283901"], ["updated_at", "2017-11-10 02:11:10.283901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.284802"], ["updated_at", "2017-11-10 02:11:10.284802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.285631"], ["updated_at", "2017-11-10 02:11:10.285631"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.287977"], ["updated_at", "2017-11-10 02:11:10.287977"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.288783"], ["updated_at", "2017-11-10 02:11:10.288783"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.304856"], ["updated_at", "2017-11-10 02:11:10.304856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:11:10.309494"], ["updated_at", "2017-11-10 02:11:10.309494"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.320199"], ["updated_at", "2017-11-10 02:11:10.320199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.321014"], ["updated_at", "2017-11-10 02:11:10.321014"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.323122"], ["updated_at", "2017-11-10 02:11:10.323122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.323784"], ["updated_at", "2017-11-10 02:11:10.323784"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.324590"], ["updated_at", "2017-11-10 02:11:10.324590"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.326876"], ["updated_at", "2017-11-10 02:11:10.326876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.327686"], ["updated_at", "2017-11-10 02:11:10.327686"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.332387"], ["updated_at", "2017-11-10 02:11:10.332387"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.334188"], ["updated_at", "2017-11-10 02:11:10.334188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.334977"], ["updated_at", "2017-11-10 02:11:10.334977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.336627"], ["updated_at", "2017-11-10 02:11:10.336627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.339465"], ["updated_at", "2017-11-10 02:11:10.339465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.340119"], ["updated_at", "2017-11-10 02:11:10.340119"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.341824"], ["updated_at", "2017-11-10 02:11:10.341824"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:11:10.348696"], ["updated_at", "2017-11-10 02:11:10.348696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:11:10.349575"], ["updated_at", "2017-11-10 02:11:10.349575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.350324"], ["updated_at", "2017-11-10 02:11:10.350324"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.352242"], ["updated_at", "2017-11-10 02:11:10.352242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.352997"], ["updated_at", "2017-11-10 02:11:10.352997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.365608"], ["updated_at", "2017-11-10 02:11:10.365608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.366441"], ["updated_at", "2017-11-10 02:11:10.366441"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.368757"], ["updated_at", "2017-11-10 02:11:10.368757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.370902"], ["updated_at", "2017-11-10 02:11:10.370902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.372630"], ["updated_at", "2017-11-10 02:11:10.372630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:11:10.375509"], ["updated_at", "2017-11-10 02:11:10.375509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:11:10.376290"], ["updated_at", "2017-11-10 02:11:10.376290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:11:10.378431"], ["updated_at", "2017-11-10 02:11:10.378431"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:11:10.379780"], ["updated_at", "2017-11-10 02:11:10.379780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.383314"], ["updated_at", "2017-11-10 02:11:10.383314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.384102"], ["updated_at", "2017-11-10 02:11:10.384102"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.385754"], ["updated_at", "2017-11-10 02:11:10.385754"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.387513"], ["updated_at", "2017-11-10 02:11:10.387513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:11:10.390892"], ["updated_at", "2017-11-10 02:11:10.390892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:11:10.392958"], ["updated_at", "2017-11-10 02:11:10.392958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.403740"], ["updated_at", "2017-11-10 02:11:10.403740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:11:10.404595"], ["updated_at", "2017-11-10 02:11:10.404595"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 02:11:10.407051"], ["updated_at", "2017-11-10 02:11:10.407051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.409183"], ["updated_at", "2017-11-10 02:11:10.409183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.413211"], ["updated_at", "2017-11-10 02:11:10.413211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.414066"], ["updated_at", "2017-11-10 02:11:10.414066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.419970"], ["updated_at", "2017-11-10 02:11:10.419970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.420717"], ["updated_at", "2017-11-10 02:11:10.420717"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:11:10.506376"], ["updated_at", "2017-11-10 02:11:10.506376"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:11:10.508988"], ["updated_at", "2017-11-10 02:11:10.508988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:11:10.509808"], ["updated_at", "2017-11-10 02:11:10.509808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (2.9ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.544589"], ["updated_at", "2017-11-10 02:11:10.544589"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.550435"], ["updated_at", "2017-11-10 02:11:10.550435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.552911"], ["updated_at", "2017-11-10 02:11:10.552911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:10.560207"], ["updated_at", "2017-11-10 02:11:10.560207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.480517"], ["updated_at", "2017-11-10 02:11:19.480517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.484553"], ["updated_at", "2017-11-10 02:11:19.484553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.507847"], ["updated_at", "2017-11-10 02:11:19.507847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:11:19.521485"], ["updated_at", "2017-11-10 02:11:19.521485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:11:19.522717"], ["updated_at", "2017-11-10 02:11:19.522717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:11:19.525069"], ["updated_at", "2017-11-10 02:11:19.525069"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:11:19.534191"], ["updated_at", "2017-11-10 02:11:19.534191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.543915"], ["updated_at", "2017-11-10 02:11:19.543915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:11:19.556266"], ["updated_at", "2017-11-10 02:11:19.556266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 02:11:19.557403"], ["updated_at", "2017-11-10 02:11:19.557403"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.558300"], ["updated_at", "2017-11-10 02:11:19.558300"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 02:11:19.560317"], ["updated_at", "2017-11-10 02:11:19.560317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 02:11:19.561210"], ["updated_at", "2017-11-10 02:11:19.561210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 02:11:19.563498"], ["updated_at", "2017-11-10 02:11:19.563498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 02:11:19.564600"], ["updated_at", "2017-11-10 02:11:19.564600"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.568459"], ["updated_at", "2017-11-10 02:11:19.568459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.569232"], ["updated_at", "2017-11-10 02:11:19.569232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.575131"], ["updated_at", "2017-11-10 02:11:19.575131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.575972"], ["updated_at", "2017-11-10 02:11:19.575972"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.577685"], ["updated_at", "2017-11-10 02:11:19.577685"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.579723"], ["updated_at", "2017-11-10 02:11:19.579723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.580536"], ["updated_at", "2017-11-10 02:11:19.580536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.592707"], ["updated_at", "2017-11-10 02:11:19.592707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.594764"], ["updated_at", "2017-11-10 02:11:19.594764"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.598569"], ["updated_at", "2017-11-10 02:11:19.598569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.599447"], ["updated_at", "2017-11-10 02:11:19.599447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 02:11:19.607898"], ["updated_at", "2017-11-10 02:11:19.607898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 02:11:19.609858"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:11:19.611475"], ["updated_at", "2017-11-10 02:11:19.611475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 02:11:19.612480"], ["updated_at", "2017-11-10 02:11:19.612480"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.619135"], ["updated_at", "2017-11-10 02:11:19.619135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.621839"], ["updated_at", "2017-11-10 02:11:19.621839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.625340"], ["updated_at", "2017-11-10 02:11:19.625340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.631799"], ["updated_at", "2017-11-10 02:11:19.631799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 02:11:19.637802"], ["updated_at", "2017-11-10 02:11:19.637802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 02:11:19.654627"], ["updated_at", "2017-11-10 02:11:19.654627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.657763"], ["updated_at", "2017-11-10 02:11:19.657763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 02:11:19.663461"], ["updated_at", "2017-11-10 02:11:19.663461"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 02:11:19.667249"], ["updated_at", "2017-11-10 02:11:19.667249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.676225"], ["updated_at", "2017-11-10 02:11:19.676225"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.678152"], ["updated_at", "2017-11-10 02:11:19.678152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.687790"], ["updated_at", "2017-11-10 02:11:19.687790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.688965"], ["updated_at", "2017-11-10 02:11:19.688965"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.692685"], ["updated_at", "2017-11-10 02:11:19.692685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.698414"], ["updated_at", "2017-11-10 02:11:19.698414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.699597"], ["updated_at", "2017-11-10 02:11:19.699597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.725253"], ["updated_at", "2017-11-10 02:11:19.725253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.728976"], ["updated_at", "2017-11-10 02:11:19.728976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.729680"], ["updated_at", "2017-11-10 02:11:19.729680"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.731226"], ["updated_at", "2017-11-10 02:11:19.731226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.731941"], ["updated_at", "2017-11-10 02:11:19.731941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.738916"], ["updated_at", "2017-11-10 02:11:19.738916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.739725"], ["updated_at", "2017-11-10 02:11:19.739725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.741554"], ["updated_at", "2017-11-10 02:11:19.741554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.744767"], ["updated_at", "2017-11-10 02:11:19.744767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.749201"], ["updated_at", "2017-11-10 02:11:19.749201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.749930"], ["updated_at", "2017-11-10 02:11:19.749930"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.751884"], ["updated_at", "2017-11-10 02:11:19.751884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.752589"], ["updated_at", "2017-11-10 02:11:19.752589"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.755595"], ["updated_at", "2017-11-10 02:11:19.755595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.762402"], ["updated_at", "2017-11-10 02:11:19.762402"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.768063"], ["updated_at", "2017-11-10 02:11:19.768063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.768840"], ["updated_at", "2017-11-10 02:11:19.768840"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.770966"], ["updated_at", "2017-11-10 02:11:19.770966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.771736"], ["updated_at", "2017-11-10 02:11:19.771736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.772627"], ["updated_at", "2017-11-10 02:11:19.772627"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.774805"], ["updated_at", "2017-11-10 02:11:19.774805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.775541"], ["updated_at", "2017-11-10 02:11:19.775541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.776200"], ["updated_at", "2017-11-10 02:11:19.776200"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.781210"], ["updated_at", "2017-11-10 02:11:19.781210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.783448"], ["updated_at", "2017-11-10 02:11:19.783448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.785394"], ["updated_at", "2017-11-10 02:11:19.785394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.789053"], ["updated_at", "2017-11-10 02:11:19.789053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.794536"], ["updated_at", "2017-11-10 02:11:19.794536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 02:11:19.811415"], ["updated_at", "2017-11-10 02:11:19.811415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.815584"], ["updated_at", "2017-11-10 02:11:19.815584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 02:11:19.816371"], ["updated_at", "2017-11-10 02:11:19.816371"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.818591"], ["updated_at", "2017-11-10 02:11:19.818591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.819375"], ["updated_at", "2017-11-10 02:11:19.819375"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.878034"], ["updated_at", "2017-11-10 02:11:19.878034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.885319"], ["updated_at", "2017-11-10 02:11:19.885319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.890563"], ["updated_at", "2017-11-10 02:11:19.890563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 02:11:19.893038"], ["updated_at", "2017-11-10 02:11:19.893038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 02:11:19.898072"], ["updated_at", "2017-11-10 02:11:19.898072"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 8], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 02:11:19.912937"], ["updated_at", "2017-11-10 02:11:19.912937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 02:11:19.913923"], ["updated_at", "2017-11-10 02:11:19.913923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 23:49:21.650118"], ["updated_at", "2017-11-10 23:49:21.650118"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 23:49:21.651261"], ["updated_at", "2017-11-10 23:49:21.651261"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 23:49:21.685014"], ["updated_at", "2017-11-10 23:49:21.685014"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.689553"], ["updated_at", "2017-11-10 23:49:21.689553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.713602"], ["updated_at", "2017-11-10 23:49:21.713602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.719734"], ["updated_at", "2017-11-10 23:49:21.719734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.723418"], ["updated_at", "2017-11-10 23:49:21.723418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.842588"], ["updated_at", "2017-11-10 23:49:21.842588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.843692"], ["updated_at", "2017-11-10 23:49:21.843692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.850034"], ["updated_at", "2017-11-10 23:49:21.850034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.852648"], ["updated_at", "2017-11-10 23:49:21.852648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.856068"], ["updated_at", "2017-11-10 23:49:21.856068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.856774"], ["updated_at", "2017-11-10 23:49:21.856774"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 23:49:21.858450"], ["updated_at", "2017-11-10 23:49:21.858450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.860212"], ["updated_at", "2017-11-10 23:49:21.860212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.865555"], ["updated_at", "2017-11-10 23:49:21.865555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.869584"], ["updated_at", "2017-11-10 23:49:21.869584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 23:49:21.870851"], ["updated_at", "2017-11-10 23:49:21.870851"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.873492"], ["updated_at", "2017-11-10 23:49:21.873492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.874289"], ["updated_at", "2017-11-10 23:49:21.874289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 23:49:21.882387"], ["updated_at", "2017-11-10 23:49:21.882387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 23:49:21.884343"], ["updated_at", "2017-11-10 23:49:21.884343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.890848"], ["updated_at", "2017-11-10 23:49:21.890848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.892547"], ["updated_at", "2017-11-10 23:49:21.892547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.894618"], ["updated_at", "2017-11-10 23:49:21.894618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 23:49:21.899406"], ["updated_at", "2017-11-10 23:49:21.899406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 23:49:21.900840"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:49:21.901944"], ["updated_at", "2017-11-10 23:49:21.901944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 23:49:21.902728"], ["updated_at", "2017-11-10 23:49:21.902728"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.905829"], ["updated_at", "2017-11-10 23:49:21.905829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.906488"], ["updated_at", "2017-11-10 23:49:21.906488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.908145"], ["updated_at", "2017-11-10 23:49:21.908145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.913871"], ["updated_at", "2017-11-10 23:49:21.913871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.914597"], ["updated_at", "2017-11-10 23:49:21.914597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.915313"], ["updated_at", "2017-11-10 23:49:21.915313"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.918168"], ["updated_at", "2017-11-10 23:49:21.918168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.919082"], ["updated_at", "2017-11-10 23:49:21.919082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.919850"], ["updated_at", "2017-11-10 23:49:21.919850"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:49:21.922572"], ["updated_at", "2017-11-10 23:49:21.922572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:49:21.923394"], ["updated_at", "2017-11-10 23:49:21.923394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.924062"], ["updated_at", "2017-11-10 23:49:21.924062"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.925719"], ["updated_at", "2017-11-10 23:49:21.925719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 23:49:21.930830"], ["updated_at", "2017-11-10 23:49:21.930830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.940479"], ["updated_at", "2017-11-10 23:49:21.940479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.941353"], ["updated_at", "2017-11-10 23:49:21.941353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.945799"], ["updated_at", "2017-11-10 23:49:21.945799"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.956162"], ["updated_at", "2017-11-10 23:49:21.956162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.960345"], ["updated_at", "2017-11-10 23:49:21.960345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.961376"], ["updated_at", "2017-11-10 23:49:21.961376"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.963521"], ["updated_at", "2017-11-10 23:49:21.963521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.964191"], ["updated_at", "2017-11-10 23:49:21.964191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.973164"], ["updated_at", "2017-11-10 23:49:21.973164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.977069"], ["updated_at", "2017-11-10 23:49:21.977069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:49:21.988401"], ["updated_at", "2017-11-10 23:49:21.988401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.991995"], ["updated_at", "2017-11-10 23:49:21.991995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.992822"], ["updated_at", "2017-11-10 23:49:21.992822"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.995321"], ["updated_at", "2017-11-10 23:49:21.995321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:21.999815"], ["updated_at", "2017-11-10 23:49:21.999815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.000715"], ["updated_at", "2017-11-10 23:49:22.000715"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.004071"], ["updated_at", "2017-11-10 23:49:22.004071"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.006760"], ["updated_at", "2017-11-10 23:49:22.006760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.009979"], ["updated_at", "2017-11-10 23:49:22.009979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.011059"], ["updated_at", "2017-11-10 23:49:22.011059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.012860"], ["updated_at", "2017-11-10 23:49:22.012860"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.026441"], ["updated_at", "2017-11-10 23:49:22.026441"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.030643"], ["updated_at", "2017-11-10 23:49:22.030643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.034437"], ["updated_at", "2017-11-10 23:49:22.034437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.035376"], ["updated_at", "2017-11-10 23:49:22.035376"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:49:22.038972"], ["updated_at", "2017-11-10 23:49:22.038972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:49:22.039761"], ["updated_at", "2017-11-10 23:49:22.039761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:49:22.041289"], ["updated_at", "2017-11-10 23:49:22.041289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:49:22.041991"], ["updated_at", "2017-11-10 23:49:22.041991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.045276"], ["updated_at", "2017-11-10 23:49:22.045276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.046090"], ["updated_at", "2017-11-10 23:49:22.046090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:49:22.051786"], ["updated_at", "2017-11-10 23:49:22.051786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:49:22.052724"], ["updated_at", "2017-11-10 23:49:22.052724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:49:22.054382"], ["updated_at", "2017-11-10 23:49:22.054382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:49:22.055112"], ["updated_at", "2017-11-10 23:49:22.055112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.063493"], ["updated_at", "2017-11-10 23:49:22.063493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.065728"], ["updated_at", "2017-11-10 23:49:22.065728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.069483"], ["updated_at", "2017-11-10 23:49:22.069483"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.075034"], ["updated_at", "2017-11-10 23:49:22.075034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.080741"], ["updated_at", "2017-11-10 23:49:22.080741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.081605"], ["updated_at", "2017-11-10 23:49:22.081605"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.083222"], ["updated_at", "2017-11-10 23:49:22.083222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:22.083958"], ["updated_at", "2017-11-10 23:49:22.083958"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.2ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.466397"], ["updated_at", "2017-11-10 23:49:28.466397"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 23:49:28.483896"], ["updated_at", "2017-11-10 23:49:28.483896"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 23:49:28.484912"], ["updated_at", "2017-11-10 23:49:28.484912"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.517863"], ["updated_at", "2017-11-10 23:49:28.517863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.526125"], ["updated_at", "2017-11-10 23:49:28.526125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.529493"], ["updated_at", "2017-11-10 23:49:28.529493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 23:49:28.548362"], ["updated_at", "2017-11-10 23:49:28.548362"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.613884"], ["updated_at", "2017-11-10 23:49:28.613884"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.619344"], ["updated_at", "2017-11-10 23:49:28.619344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.624833"], ["updated_at", "2017-11-10 23:49:28.624833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.625557"], ["updated_at", "2017-11-10 23:49:28.625557"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:49:28.629922"], ["updated_at", "2017-11-10 23:49:28.629922"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.633650"], ["updated_at", "2017-11-10 23:49:28.633650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:49:28.638020"], ["updated_at", "2017-11-10 23:49:28.638020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:49:28.638851"], ["updated_at", "2017-11-10 23:49:28.638851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.639529"], ["updated_at", "2017-11-10 23:49:28.639529"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.641118"], ["updated_at", "2017-11-10 23:49:28.641118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.641830"], ["updated_at", "2017-11-10 23:49:28.641830"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.643720"], ["updated_at", "2017-11-10 23:49:28.643720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.644405"], ["updated_at", "2017-11-10 23:49:28.644405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.645082"], ["updated_at", "2017-11-10 23:49:28.645082"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.647418"], ["updated_at", "2017-11-10 23:49:28.647418"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.653224"], ["updated_at", "2017-11-10 23:49:28.653224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.654443"], ["updated_at", "2017-11-10 23:49:28.654443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.655240"], ["updated_at", "2017-11-10 23:49:28.655240"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.657828"], ["updated_at", "2017-11-10 23:49:28.657828"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.658565"], ["updated_at", "2017-11-10 23:49:28.658565"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.660553"], ["updated_at", "2017-11-10 23:49:28.660553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.661228"], ["updated_at", "2017-11-10 23:49:28.661228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.665628"], ["updated_at", "2017-11-10 23:49:28.665628"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.666325"], ["updated_at", "2017-11-10 23:49:28.666325"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.668505"], ["updated_at", "2017-11-10 23:49:28.668505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.669409"], ["updated_at", "2017-11-10 23:49:28.669409"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 23:49:28.675221"], ["updated_at", "2017-11-10 23:49:28.675221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:49:28.686358"], ["updated_at", "2017-11-10 23:49:28.686358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:49:28.687514"], ["updated_at", "2017-11-10 23:49:28.687514"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:49:28.689707"], ["updated_at", "2017-11-10 23:49:28.689707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:49:28.690487"], ["updated_at", "2017-11-10 23:49:28.690487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:49:28.693926"], ["updated_at", "2017-11-10 23:49:28.693926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:49:28.694747"], ["updated_at", "2017-11-10 23:49:28.694747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:49:28.696273"], ["updated_at", "2017-11-10 23:49:28.696273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:49:28.697005"], ["updated_at", "2017-11-10 23:49:28.697005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.702938"], ["updated_at", "2017-11-10 23:49:28.702938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.704743"], ["updated_at", "2017-11-10 23:49:28.704743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.708113"], ["updated_at", "2017-11-10 23:49:28.708113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.708838"], ["updated_at", "2017-11-10 23:49:28.708838"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.710760"], ["updated_at", "2017-11-10 23:49:28.710760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.712455"], ["updated_at", "2017-11-10 23:49:28.712455"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.715928"], ["updated_at", "2017-11-10 23:49:28.715928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.716891"], ["updated_at", "2017-11-10 23:49:28.716891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.724865"], ["updated_at", "2017-11-10 23:49:28.724865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.725757"], ["updated_at", "2017-11-10 23:49:28.725757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.729979"], ["updated_at", "2017-11-10 23:49:28.729979"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.734492"], ["updated_at", "2017-11-10 23:49:28.734492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.739197"], ["updated_at", "2017-11-10 23:49:28.739197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.740030"], ["updated_at", "2017-11-10 23:49:28.740030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.754751"], ["updated_at", "2017-11-10 23:49:28.754751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.758475"], ["updated_at", "2017-11-10 23:49:28.758475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.760299"], ["updated_at", "2017-11-10 23:49:28.760299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 23:49:28.763358"], ["updated_at", "2017-11-10 23:49:28.763358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 23:49:28.765320"], ["updated_at", "2017-11-10 23:49:28.765320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.773995"], ["updated_at", "2017-11-10 23:49:28.773995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 23:49:28.775010"], ["updated_at", "2017-11-10 23:49:28.775010"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.788929"], ["updated_at", "2017-11-10 23:49:28.788929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.789761"], ["updated_at", "2017-11-10 23:49:28.789761"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 23:49:28.804627"], ["updated_at", "2017-11-10 23:49:28.804627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 23:49:28.806096"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:49:28.807012"], ["updated_at", "2017-11-10 23:49:28.807012"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 23:49:28.807979"], ["updated_at", "2017-11-10 23:49:28.807979"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.814045"], ["updated_at", "2017-11-10 23:49:28.814045"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.819179"], ["updated_at", "2017-11-10 23:49:28.819179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.821219"], ["updated_at", "2017-11-10 23:49:28.821219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.823256"], ["updated_at", "2017-11-10 23:49:28.823256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.826075"], ["updated_at", "2017-11-10 23:49:28.826075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.826805"], ["updated_at", "2017-11-10 23:49:28.826805"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.828529"], ["updated_at", "2017-11-10 23:49:28.828529"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.833761"], ["updated_at", "2017-11-10 23:49:28.833761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.834547"], ["updated_at", "2017-11-10 23:49:28.834547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.836868"], ["updated_at", "2017-11-10 23:49:28.836868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 23:49:28.847774"], ["updated_at", "2017-11-10 23:49:28.847774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.849808"], ["updated_at", "2017-11-10 23:49:28.849808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.853851"], ["updated_at", "2017-11-10 23:49:28.853851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.858860"], ["updated_at", "2017-11-10 23:49:28.858860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.864262"], ["updated_at", "2017-11-10 23:49:28.864262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.864970"], ["updated_at", "2017-11-10 23:49:28.864970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:28.866798"], ["updated_at", "2017-11-10 23:49:28.866798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 23:49:34.769000"], ["updated_at", "2017-11-10 23:49:34.769000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.806701"], ["updated_at", "2017-11-10 23:49:34.806701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.821620"], ["updated_at", "2017-11-10 23:49:34.821620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.822557"], ["updated_at", "2017-11-10 23:49:34.822557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.823411"], ["updated_at", "2017-11-10 23:49:34.823411"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.825936"], ["updated_at", "2017-11-10 23:49:34.825936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.826651"], ["updated_at", "2017-11-10 23:49:34.826651"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.828753"], ["updated_at", "2017-11-10 23:49:34.828753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.832599"], ["updated_at", "2017-11-10 23:49:34.832599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.833291"], ["updated_at", "2017-11-10 23:49:34.833291"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.835873"], ["updated_at", "2017-11-10 23:49:34.835873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.843708"], ["updated_at", "2017-11-10 23:49:34.843708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.844716"], ["updated_at", "2017-11-10 23:49:34.844716"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.847966"], ["updated_at", "2017-11-10 23:49:34.847966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.873537"], ["updated_at", "2017-11-10 23:49:34.873537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.874507"], ["updated_at", "2017-11-10 23:49:34.874507"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.877239"], ["updated_at", "2017-11-10 23:49:34.877239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.885007"], ["updated_at", "2017-11-10 23:49:34.885007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.893049"], ["updated_at", "2017-11-10 23:49:34.893049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.895841"], ["updated_at", "2017-11-10 23:49:34.895841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.897904"], ["updated_at", "2017-11-10 23:49:34.897904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.901210"], ["updated_at", "2017-11-10 23:49:34.901210"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.906604"], ["updated_at", "2017-11-10 23:49:34.906604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:49:34.911670"], ["updated_at", "2017-11-10 23:49:34.911670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:49:34.912576"], ["updated_at", "2017-11-10 23:49:34.912576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:49:34.914888"], ["updated_at", "2017-11-10 23:49:34.914888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:49:34.915668"], ["updated_at", "2017-11-10 23:49:34.915668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.919566"], ["updated_at", "2017-11-10 23:49:34.919566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.920778"], ["updated_at", "2017-11-10 23:49:34.920778"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.921991"], ["updated_at", "2017-11-10 23:49:34.921991"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.925513"], ["updated_at", "2017-11-10 23:49:34.925513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.926244"], ["updated_at", "2017-11-10 23:49:34.926244"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.928227"], ["updated_at", "2017-11-10 23:49:34.928227"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.930863"], ["updated_at", "2017-11-10 23:49:34.930863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.936613"], ["updated_at", "2017-11-10 23:49:34.936613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.938810"], ["updated_at", "2017-11-10 23:49:34.938810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:49:34.942172"], ["updated_at", "2017-11-10 23:49:34.942172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:49:34.943071"], ["updated_at", "2017-11-10 23:49:34.943071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:49:34.944602"], ["updated_at", "2017-11-10 23:49:34.944602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:49:34.945389"], ["updated_at", "2017-11-10 23:49:34.945389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.952412"], ["updated_at", "2017-11-10 23:49:34.952412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.953403"], ["updated_at", "2017-11-10 23:49:34.953403"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.956771"], ["updated_at", "2017-11-10 23:49:34.956771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.957811"], ["updated_at", "2017-11-10 23:49:34.957811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.963182"], ["updated_at", "2017-11-10 23:49:34.963182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.963929"], ["updated_at", "2017-11-10 23:49:34.963929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.965981"], ["updated_at", "2017-11-10 23:49:34.965981"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.969673"], ["updated_at", "2017-11-10 23:49:34.969673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.970840"], ["updated_at", "2017-11-10 23:49:34.970840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:49:34.982239"], ["updated_at", "2017-11-10 23:49:34.982239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:49:34.983103"], ["updated_at", "2017-11-10 23:49:34.983103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.983849"], ["updated_at", "2017-11-10 23:49:34.983849"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:49:34.992553"], ["updated_at", "2017-11-10 23:49:34.992553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.996570"], ["updated_at", "2017-11-10 23:49:34.996570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:34.997359"], ["updated_at", "2017-11-10 23:49:34.997359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 23:49:35.013950"], ["updated_at", "2017-11-10 23:49:35.013950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 23:49:35.026330"], ["updated_at", "2017-11-10 23:49:35.026330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 23:49:35.027729"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:49:35.029095"], ["updated_at", "2017-11-10 23:49:35.029095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 23:49:35.029848"], ["updated_at", "2017-11-10 23:49:35.029848"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.033327"], ["updated_at", "2017-11-10 23:49:35.033327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 23:49:35.038895"], ["updated_at", "2017-11-10 23:49:35.038895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 23:49:35.041724"], ["updated_at", "2017-11-10 23:49:35.041724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.060246"], ["updated_at", "2017-11-10 23:49:35.060246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.061139"], ["updated_at", "2017-11-10 23:49:35.061139"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.063306"], ["updated_at", "2017-11-10 23:49:35.063306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.066254"], ["updated_at", "2017-11-10 23:49:35.066254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.066976"], ["updated_at", "2017-11-10 23:49:35.066976"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.068662"], ["updated_at", "2017-11-10 23:49:35.068662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.074087"], ["updated_at", "2017-11-10 23:49:35.074087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.076282"], ["updated_at", "2017-11-10 23:49:35.076282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.080918"], ["updated_at", "2017-11-10 23:49:35.080918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.081860"], ["updated_at", "2017-11-10 23:49:35.081860"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.086975"], ["updated_at", "2017-11-10 23:49:35.086975"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.090182"], ["updated_at", "2017-11-10 23:49:35.090182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.098184"], ["updated_at", "2017-11-10 23:49:35.098184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.098967"], ["updated_at", "2017-11-10 23:49:35.098967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.108917"], ["updated_at", "2017-11-10 23:49:35.108917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 23:49:35.109758"], ["updated_at", "2017-11-10 23:49:35.109758"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.225539"], ["updated_at", "2017-11-10 23:49:35.225539"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.250436"], ["updated_at", "2017-11-10 23:49:35.250436"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.256746"], ["updated_at", "2017-11-10 23:49:35.256746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:49:35.260370"], ["updated_at", "2017-11-10 23:49:35.260370"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 23:49:35.280958"], ["updated_at", "2017-11-10 23:49:35.280958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 23:49:35.281894"], ["updated_at", "2017-11-10 23:49:35.281894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 23:49:35.297886"], ["updated_at", "2017-11-10 23:49:35.297886"]]  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 23:55:43.656661"], ["updated_at", "2017-11-10 23:55:43.656661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 23:55:43.658209"], ["updated_at", "2017-11-10 23:55:43.658209"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 6], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.706895"], ["updated_at", "2017-11-10 23:55:43.706895"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.712970"], ["updated_at", "2017-11-10 23:55:43.712970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.718593"], ["updated_at", "2017-11-10 23:55:43.718593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.722162"], ["updated_at", "2017-11-10 23:55:43.722162"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 23:55:43.736751"], ["updated_at", "2017-11-10 23:55:43.736751"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.891966"], ["updated_at", "2017-11-10 23:55:43.891966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.905632"], ["updated_at", "2017-11-10 23:55:43.905632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.906608"], ["updated_at", "2017-11-10 23:55:43.906608"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.910323"], ["updated_at", "2017-11-10 23:55:43.910323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.915045"], ["updated_at", "2017-11-10 23:55:43.915045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:55:43.918874"], ["updated_at", "2017-11-10 23:55:43.918874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:55:43.919601"], ["updated_at", "2017-11-10 23:55:43.919601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.920244"], ["updated_at", "2017-11-10 23:55:43.920244"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.921920"], ["updated_at", "2017-11-10 23:55:43.921920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.926439"], ["updated_at", "2017-11-10 23:55:43.926439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.927207"], ["updated_at", "2017-11-10 23:55:43.927207"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.929364"], ["updated_at", "2017-11-10 23:55:43.929364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.930068"], ["updated_at", "2017-11-10 23:55:43.930068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.931967"], ["updated_at", "2017-11-10 23:55:43.931967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.935471"], ["updated_at", "2017-11-10 23:55:43.935471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.939792"], ["updated_at", "2017-11-10 23:55:43.939792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.940751"], ["updated_at", "2017-11-10 23:55:43.940751"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 23:55:43.949276"], ["updated_at", "2017-11-10 23:55:43.949276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.959755"], ["updated_at", "2017-11-10 23:55:43.959755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.960553"], ["updated_at", "2017-11-10 23:55:43.960553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.965178"], ["updated_at", "2017-11-10 23:55:43.965178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.969406"], ["updated_at", "2017-11-10 23:55:43.969406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.971027"], ["updated_at", "2017-11-10 23:55:43.971027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.972794"], ["updated_at", "2017-11-10 23:55:43.972794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.975782"], ["updated_at", "2017-11-10 23:55:43.975782"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.977485"], ["updated_at", "2017-11-10 23:55:43.977485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:55:43.983278"], ["updated_at", "2017-11-10 23:55:43.983278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:55:43.984172"], ["updated_at", "2017-11-10 23:55:43.984172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:55:43.985935"], ["updated_at", "2017-11-10 23:55:43.985935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:55:43.986743"], ["updated_at", "2017-11-10 23:55:43.986743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.992785"], ["updated_at", "2017-11-10 23:55:43.992785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 23:55:43.993491"], ["updated_at", "2017-11-10 23:55:43.993491"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.995890"], ["updated_at", "2017-11-10 23:55:43.995890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.996688"], ["updated_at", "2017-11-10 23:55:43.996688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:43.997330"], ["updated_at", "2017-11-10 23:55:43.997330"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.006112"], ["updated_at", "2017-11-10 23:55:44.006112"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.008395"], ["updated_at", "2017-11-10 23:55:44.008395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.013412"], ["updated_at", "2017-11-10 23:55:44.013412"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.018885"], ["updated_at", "2017-11-10 23:55:44.018885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.019625"], ["updated_at", "2017-11-10 23:55:44.019625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.028724"], ["updated_at", "2017-11-10 23:55:44.028724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.029477"], ["updated_at", "2017-11-10 23:55:44.029477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.031631"], ["updated_at", "2017-11-10 23:55:44.031631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.042642"], ["updated_at", "2017-11-10 23:55:44.042642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.043405"], ["updated_at", "2017-11-10 23:55:44.043405"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.045789"], ["updated_at", "2017-11-10 23:55:44.045789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.049564"], ["updated_at", "2017-11-10 23:55:44.049564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.050423"], ["updated_at", "2017-11-10 23:55:44.050423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.055098"], ["updated_at", "2017-11-10 23:55:44.055098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.056017"], ["updated_at", "2017-11-10 23:55:44.056017"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.056817"], ["updated_at", "2017-11-10 23:55:44.056817"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.060074"], ["updated_at", "2017-11-10 23:55:44.060074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.065555"], ["updated_at", "2017-11-10 23:55:44.065555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.066449"], ["updated_at", "2017-11-10 23:55:44.066449"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.068074"], ["updated_at", "2017-11-10 23:55:44.068074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.070039"], ["updated_at", "2017-11-10 23:55:44.070039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.072738"], ["updated_at", "2017-11-10 23:55:44.072738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.074438"], ["updated_at", "2017-11-10 23:55:44.074438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.077079"], ["updated_at", "2017-11-10 23:55:44.077079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.077766"], ["updated_at", "2017-11-10 23:55:44.077766"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 23:55:44.084517"], ["updated_at", "2017-11-10 23:55:44.084517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 23:55:44.085569"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:55:44.086402"], ["updated_at", "2017-11-10 23:55:44.086402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 23:55:44.087187"], ["updated_at", "2017-11-10 23:55:44.087187"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.090884"], ["updated_at", "2017-11-10 23:55:44.090884"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.091920"], ["updated_at", "2017-11-10 23:55:44.091920"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:55:44.094279"], ["updated_at", "2017-11-10 23:55:44.094279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:55:44.095266"], ["updated_at", "2017-11-10 23:55:44.095266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:55:44.097091"], ["updated_at", "2017-11-10 23:55:44.097091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:55:44.097959"], ["updated_at", "2017-11-10 23:55:44.097959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.101405"], ["updated_at", "2017-11-10 23:55:44.101405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.102140"], ["updated_at", "2017-11-10 23:55:44.102140"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 23:55:44.104355"], ["updated_at", "2017-11-10 23:55:44.104355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 23:55:44.107296"], ["updated_at", "2017-11-10 23:55:44.107296"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 23:55:44.115894"], ["updated_at", "2017-11-10 23:55:44.115894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.117949"], ["updated_at", "2017-11-10 23:55:44.117949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.121376"], ["updated_at", "2017-11-10 23:55:44.121376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:44.122211"], ["updated_at", "2017-11-10 23:55:44.122211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:55:44.132264"], ["updated_at", "2017-11-10 23:55:44.132264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:55:50.420256"], ["updated_at", "2017-11-10 23:55:50.420256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:55:50.423286"], ["updated_at", "2017-11-10 23:55:50.423286"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:55:50.435846"], ["updated_at", "2017-11-10 23:55:50.435846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:55:50.436762"], ["updated_at", "2017-11-10 23:55:50.436762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.464341"], ["updated_at", "2017-11-10 23:55:50.464341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.465484"], ["updated_at", "2017-11-10 23:55:50.465484"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 23:55:50.468742"], ["updated_at", "2017-11-10 23:55:50.468742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 23:55:50.470976"], ["updated_at", "2017-11-10 23:55:50.470976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.480185"], ["updated_at", "2017-11-10 23:55:50.480185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.492824"], ["updated_at", "2017-11-10 23:55:50.492824"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.494382"], ["updated_at", "2017-11-10 23:55:50.494382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.495327"], ["updated_at", "2017-11-10 23:55:50.495327"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.498096"], ["updated_at", "2017-11-10 23:55:50.498096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.498887"], ["updated_at", "2017-11-10 23:55:50.498887"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.500817"], ["updated_at", "2017-11-10 23:55:50.500817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.501830"], ["updated_at", "2017-11-10 23:55:50.501830"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:55:50.504141"], ["updated_at", "2017-11-10 23:55:50.504141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:55:50.504952"], ["updated_at", "2017-11-10 23:55:50.504952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.505718"], ["updated_at", "2017-11-10 23:55:50.505718"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.507488"], ["updated_at", "2017-11-10 23:55:50.507488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.508255"], ["updated_at", "2017-11-10 23:55:50.508255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.510341"], ["updated_at", "2017-11-10 23:55:50.510341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.513710"], ["updated_at", "2017-11-10 23:55:50.513710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.518662"], ["updated_at", "2017-11-10 23:55:50.518662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.524076"], ["updated_at", "2017-11-10 23:55:50.524076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.525026"], ["updated_at", "2017-11-10 23:55:50.525026"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.548527"], ["updated_at", "2017-11-10 23:55:50.548527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.553057"], ["updated_at", "2017-11-10 23:55:50.553057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.556873"], ["updated_at", "2017-11-10 23:55:50.556873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:55:50.562177"], ["updated_at", "2017-11-10 23:55:50.562177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:55:50.563240"], ["updated_at", "2017-11-10 23:55:50.563240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:55:50.565067"], ["updated_at", "2017-11-10 23:55:50.565067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:55:50.566031"], ["updated_at", "2017-11-10 23:55:50.566031"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.570579"], ["updated_at", "2017-11-10 23:55:50.570579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.575326"], ["updated_at", "2017-11-10 23:55:50.575326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.576230"], ["updated_at", "2017-11-10 23:55:50.576230"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.578617"], ["updated_at", "2017-11-10 23:55:50.578617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.579386"], ["updated_at", "2017-11-10 23:55:50.579386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.586199"], ["updated_at", "2017-11-10 23:55:50.586199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.587224"], ["updated_at", "2017-11-10 23:55:50.587224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.589265"], ["updated_at", "2017-11-10 23:55:50.589265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.592447"], ["updated_at", "2017-11-10 23:55:50.592447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.594474"], ["updated_at", "2017-11-10 23:55:50.594474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.597195"], ["updated_at", "2017-11-10 23:55:50.597195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.597918"], ["updated_at", "2017-11-10 23:55:50.597918"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.600998"], ["updated_at", "2017-11-10 23:55:50.600998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.608314"], ["updated_at", "2017-11-10 23:55:50.608314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.617385"], ["updated_at", "2017-11-10 23:55:50.617385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.619509"], ["updated_at", "2017-11-10 23:55:50.619509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.621516"], ["updated_at", "2017-11-10 23:55:50.621516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.624419"], ["updated_at", "2017-11-10 23:55:50.624419"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.626189"], ["updated_at", "2017-11-10 23:55:50.626189"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.630995"], ["updated_at", "2017-11-10 23:55:50.630995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.631830"], ["updated_at", "2017-11-10 23:55:50.631830"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.633651"], ["updated_at", "2017-11-10 23:55:50.633651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.635762"], ["updated_at", "2017-11-10 23:55:50.635762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 23:55:50.642387"], ["updated_at", "2017-11-10 23:55:50.642387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 23:55:50.644397"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:55:50.645744"], ["updated_at", "2017-11-10 23:55:50.645744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 23:55:50.646712"], ["updated_at", "2017-11-10 23:55:50.646712"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.652215"], ["updated_at", "2017-11-10 23:55:50.652215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.653022"], ["updated_at", "2017-11-10 23:55:50.653022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.658213"], ["updated_at", "2017-11-10 23:55:50.658213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.660307"], ["updated_at", "2017-11-10 23:55:50.660307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.663718"], ["updated_at", "2017-11-10 23:55:50.663718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 23:55:50.664533"], ["updated_at", "2017-11-10 23:55:50.664533"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.688599"], ["updated_at", "2017-11-10 23:55:50.688599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.689549"], ["updated_at", "2017-11-10 23:55:50.689549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.698337"], ["updated_at", "2017-11-10 23:55:50.698337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.699197"], ["updated_at", "2017-11-10 23:55:50.699197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.699891"], ["updated_at", "2017-11-10 23:55:50.699891"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 23:55:50.704263"], ["updated_at", "2017-11-10 23:55:50.704263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:55:50.718112"], ["updated_at", "2017-11-10 23:55:50.718112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.722061"], ["updated_at", "2017-11-10 23:55:50.722061"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.722958"], ["updated_at", "2017-11-10 23:55:50.722958"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 23:55:50.727667"], ["updated_at", "2017-11-10 23:55:50.727667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.729564"], ["updated_at", "2017-11-10 23:55:50.729564"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.733774"], ["updated_at", "2017-11-10 23:55:50.733774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.734643"], ["updated_at", "2017-11-10 23:55:50.734643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 23:55:50.815694"], ["updated_at", "2017-11-10 23:55:50.815694"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.818027"], ["updated_at", "2017-11-10 23:55:50.818027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 23:55:50.824762"], ["updated_at", "2017-11-10 23:55:50.824762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 23:55:50.825779"], ["updated_at", "2017-11-10 23:55:50.825779"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.857041"], ["updated_at", "2017-11-10 23:55:50.857041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.862112"], ["updated_at", "2017-11-10 23:55:50.862112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:50.864805"], ["updated_at", "2017-11-10 23:55:50.864805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.522557"], ["updated_at", "2017-11-10 23:55:56.522557"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:55:56.549589"], ["updated_at", "2017-11-10 23:55:56.549589"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:55:56.550905"], ["updated_at", "2017-11-10 23:55:56.550905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.551717"], ["updated_at", "2017-11-10 23:55:56.551717"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.553794"], ["updated_at", "2017-11-10 23:55:56.553794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.556254"], ["updated_at", "2017-11-10 23:55:56.556254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:55:56.565157"], ["updated_at", "2017-11-10 23:55:56.565157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.568981"], ["updated_at", "2017-11-10 23:55:56.568981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.573016"], ["updated_at", "2017-11-10 23:55:56.573016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.573917"], ["updated_at", "2017-11-10 23:55:56.573917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.576686"], ["updated_at", "2017-11-10 23:55:56.576686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.580301"], ["updated_at", "2017-11-10 23:55:56.580301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.581085"], ["updated_at", "2017-11-10 23:55:56.581085"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.583465"], ["updated_at", "2017-11-10 23:55:56.583465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.584164"], ["updated_at", "2017-11-10 23:55:56.584164"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.586907"], ["updated_at", "2017-11-10 23:55:56.586907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.594855"], ["updated_at", "2017-11-10 23:55:56.594855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 23:55:56.605125"], ["updated_at", "2017-11-10 23:55:56.605125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:55:56.624557"], ["updated_at", "2017-11-10 23:55:56.624557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:55:56.625779"], ["updated_at", "2017-11-10 23:55:56.625779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:55:56.627938"], ["updated_at", "2017-11-10 23:55:56.627938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:55:56.628893"], ["updated_at", "2017-11-10 23:55:56.628893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.635626"], ["updated_at", "2017-11-10 23:55:56.635626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.636463"], ["updated_at", "2017-11-10 23:55:56.636463"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.638949"], ["updated_at", "2017-11-10 23:55:56.638949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.640989"], ["updated_at", "2017-11-10 23:55:56.640989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.644498"], ["updated_at", "2017-11-10 23:55:56.644498"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.646614"], ["updated_at", "2017-11-10 23:55:56.646614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.647423"], ["updated_at", "2017-11-10 23:55:56.647423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.652769"], ["updated_at", "2017-11-10 23:55:56.652769"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.653650"], ["updated_at", "2017-11-10 23:55:56.653650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.654392"], ["updated_at", "2017-11-10 23:55:56.654392"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.660042"], ["updated_at", "2017-11-10 23:55:56.660042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.675931"], ["updated_at", "2017-11-10 23:55:56.675931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.677791"], ["updated_at", "2017-11-10 23:55:56.677791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:55:56.681474"], ["updated_at", "2017-11-10 23:55:56.681474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:55:56.682369"], ["updated_at", "2017-11-10 23:55:56.682369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:55:56.683930"], ["updated_at", "2017-11-10 23:55:56.683930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:55:56.684708"], ["updated_at", "2017-11-10 23:55:56.684708"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.687948"], ["updated_at", "2017-11-10 23:55:56.687948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.688741"], ["updated_at", "2017-11-10 23:55:56.688741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.699530"], ["updated_at", "2017-11-10 23:55:56.699530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.700487"], ["updated_at", "2017-11-10 23:55:56.700487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.703149"], ["updated_at", "2017-11-10 23:55:56.703149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.716978"], ["updated_at", "2017-11-10 23:55:56.716978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.721877"], ["updated_at", "2017-11-10 23:55:56.721877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.727648"], ["updated_at", "2017-11-10 23:55:56.727648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.728433"], ["updated_at", "2017-11-10 23:55:56.728433"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 23:55:56.730290"], ["updated_at", "2017-11-10 23:55:56.730290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 23:55:56.732436"], ["updated_at", "2017-11-10 23:55:56.732436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.740979"], ["updated_at", "2017-11-10 23:55:56.740979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.741882"], ["updated_at", "2017-11-10 23:55:56.741882"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.743912"], ["updated_at", "2017-11-10 23:55:56.743912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.746768"], ["updated_at", "2017-11-10 23:55:56.746768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.752897"], ["updated_at", "2017-11-10 23:55:56.752897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.756948"], ["updated_at", "2017-11-10 23:55:56.756948"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.757840"], ["updated_at", "2017-11-10 23:55:56.757840"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.760280"], ["updated_at", "2017-11-10 23:55:56.760280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 23:55:56.761093"], ["updated_at", "2017-11-10 23:55:56.761093"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.763741"], ["updated_at", "2017-11-10 23:55:56.763741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.764529"], ["updated_at", "2017-11-10 23:55:56.764529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.776291"], ["updated_at", "2017-11-10 23:55:56.776291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.782178"], ["updated_at", "2017-11-10 23:55:56.782178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.783157"], ["updated_at", "2017-11-10 23:55:56.783157"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.784063"], ["updated_at", "2017-11-10 23:55:56.784063"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.787099"], ["updated_at", "2017-11-10 23:55:56.787099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 23:55:56.793632"], ["updated_at", "2017-11-10 23:55:56.793632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.796480"], ["updated_at", "2017-11-10 23:55:56.796480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.801114"], ["updated_at", "2017-11-10 23:55:56.801114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.810178"], ["updated_at", "2017-11-10 23:55:56.810178"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.811370"], ["updated_at", "2017-11-10 23:55:56.811370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.817046"], ["updated_at", "2017-11-10 23:55:56.817046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.817927"], ["updated_at", "2017-11-10 23:55:56.817927"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 23:55:56.820702"], ["updated_at", "2017-11-10 23:55:56.820702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 23:55:56.821969"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:55:56.823401"], ["updated_at", "2017-11-10 23:55:56.823401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 23:55:56.824128"], ["updated_at", "2017-11-10 23:55:56.824128"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.828604"], ["updated_at", "2017-11-10 23:55:56.828604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:56.829556"], ["updated_at", "2017-11-10 23:55:56.829556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:57.050808"], ["updated_at", "2017-11-10 23:55:57.050808"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 23:55:57.078554"], ["updated_at", "2017-11-10 23:55:57.078554"]]  (0.2ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 23:55:57.083355"], ["updated_at", "2017-11-10 23:55:57.083355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 23:55:57.084392"], ["updated_at", "2017-11-10 23:55:57.084392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:57.101157"], ["updated_at", "2017-11-10 23:55:57.101157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:57.107165"], ["updated_at", "2017-11-10 23:55:57.107165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:55:57.110608"], ["updated_at", "2017-11-10 23:55:57.110608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 23:57:17.300621"], ["updated_at", "2017-11-10 23:57:17.300621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 23:57:17.303847"], ["updated_at", "2017-11-10 23:57:17.303847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.370123"], ["updated_at", "2017-11-10 23:57:17.370123"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.376507"], ["updated_at", "2017-11-10 23:57:17.376507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.379286"], ["updated_at", "2017-11-10 23:57:17.379286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.400804"], ["updated_at", "2017-11-10 23:57:17.400804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 23:57:17.411177"], ["updated_at", "2017-11-10 23:57:17.411177"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 7], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.478030"], ["updated_at", "2017-11-10 23:57:17.478030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.479186"], ["updated_at", "2017-11-10 23:57:17.479186"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:57:17.482350"], ["updated_at", "2017-11-10 23:57:17.482350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:57:17.483223"], ["updated_at", "2017-11-10 23:57:17.483223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:57:17.485370"], ["updated_at", "2017-11-10 23:57:17.485370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:57:17.486332"], ["updated_at", "2017-11-10 23:57:17.486332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.499742"], ["updated_at", "2017-11-10 23:57:17.499742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.500551"], ["updated_at", "2017-11-10 23:57:17.500551"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.502320"], ["updated_at", "2017-11-10 23:57:17.502320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.503308"], ["updated_at", "2017-11-10 23:57:17.503308"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.505686"], ["updated_at", "2017-11-10 23:57:17.505686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.509257"], ["updated_at", "2017-11-10 23:57:17.509257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.513465"], ["updated_at", "2017-11-10 23:57:17.513465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.514204"], ["updated_at", "2017-11-10 23:57:17.514204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.514851"], ["updated_at", "2017-11-10 23:57:17.514851"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.516736"], ["updated_at", "2017-11-10 23:57:17.516736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.517385"], ["updated_at", "2017-11-10 23:57:17.517385"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 23:57:17.527918"], ["updated_at", "2017-11-10 23:57:17.527918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 23:57:17.537747"], ["updated_at", "2017-11-10 23:57:17.537747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.539711"], ["updated_at", "2017-11-10 23:57:17.539711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 23:57:17.545464"], ["updated_at", "2017-11-10 23:57:17.545464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 23:57:17.547572"], ["updated_at", "2017-11-10 23:57:17.547572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.555256"], ["updated_at", "2017-11-10 23:57:17.555256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.556164"], ["updated_at", "2017-11-10 23:57:17.556164"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:57:17.558626"], ["updated_at", "2017-11-10 23:57:17.558626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:57:17.559509"], ["updated_at", "2017-11-10 23:57:17.559509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:57:17.561160"], ["updated_at", "2017-11-10 23:57:17.561160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:57:17.561982"], ["updated_at", "2017-11-10 23:57:17.561982"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:57:17.565696"], ["updated_at", "2017-11-10 23:57:17.565696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:57:17.566457"], ["updated_at", "2017-11-10 23:57:17.566457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.567112"], ["updated_at", "2017-11-10 23:57:17.567112"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.569465"], ["updated_at", "2017-11-10 23:57:17.569465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.574526"], ["updated_at", "2017-11-10 23:57:17.574526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.579353"], ["updated_at", "2017-11-10 23:57:17.579353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.586732"], ["updated_at", "2017-11-10 23:57:17.586732"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.588443"], ["updated_at", "2017-11-10 23:57:17.588443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.590164"], ["updated_at", "2017-11-10 23:57:17.590164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.592840"], ["updated_at", "2017-11-10 23:57:17.592840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.593545"], ["updated_at", "2017-11-10 23:57:17.593545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.600812"], ["updated_at", "2017-11-10 23:57:17.600812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.601610"], ["updated_at", "2017-11-10 23:57:17.601610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.603374"], ["updated_at", "2017-11-10 23:57:17.603374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.606512"], ["updated_at", "2017-11-10 23:57:17.606512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.607279"], ["updated_at", "2017-11-10 23:57:17.607279"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.608959"], ["updated_at", "2017-11-10 23:57:17.608959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.609641"], ["updated_at", "2017-11-10 23:57:17.609641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.610273"], ["updated_at", "2017-11-10 23:57:17.610273"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.612516"], ["updated_at", "2017-11-10 23:57:17.612516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 23:57:17.618457"], ["updated_at", "2017-11-10 23:57:17.618457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 23:57:17.620051"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:57:17.621023"], ["updated_at", "2017-11-10 23:57:17.621023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 23:57:17.621796"], ["updated_at", "2017-11-10 23:57:17.621796"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.625080"], ["updated_at", "2017-11-10 23:57:17.625080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.627127"], ["updated_at", "2017-11-10 23:57:17.627127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.645585"], ["updated_at", "2017-11-10 23:57:17.645585"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.648808"], ["updated_at", "2017-11-10 23:57:17.648808"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.652197"], ["updated_at", "2017-11-10 23:57:17.652197"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.657831"], ["updated_at", "2017-11-10 23:57:17.657831"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.670377"], ["updated_at", "2017-11-10 23:57:17.670377"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.676004"], ["updated_at", "2017-11-10 23:57:17.676004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.679083"], ["updated_at", "2017-11-10 23:57:17.679083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.685078"], ["updated_at", "2017-11-10 23:57:17.685078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:57:17.694028"], ["updated_at", "2017-11-10 23:57:17.694028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.698792"], ["updated_at", "2017-11-10 23:57:17.698792"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 23:57:17.700128"], ["updated_at", "2017-11-10 23:57:17.700128"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.704147"], ["updated_at", "2017-11-10 23:57:17.704147"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.705101"], ["updated_at", "2017-11-10 23:57:17.705101"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.708828"], ["updated_at", "2017-11-10 23:57:17.708828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.710197"], ["updated_at", "2017-11-10 23:57:17.710197"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.712589"], ["updated_at", "2017-11-10 23:57:17.712589"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.713615"], ["updated_at", "2017-11-10 23:57:17.713615"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.720296"], ["updated_at", "2017-11-10 23:57:17.720296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.721620"], ["updated_at", "2017-11-10 23:57:17.721620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.728186"], ["updated_at", "2017-11-10 23:57:17.728186"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.729637"], ["updated_at", "2017-11-10 23:57:17.729637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.739596"], ["updated_at", "2017-11-10 23:57:17.739596"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.741102"], ["updated_at", "2017-11-10 23:57:17.741102"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.744173"], ["updated_at", "2017-11-10 23:57:17.744173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:17.750429"], ["updated_at", "2017-11-10 23:57:17.750429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (4.7ms) Completed 200 OK in 6ms (Views: 6.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.526813"], ["updated_at", "2017-11-10 23:57:27.526813"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.529842"], ["updated_at", "2017-11-10 23:57:27.529842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.581687"], ["updated_at", "2017-11-10 23:57:27.581687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 23:57:27.582651"], ["updated_at", "2017-11-10 23:57:27.582651"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.585289"], ["updated_at", "2017-11-10 23:57:27.585289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.587532"], ["updated_at", "2017-11-10 23:57:27.587532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.592578"], ["updated_at", "2017-11-10 23:57:27.592578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.593825"], ["updated_at", "2017-11-10 23:57:27.593825"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.601314"], ["updated_at", "2017-11-10 23:57:27.601314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.606547"], ["updated_at", "2017-11-10 23:57:27.606547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.613664"], ["updated_at", "2017-11-10 23:57:27.613664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.618528"], ["updated_at", "2017-11-10 23:57:27.618528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.619670"], ["updated_at", "2017-11-10 23:57:27.619670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.630222"], ["updated_at", "2017-11-10 23:57:27.630222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.631236"], ["updated_at", "2017-11-10 23:57:27.631236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.633334"], ["updated_at", "2017-11-10 23:57:27.633334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.637074"], ["updated_at", "2017-11-10 23:57:27.637074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.642942"], ["updated_at", "2017-11-10 23:57:27.642942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.643910"], ["updated_at", "2017-11-10 23:57:27.643910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 23:57:27.655225"], ["updated_at", "2017-11-10 23:57:27.655225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 23:57:27.657026"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:57:27.658338"], ["updated_at", "2017-11-10 23:57:27.658338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 23:57:27.659280"], ["updated_at", "2017-11-10 23:57:27.659280"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.677069"], ["updated_at", "2017-11-10 23:57:27.677069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:57:27.682119"], ["updated_at", "2017-11-10 23:57:27.682119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:57:27.692436"], ["updated_at", "2017-11-10 23:57:27.692436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:57:27.694204"], ["updated_at", "2017-11-10 23:57:27.694204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:57:27.694967"], ["updated_at", "2017-11-10 23:57:27.694967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.700728"], ["updated_at", "2017-11-10 23:57:27.700728"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.702259"], ["updated_at", "2017-11-10 23:57:27.702259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.704190"], ["updated_at", "2017-11-10 23:57:27.704190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.707836"], ["updated_at", "2017-11-10 23:57:27.707836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.710224"], ["updated_at", "2017-11-10 23:57:27.710224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.712335"], ["updated_at", "2017-11-10 23:57:27.712335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.715498"], ["updated_at", "2017-11-10 23:57:27.715498"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.716328"], ["updated_at", "2017-11-10 23:57:27.716328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.727062"], ["updated_at", "2017-11-10 23:57:27.727062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.727864"], ["updated_at", "2017-11-10 23:57:27.727864"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.729908"], ["updated_at", "2017-11-10 23:57:27.729908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.730667"], ["updated_at", "2017-11-10 23:57:27.730667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.731363"], ["updated_at", "2017-11-10 23:57:27.731363"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.733518"], ["updated_at", "2017-11-10 23:57:27.733518"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:57:27.740320"], ["updated_at", "2017-11-10 23:57:27.740320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.744349"], ["updated_at", "2017-11-10 23:57:27.744349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.745102"], ["updated_at", "2017-11-10 23:57:27.745102"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.747185"], ["updated_at", "2017-11-10 23:57:27.747185"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:57:27.750858"], ["updated_at", "2017-11-10 23:57:27.750858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:57:27.751586"], ["updated_at", "2017-11-10 23:57:27.751586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.752243"], ["updated_at", "2017-11-10 23:57:27.752243"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.754577"], ["updated_at", "2017-11-10 23:57:27.754577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.758270"], ["updated_at", "2017-11-10 23:57:27.758270"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.759116"], ["updated_at", "2017-11-10 23:57:27.759116"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:57:27.761047"], ["updated_at", "2017-11-10 23:57:27.761047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:57:27.761868"], ["updated_at", "2017-11-10 23:57:27.761868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:57:27.763540"], ["updated_at", "2017-11-10 23:57:27.763540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:57:27.764306"], ["updated_at", "2017-11-10 23:57:27.764306"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.767325"], ["updated_at", "2017-11-10 23:57:27.767325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.769412"], ["updated_at", "2017-11-10 23:57:27.769412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.775884"], ["updated_at", "2017-11-10 23:57:27.775884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.776769"], ["updated_at", "2017-11-10 23:57:27.776769"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.781372"], ["updated_at", "2017-11-10 23:57:27.781372"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.782182"], ["updated_at", "2017-11-10 23:57:27.782182"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.784206"], ["updated_at", "2017-11-10 23:57:27.784206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.784928"], ["updated_at", "2017-11-10 23:57:27.784928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.786943"], ["updated_at", "2017-11-10 23:57:27.786943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 23:57:27.790517"], ["updated_at", "2017-11-10 23:57:27.790517"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 23:57:27.792721"], ["updated_at", "2017-11-10 23:57:27.792721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 23:57:27.800472"], ["updated_at", "2017-11-10 23:57:27.800472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.802529"], ["updated_at", "2017-11-10 23:57:27.802529"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.806828"], ["updated_at", "2017-11-10 23:57:27.806828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.812995"], ["updated_at", "2017-11-10 23:57:27.812995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.818847"], ["updated_at", "2017-11-10 23:57:27.818847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.819726"], ["updated_at", "2017-11-10 23:57:27.819726"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.820677"], ["updated_at", "2017-11-10 23:57:27.820677"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 23:57:27.824533"], ["updated_at", "2017-11-10 23:57:27.824533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.833933"], ["updated_at", "2017-11-10 23:57:27.833933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.834977"], ["updated_at", "2017-11-10 23:57:27.834977"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.837767"], ["updated_at", "2017-11-10 23:57:27.837767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.838637"], ["updated_at", "2017-11-10 23:57:27.838637"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:27.972301"], ["updated_at", "2017-11-10 23:57:27.972301"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 23:57:27.979703"], ["updated_at", "2017-11-10 23:57:27.979703"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 23:57:27.995904"], ["updated_at", "2017-11-10 23:57:27.995904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 23:57:27.996673"], ["updated_at", "2017-11-10 23:57:27.996673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 9], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:28.016409"], ["updated_at", "2017-11-10 23:57:28.016409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:28.020948"], ["updated_at", "2017-11-10 23:57:28.020948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:28.023702"], ["updated_at", "2017-11-10 23:57:28.023702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.685893"], ["updated_at", "2017-11-10 23:57:33.685893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.700305"], ["updated_at", "2017-11-10 23:57:33.700305"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.719114"], ["updated_at", "2017-11-10 23:57:33.719114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 23:57:33.732625"], ["updated_at", "2017-11-10 23:57:33.732625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 23:57:33.734986"], ["updated_at", "2017-11-10 23:57:33.734986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.744574"], ["updated_at", "2017-11-10 23:57:33.744574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.745487"], ["updated_at", "2017-11-10 23:57:33.745487"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 23:57:33.751795"], ["updated_at", "2017-11-10 23:57:33.751795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 23:57:33.767786"], ["updated_at", "2017-11-10 23:57:33.767786"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.770195"], ["updated_at", "2017-11-10 23:57:33.770195"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.781821"], ["updated_at", "2017-11-10 23:57:33.781821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.782924"], ["updated_at", "2017-11-10 23:57:33.782924"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.789154"], ["updated_at", "2017-11-10 23:57:33.789154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.791887"], ["updated_at", "2017-11-10 23:57:33.791887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.795958"], ["updated_at", "2017-11-10 23:57:33.795958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.801169"], ["updated_at", "2017-11-10 23:57:33.801169"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.802165"], ["updated_at", "2017-11-10 23:57:33.802165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.821467"], ["updated_at", "2017-11-10 23:57:33.821467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.822376"], ["updated_at", "2017-11-10 23:57:33.822376"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.824787"], ["updated_at", "2017-11-10 23:57:33.824787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.830466"], ["updated_at", "2017-11-10 23:57:33.830466"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 23:57:33.831586"], ["updated_at", "2017-11-10 23:57:33.831586"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:57:33.833974"], ["updated_at", "2017-11-10 23:57:33.833974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:57:33.834789"], ["updated_at", "2017-11-10 23:57:33.834789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:57:33.836764"], ["updated_at", "2017-11-10 23:57:33.836764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:57:33.837583"], ["updated_at", "2017-11-10 23:57:33.837583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.841009"], ["updated_at", "2017-11-10 23:57:33.841009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.841819"], ["updated_at", "2017-11-10 23:57:33.841819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.849098"], ["updated_at", "2017-11-10 23:57:33.849098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.849961"], ["updated_at", "2017-11-10 23:57:33.849961"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.852397"], ["updated_at", "2017-11-10 23:57:33.852397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.854740"], ["updated_at", "2017-11-10 23:57:33.854740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:57:33.859181"], ["updated_at", "2017-11-10 23:57:33.859181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:57:33.860049"], ["updated_at", "2017-11-10 23:57:33.860049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:57:33.861745"], ["updated_at", "2017-11-10 23:57:33.861745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:57:33.862630"], ["updated_at", "2017-11-10 23:57:33.862630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.869765"], ["updated_at", "2017-11-10 23:57:33.869765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.870623"], ["updated_at", "2017-11-10 23:57:33.870623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.872939"], ["updated_at", "2017-11-10 23:57:33.872939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.877604"], ["updated_at", "2017-11-10 23:57:33.877604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.883056"], ["updated_at", "2017-11-10 23:57:33.883056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.884106"], ["updated_at", "2017-11-10 23:57:33.884106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.885096"], ["updated_at", "2017-11-10 23:57:33.885096"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.888443"], ["updated_at", "2017-11-10 23:57:33.888443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.889368"], ["updated_at", "2017-11-10 23:57:33.889368"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.891263"], ["updated_at", "2017-11-10 23:57:33.891263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.896517"], ["updated_at", "2017-11-10 23:57:33.896517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.897278"], ["updated_at", "2017-11-10 23:57:33.897278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.911547"], ["updated_at", "2017-11-10 23:57:33.911547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.913975"], ["updated_at", "2017-11-10 23:57:33.913975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.916075"], ["updated_at", "2017-11-10 23:57:33.916075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.919613"], ["updated_at", "2017-11-10 23:57:33.919613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.920424"], ["updated_at", "2017-11-10 23:57:33.920424"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.922758"], ["updated_at", "2017-11-10 23:57:33.922758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.925400"], ["updated_at", "2017-11-10 23:57:33.925400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.928626"], ["updated_at", "2017-11-10 23:57:33.928626"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:57:33.938030"], ["updated_at", "2017-11-10 23:57:33.938030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.942256"], ["updated_at", "2017-11-10 23:57:33.942256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.961570"], ["updated_at", "2017-11-10 23:57:33.961570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.962387"], ["updated_at", "2017-11-10 23:57:33.962387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.967838"], ["updated_at", "2017-11-10 23:57:33.967838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.974906"], ["updated_at", "2017-11-10 23:57:33.974906"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.981483"], ["updated_at", "2017-11-10 23:57:33.981483"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.982401"], ["updated_at", "2017-11-10 23:57:33.982401"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.984751"], ["updated_at", "2017-11-10 23:57:33.984751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:57:33.989984"], ["updated_at", "2017-11-10 23:57:33.989984"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:57:33.991156"], ["updated_at", "2017-11-10 23:57:33.991156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.991923"], ["updated_at", "2017-11-10 23:57:33.991923"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:33.996251"], ["updated_at", "2017-11-10 23:57:33.996251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:34.001392"], ["updated_at", "2017-11-10 23:57:34.001392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:34.002339"], ["updated_at", "2017-11-10 23:57:34.002339"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:34.004794"], ["updated_at", "2017-11-10 23:57:34.004794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 23:57:34.010039"], ["updated_at", "2017-11-10 23:57:34.010039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-10 23:57:34.011459"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:57:34.013207"], ["updated_at", "2017-11-10 23:57:34.013207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 23:57:34.014025"], ["updated_at", "2017-11-10 23:57:34.014025"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:34.017505"], ["updated_at", "2017-11-10 23:57:34.017505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:34.018224"], ["updated_at", "2017-11-10 23:57:34.018224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:34.018969"], ["updated_at", "2017-11-10 23:57:34.018969"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 23:57:34.185312"], ["updated_at", "2017-11-10 23:57:34.185312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 23:57:34.186377"], ["updated_at", "2017-11-10 23:57:34.186377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:34.226156"], ["updated_at", "2017-11-10 23:57:34.226156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:34.233091"], ["updated_at", "2017-11-10 23:57:34.233091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:34.236626"], ["updated_at", "2017-11-10 23:57:34.236626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:57:34.254768"], ["updated_at", "2017-11-10 23:57:34.254768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 23:57:34.261567"], ["updated_at", "2017-11-10 23:57:34.261567"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (2.9ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.098717"], ["updated_at", "2017-11-10 23:58:29.098717"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.129666"], ["updated_at", "2017-11-10 23:58:29.129666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.132411"], ["updated_at", "2017-11-10 23:58:29.132411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.187192"], ["updated_at", "2017-11-10 23:58:29.187192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-10 23:58:29.197606"], ["updated_at", "2017-11-10 23:58:29.197606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-10 23:58:29.198397"], ["updated_at", "2017-11-10 23:58:29.198397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-10 23:58:29.219453"], ["updated_at", "2017-11-10 23:58:29.219453"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.263191"], ["updated_at", "2017-11-10 23:58:29.263191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-10 23:58:29.264169"], ["updated_at", "2017-11-10 23:58:29.264169"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-10 23:58:29.266737"], ["updated_at", "2017-11-10 23:58:29.266737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.268810"], ["updated_at", "2017-11-10 23:58:29.268810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:58:29.273148"], ["updated_at", "2017-11-10 23:58:29.273148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:58:29.274110"], ["updated_at", "2017-11-10 23:58:29.274110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:58:29.276044"], ["updated_at", "2017-11-10 23:58:29.276044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:58:29.276814"], ["updated_at", "2017-11-10 23:58:29.276814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-10 23:58:29.283229"], ["updated_at", "2017-11-10 23:58:29.283229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-10 23:58:29.285205"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:58:29.286318"], ["updated_at", "2017-11-10 23:58:29.286318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-10 23:58:29.287266"], ["updated_at", "2017-11-10 23:58:29.287266"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.291004"], ["updated_at", "2017-11-10 23:58:29.291004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.295715"], ["updated_at", "2017-11-10 23:58:29.295715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.296640"], ["updated_at", "2017-11-10 23:58:29.296640"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.304572"], ["updated_at", "2017-11-10 23:58:29.304572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-10 23:58:29.313450"], ["updated_at", "2017-11-10 23:58:29.313450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-10 23:58:29.318576"], ["updated_at", "2017-11-10 23:58:29.318576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.329067"], ["updated_at", "2017-11-10 23:58:29.329067"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.330210"], ["updated_at", "2017-11-10 23:58:29.330210"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.333192"], ["updated_at", "2017-11-10 23:58:29.333192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.337118"], ["updated_at", "2017-11-10 23:58:29.337118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.341595"], ["updated_at", "2017-11-10 23:58:29.341595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.342552"], ["updated_at", "2017-11-10 23:58:29.342552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.343416"], ["updated_at", "2017-11-10 23:58:29.343416"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.345825"], ["updated_at", "2017-11-10 23:58:29.345825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.347673"], ["updated_at", "2017-11-10 23:58:29.347673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.349519"], ["updated_at", "2017-11-10 23:58:29.349519"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-10 23:58:29.353455"], ["updated_at", "2017-11-10 23:58:29.353455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-10 23:58:29.356611"], ["updated_at", "2017-11-10 23:58:29.356611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.368742"], ["updated_at", "2017-11-10 23:58:29.368742"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.369736"], ["updated_at", "2017-11-10 23:58:29.369736"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.372507"], ["updated_at", "2017-11-10 23:58:29.372507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.373282"], ["updated_at", "2017-11-10 23:58:29.373282"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.375439"], ["updated_at", "2017-11-10 23:58:29.375439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.378825"], ["updated_at", "2017-11-10 23:58:29.378825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.383187"], ["updated_at", "2017-11-10 23:58:29.383187"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.389843"], ["updated_at", "2017-11-10 23:58:29.389843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.390547"], ["updated_at", "2017-11-10 23:58:29.390547"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.392648"], ["updated_at", "2017-11-10 23:58:29.392648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.393491"], ["updated_at", "2017-11-10 23:58:29.393491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.398547"], ["updated_at", "2017-11-10 23:58:29.398547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.399466"], ["updated_at", "2017-11-10 23:58:29.399466"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.401558"], ["updated_at", "2017-11-10 23:58:29.401558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-10 23:58:29.405441"], ["updated_at", "2017-11-10 23:58:29.405441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-10 23:58:29.406383"], ["updated_at", "2017-11-10 23:58:29.406383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-10 23:58:29.407942"], ["updated_at", "2017-11-10 23:58:29.407942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-10 23:58:29.408651"], ["updated_at", "2017-11-10 23:58:29.408651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.416145"], ["updated_at", "2017-11-10 23:58:29.416145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.421894"], ["updated_at", "2017-11-10 23:58:29.421894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.422774"], ["updated_at", "2017-11-10 23:58:29.422774"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.425220"], ["updated_at", "2017-11-10 23:58:29.425220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.431164"], ["updated_at", "2017-11-10 23:58:29.431164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.432053"], ["updated_at", "2017-11-10 23:58:29.432053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.437215"], ["updated_at", "2017-11-10 23:58:29.437215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.437988"], ["updated_at", "2017-11-10 23:58:29.437988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.438700"], ["updated_at", "2017-11-10 23:58:29.438700"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.441462"], ["updated_at", "2017-11-10 23:58:29.441462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.447378"], ["updated_at", "2017-11-10 23:58:29.447378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.453617"], ["updated_at", "2017-11-10 23:58:29.453617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.456174"], ["updated_at", "2017-11-10 23:58:29.456174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:58:29.459393"], ["updated_at", "2017-11-10 23:58:29.459393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-10 23:58:29.460146"], ["updated_at", "2017-11-10 23:58:29.460146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.460905"], ["updated_at", "2017-11-10 23:58:29.460905"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.463917"], ["updated_at", "2017-11-10 23:58:29.463917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.464972"], ["updated_at", "2017-11-10 23:58:29.464972"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.466924"], ["updated_at", "2017-11-10 23:58:29.466924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.467612"], ["updated_at", "2017-11-10 23:58:29.467612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.482219"], ["updated_at", "2017-11-10 23:58:29.482219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.488177"], ["updated_at", "2017-11-10 23:58:29.488177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.488979"], ["updated_at", "2017-11-10 23:58:29.488979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.498262"], ["updated_at", "2017-11-10 23:58:29.498262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.499422"], ["updated_at", "2017-11-10 23:58:29.499422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.508046"], ["updated_at", "2017-11-10 23:58:29.508046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.508811"], ["updated_at", "2017-11-10 23:58:29.508811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.510730"], ["updated_at", "2017-11-10 23:58:29.510730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.514614"], ["updated_at", "2017-11-10 23:58:29.514614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.516595"], ["updated_at", "2017-11-10 23:58:29.516595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-10 23:58:29.532632"], ["updated_at", "2017-11-10 23:58:29.532632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (2.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.274563"], ["updated_at", "2017-11-11 00:00:50.274563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.277329"], ["updated_at", "2017-11-11 00:00:50.277329"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.281565"], ["updated_at", "2017-11-11 00:00:50.281565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.305202"], ["updated_at", "2017-11-11 00:00:50.305202"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.306514"], ["updated_at", "2017-11-11 00:00:50.306514"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.307520"], ["updated_at", "2017-11-11 00:00:50.307520"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.310178"], ["updated_at", "2017-11-11 00:00:50.310178"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:00:50.311093"], ["updated_at", "2017-11-11 00:00:50.311093"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.317098"], ["updated_at", "2017-11-11 00:00:50.317098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.318058"], ["updated_at", "2017-11-11 00:00:50.318058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.320516"], ["updated_at", "2017-11-11 00:00:50.320516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:00:50.325985"], ["updated_at", "2017-11-11 00:00:50.325985"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:00:50.327833"], ["updated_at", "2017-11-11 00:00:50.327833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:00:50.331497"], ["updated_at", "2017-11-11 00:00:50.331497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:00:50.332977"], ["updated_at", "2017-11-11 00:00:50.332977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:00:50.348495"], ["updated_at", "2017-11-11 00:00:50.348495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.355011"], ["updated_at", "2017-11-11 00:00:50.355011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.356087"], ["updated_at", "2017-11-11 00:00:50.356087"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.372898"], ["updated_at", "2017-11-11 00:00:50.372898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.374147"], ["updated_at", "2017-11-11 00:00:50.374147"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.376568"], ["updated_at", "2017-11-11 00:00:50.376568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.378134"], ["updated_at", "2017-11-11 00:00:50.378134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.379082"], ["updated_at", "2017-11-11 00:00:50.379082"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.382089"], ["updated_at", "2017-11-11 00:00:50.382089"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.383179"], ["updated_at", "2017-11-11 00:00:50.383179"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.386011"], ["updated_at", "2017-11-11 00:00:50.386011"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.387006"], ["updated_at", "2017-11-11 00:00:50.387006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.392931"], ["updated_at", "2017-11-11 00:00:50.392931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:00:50.398142"], ["updated_at", "2017-11-11 00:00:50.398142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.400812"], ["updated_at", "2017-11-11 00:00:50.400812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.406186"], ["updated_at", "2017-11-11 00:00:50.406186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.408457"], ["updated_at", "2017-11-11 00:00:50.408457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.411517"], ["updated_at", "2017-11-11 00:00:50.411517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:00:50.416876"], ["updated_at", "2017-11-11 00:00:50.416876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:00:50.418566"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:00:50.421762"], ["updated_at", "2017-11-11 00:00:50.421762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:00:50.422770"], ["updated_at", "2017-11-11 00:00:50.422770"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.426799"], ["updated_at", "2017-11-11 00:00:50.426799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.427724"], ["updated_at", "2017-11-11 00:00:50.427724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.437587"], ["updated_at", "2017-11-11 00:00:50.437587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.439712"], ["updated_at", "2017-11-11 00:00:50.439712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.441856"], ["updated_at", "2017-11-11 00:00:50.441856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.445194"], ["updated_at", "2017-11-11 00:00:50.445194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.445981"], ["updated_at", "2017-11-11 00:00:50.445981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:00:50.452340"], ["updated_at", "2017-11-11 00:00:50.452340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:00:50.453215"], ["updated_at", "2017-11-11 00:00:50.453215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:00:50.454909"], ["updated_at", "2017-11-11 00:00:50.454909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:00:50.455710"], ["updated_at", "2017-11-11 00:00:50.455710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:00:50.459326"], ["updated_at", "2017-11-11 00:00:50.459326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:00:50.460250"], ["updated_at", "2017-11-11 00:00:50.460250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.461085"], ["updated_at", "2017-11-11 00:00:50.461085"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:00:50.469986"], ["updated_at", "2017-11-11 00:00:50.469986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.483132"], ["updated_at", "2017-11-11 00:00:50.483132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.486965"], ["updated_at", "2017-11-11 00:00:50.486965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.489096"], ["updated_at", "2017-11-11 00:00:50.489096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:00:50.492688"], ["updated_at", "2017-11-11 00:00:50.492688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:00:50.494875"], ["updated_at", "2017-11-11 00:00:50.494875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.503798"], ["updated_at", "2017-11-11 00:00:50.503798"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.506101"], ["updated_at", "2017-11-11 00:00:50.506101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.510542"], ["updated_at", "2017-11-11 00:00:50.510542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.511328"], ["updated_at", "2017-11-11 00:00:50.511328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.513148"], ["updated_at", "2017-11-11 00:00:50.513148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.516541"], ["updated_at", "2017-11-11 00:00:50.516541"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.517576"], ["updated_at", "2017-11-11 00:00:50.517576"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.522573"], ["updated_at", "2017-11-11 00:00:50.522573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.529124"], ["updated_at", "2017-11-11 00:00:50.529124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.536856"], ["updated_at", "2017-11-11 00:00:50.536856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.537888"], ["updated_at", "2017-11-11 00:00:50.537888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.546739"], ["updated_at", "2017-11-11 00:00:50.546739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.547542"], ["updated_at", "2017-11-11 00:00:50.547542"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.549858"], ["updated_at", "2017-11-11 00:00:50.549858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.550695"], ["updated_at", "2017-11-11 00:00:50.550695"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.559030"], ["updated_at", "2017-11-11 00:00:50.559030"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.567312"], ["updated_at", "2017-11-11 00:00:50.567312"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.571302"], ["updated_at", "2017-11-11 00:00:50.571302"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.4ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.578945"], ["updated_at", "2017-11-11 00:00:50.578945"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.625165"], ["updated_at", "2017-11-11 00:00:50.625165"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.631283"], ["updated_at", "2017-11-11 00:00:50.631283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.632188"], ["updated_at", "2017-11-11 00:00:50.632188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (5.7ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.785964"], ["updated_at", "2017-11-11 00:00:50.785964"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:00:50.799764"], ["updated_at", "2017-11-11 00:00:50.799764"]]  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.806495"], ["updated_at", "2017-11-11 00:00:50.806495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.812011"], ["updated_at", "2017-11-11 00:00:50.812011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:50.815185"], ["updated_at", "2017-11-11 00:00:50.815185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:00:50.833490"], ["updated_at", "2017-11-11 00:00:50.833490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:00:50.834542"], ["updated_at", "2017-11-11 00:00:50.834542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.067314"], ["updated_at", "2017-11-11 00:00:58.067314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.070132"], ["updated_at", "2017-11-11 00:00:58.070132"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.076398"], ["updated_at", "2017-11-11 00:00:58.076398"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.077326"], ["updated_at", "2017-11-11 00:00:58.077326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.110907"], ["updated_at", "2017-11-11 00:00:58.110907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:00:58.111908"], ["updated_at", "2017-11-11 00:00:58.111908"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.114486"], ["updated_at", "2017-11-11 00:00:58.114486"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.119959"], ["updated_at", "2017-11-11 00:00:58.119959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.120809"], ["updated_at", "2017-11-11 00:00:58.120809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.122792"], ["updated_at", "2017-11-11 00:00:58.122792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:00:58.126452"], ["updated_at", "2017-11-11 00:00:58.126452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:00:58.128559"], ["updated_at", "2017-11-11 00:00:58.128559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.140328"], ["updated_at", "2017-11-11 00:00:58.140328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.141306"], ["updated_at", "2017-11-11 00:00:58.141306"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.146744"], ["updated_at", "2017-11-11 00:00:58.146744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.147625"], ["updated_at", "2017-11-11 00:00:58.147625"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.149786"], ["updated_at", "2017-11-11 00:00:58.149786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.152847"], ["updated_at", "2017-11-11 00:00:58.152847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.155620"], ["updated_at", "2017-11-11 00:00:58.155620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.159260"], ["updated_at", "2017-11-11 00:00:58.159260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.161555"], ["updated_at", "2017-11-11 00:00:58.161555"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:00:58.164951"], ["updated_at", "2017-11-11 00:00:58.164951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:00:58.165984"], ["updated_at", "2017-11-11 00:00:58.165984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:00:58.167974"], ["updated_at", "2017-11-11 00:00:58.167974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:00:58.168961"], ["updated_at", "2017-11-11 00:00:58.168961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:00:58.179457"], ["updated_at", "2017-11-11 00:00:58.179457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.181655"], ["updated_at", "2017-11-11 00:00:58.181655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:00:58.190778"], ["updated_at", "2017-11-11 00:00:58.190778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.195689"], ["updated_at", "2017-11-11 00:00:58.195689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.200093"], ["updated_at", "2017-11-11 00:00:58.200093"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.203689"], ["updated_at", "2017-11-11 00:00:58.203689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.208029"], ["updated_at", "2017-11-11 00:00:58.208029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.212414"], ["updated_at", "2017-11-11 00:00:58.212414"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.213212"], ["updated_at", "2017-11-11 00:00:58.213212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.215207"], ["updated_at", "2017-11-11 00:00:58.215207"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:00:58.230062"], ["updated_at", "2017-11-11 00:00:58.230062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:00:58.231101"], ["updated_at", "2017-11-11 00:00:58.231101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.231981"], ["updated_at", "2017-11-11 00:00:58.231981"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.234405"], ["updated_at", "2017-11-11 00:00:58.234405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.235674"], ["updated_at", "2017-11-11 00:00:58.235674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.251374"], ["updated_at", "2017-11-11 00:00:58.251374"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.253139"], ["updated_at", "2017-11-11 00:00:58.253139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.254313"], ["updated_at", "2017-11-11 00:00:58.254313"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.270302"], ["updated_at", "2017-11-11 00:00:58.270302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.274696"], ["updated_at", "2017-11-11 00:00:58.274696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.275420"], ["updated_at", "2017-11-11 00:00:58.275420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.281737"], ["updated_at", "2017-11-11 00:00:58.281737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.282548"], ["updated_at", "2017-11-11 00:00:58.282548"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.284625"], ["updated_at", "2017-11-11 00:00:58.284625"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.289615"], ["updated_at", "2017-11-11 00:00:58.289615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.290433"], ["updated_at", "2017-11-11 00:00:58.290433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.295087"], ["updated_at", "2017-11-11 00:00:58.295087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.295883"], ["updated_at", "2017-11-11 00:00:58.295883"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.301677"], ["updated_at", "2017-11-11 00:00:58.301677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:00:58.306988"], ["updated_at", "2017-11-11 00:00:58.306988"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:00:58.307975"], ["updated_at", "2017-11-11 00:00:58.307975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:00:58.309827"], ["updated_at", "2017-11-11 00:00:58.309827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:00:58.310617"], ["updated_at", "2017-11-11 00:00:58.310617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.316568"], ["updated_at", "2017-11-11 00:00:58.316568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:00:58.321746"], ["updated_at", "2017-11-11 00:00:58.321746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:00:58.323399"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:00:58.324702"], ["updated_at", "2017-11-11 00:00:58.324702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:00:58.325498"], ["updated_at", "2017-11-11 00:00:58.325498"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.329108"], ["updated_at", "2017-11-11 00:00:58.329108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.336684"], ["updated_at", "2017-11-11 00:00:58.336684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.342260"], ["updated_at", "2017-11-11 00:00:58.342260"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:00:58.345058"], ["updated_at", "2017-11-11 00:00:58.345058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.354222"], ["updated_at", "2017-11-11 00:00:58.354222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.358144"], ["updated_at", "2017-11-11 00:00:58.358144"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.358878"], ["updated_at", "2017-11-11 00:00:58.358878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.359588"], ["updated_at", "2017-11-11 00:00:58.359588"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.361604"], ["updated_at", "2017-11-11 00:00:58.361604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.363585"], ["updated_at", "2017-11-11 00:00:58.363585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.377231"], ["updated_at", "2017-11-11 00:00:58.377231"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.378067"], ["updated_at", "2017-11-11 00:00:58.378067"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.380326"], ["updated_at", "2017-11-11 00:00:58.380326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.381064"], ["updated_at", "2017-11-11 00:00:58.381064"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.382707"], ["updated_at", "2017-11-11 00:00:58.382707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.383523"], ["updated_at", "2017-11-11 00:00:58.383523"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.422358"], ["updated_at", "2017-11-11 00:00:58.422358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.436582"], ["updated_at", "2017-11-11 00:00:58.436582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.441921"], ["updated_at", "2017-11-11 00:00:58.441921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:00:58.444581"], ["updated_at", "2017-11-11 00:00:58.444581"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:00:58.449689"], ["updated_at", "2017-11-11 00:00:58.449689"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:00:58.462388"], ["updated_at", "2017-11-11 00:00:58.462388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:00:58.463332"], ["updated_at", "2017-11-11 00:00:58.463332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:01:04.182548"], ["updated_at", "2017-11-11 00:01:04.182548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:01:04.184986"], ["updated_at", "2017-11-11 00:01:04.184986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.248034"], ["updated_at", "2017-11-11 00:01:04.248034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.267679"], ["updated_at", "2017-11-11 00:01:04.267679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.272892"], ["updated_at", "2017-11-11 00:01:04.272892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.275523"], ["updated_at", "2017-11-11 00:01:04.275523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:01:04.284078"], ["updated_at", "2017-11-11 00:01:04.284078"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.406585"], ["updated_at", "2017-11-11 00:01:04.406585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.407588"], ["updated_at", "2017-11-11 00:01:04.407588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.409713"], ["updated_at", "2017-11-11 00:01:04.409713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.412958"], ["updated_at", "2017-11-11 00:01:04.412958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.414985"], ["updated_at", "2017-11-11 00:01:04.414985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.417032"], ["updated_at", "2017-11-11 00:01:04.417032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.420534"], ["updated_at", "2017-11-11 00:01:04.420534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.427125"], ["updated_at", "2017-11-11 00:01:04.427125"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.436784"], ["updated_at", "2017-11-11 00:01:04.436784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.441853"], ["updated_at", "2017-11-11 00:01:04.441853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.442916"], ["updated_at", "2017-11-11 00:01:04.442916"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:01:04.452714"], ["updated_at", "2017-11-11 00:01:04.452714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.465284"], ["updated_at", "2017-11-11 00:01:04.465284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.467623"], ["updated_at", "2017-11-11 00:01:04.467623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:01:04.471076"], ["updated_at", "2017-11-11 00:01:04.471076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:01:04.472009"], ["updated_at", "2017-11-11 00:01:04.472009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.472812"], ["updated_at", "2017-11-11 00:01:04.472812"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.476818"], ["updated_at", "2017-11-11 00:01:04.476818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.477738"], ["updated_at", "2017-11-11 00:01:04.477738"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:01:04.481281"], ["updated_at", "2017-11-11 00:01:04.481281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:01:04.482534"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:01:04.483587"], ["updated_at", "2017-11-11 00:01:04.483587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:01:04.484646"], ["updated_at", "2017-11-11 00:01:04.484646"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:01:04.488879"], ["updated_at", "2017-11-11 00:01:04.488879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:01:04.489926"], ["updated_at", "2017-11-11 00:01:04.489926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:01:04.491915"], ["updated_at", "2017-11-11 00:01:04.491915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:01:04.492886"], ["updated_at", "2017-11-11 00:01:04.492886"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.499884"], ["updated_at", "2017-11-11 00:01:04.499884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.500692"], ["updated_at", "2017-11-11 00:01:04.500692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.502728"], ["updated_at", "2017-11-11 00:01:04.502728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.506373"], ["updated_at", "2017-11-11 00:01:04.506373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.507200"], ["updated_at", "2017-11-11 00:01:04.507200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.517466"], ["updated_at", "2017-11-11 00:01:04.517466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.518624"], ["updated_at", "2017-11-11 00:01:04.518624"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:01:04.523333"], ["updated_at", "2017-11-11 00:01:04.523333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.527410"], ["updated_at", "2017-11-11 00:01:04.527410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.533547"], ["updated_at", "2017-11-11 00:01:04.533547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.536114"], ["updated_at", "2017-11-11 00:01:04.536114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.539574"], ["updated_at", "2017-11-11 00:01:04.539574"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.543439"], ["updated_at", "2017-11-11 00:01:04.543439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.547985"], ["updated_at", "2017-11-11 00:01:04.547985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.548736"], ["updated_at", "2017-11-11 00:01:04.548736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.549463"], ["updated_at", "2017-11-11 00:01:04.549463"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.551982"], ["updated_at", "2017-11-11 00:01:04.551982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.552943"], ["updated_at", "2017-11-11 00:01:04.552943"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:01:04.559714"], ["updated_at", "2017-11-11 00:01:04.559714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.562094"], ["updated_at", "2017-11-11 00:01:04.562094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.568215"], ["updated_at", "2017-11-11 00:01:04.568215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:01:04.572752"], ["updated_at", "2017-11-11 00:01:04.572752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:01:04.575126"], ["updated_at", "2017-11-11 00:01:04.575126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.583540"], ["updated_at", "2017-11-11 00:01:04.583540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.584498"], ["updated_at", "2017-11-11 00:01:04.584498"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.586414"], ["updated_at", "2017-11-11 00:01:04.586414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.587340"], ["updated_at", "2017-11-11 00:01:04.587340"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.589423"], ["updated_at", "2017-11-11 00:01:04.589423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:01:04.590278"], ["updated_at", "2017-11-11 00:01:04.590278"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:01:04.610716"], ["updated_at", "2017-11-11 00:01:04.610716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:01:04.611558"], ["updated_at", "2017-11-11 00:01:04.611558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:01:04.613209"], ["updated_at", "2017-11-11 00:01:04.613209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:01:04.613978"], ["updated_at", "2017-11-11 00:01:04.613978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.617016"], ["updated_at", "2017-11-11 00:01:04.617016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.617966"], ["updated_at", "2017-11-11 00:01:04.617966"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.620191"], ["updated_at", "2017-11-11 00:01:04.620191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.624703"], ["updated_at", "2017-11-11 00:01:04.624703"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.629929"], ["updated_at", "2017-11-11 00:01:04.629929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.643253"], ["updated_at", "2017-11-11 00:01:04.643253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.645511"], ["updated_at", "2017-11-11 00:01:04.645511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.648813"], ["updated_at", "2017-11-11 00:01:04.648813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.652656"], ["updated_at", "2017-11-11 00:01:04.652656"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.653819"], ["updated_at", "2017-11-11 00:01:04.653819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.661008"], ["updated_at", "2017-11-11 00:01:04.661008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.661978"], ["updated_at", "2017-11-11 00:01:04.661978"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.664316"], ["updated_at", "2017-11-11 00:01:04.664316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.665086"], ["updated_at", "2017-11-11 00:01:04.665086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.665788"], ["updated_at", "2017-11-11 00:01:04.665788"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.668089"], ["updated_at", "2017-11-11 00:01:04.668089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.673361"], ["updated_at", "2017-11-11 00:01:04.673361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.678328"], ["updated_at", "2017-11-11 00:01:04.678328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:04.679285"], ["updated_at", "2017-11-11 00:01:04.679285"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:01:10.318943"], ["updated_at", "2017-11-11 00:01:10.318943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:01:10.322140"], ["updated_at", "2017-11-11 00:01:10.322140"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.322966"], ["updated_at", "2017-11-11 00:01:10.322966"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.328433"], ["updated_at", "2017-11-11 00:01:10.328433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.329452"], ["updated_at", "2017-11-11 00:01:10.329452"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:01:10.332426"], ["updated_at", "2017-11-11 00:01:10.332426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.351469"], ["updated_at", "2017-11-11 00:01:10.351469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.363402"], ["updated_at", "2017-11-11 00:01:10.363402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.365639"], ["updated_at", "2017-11-11 00:01:10.365639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.367550"], ["updated_at", "2017-11-11 00:01:10.367550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.370982"], ["updated_at", "2017-11-11 00:01:10.370982"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.372951"], ["updated_at", "2017-11-11 00:01:10.372951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.397583"], ["updated_at", "2017-11-11 00:01:10.397583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.402636"], ["updated_at", "2017-11-11 00:01:10.402636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.404916"], ["updated_at", "2017-11-11 00:01:10.404916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.409109"], ["updated_at", "2017-11-11 00:01:10.409109"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.414192"], ["updated_at", "2017-11-11 00:01:10.414192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.422350"], ["updated_at", "2017-11-11 00:01:10.422350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.429036"], ["updated_at", "2017-11-11 00:01:10.429036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:01:10.430023"], ["updated_at", "2017-11-11 00:01:10.430023"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.433470"], ["updated_at", "2017-11-11 00:01:10.433470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.434377"], ["updated_at", "2017-11-11 00:01:10.434377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.435221"], ["updated_at", "2017-11-11 00:01:10.435221"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.438563"], ["updated_at", "2017-11-11 00:01:10.438563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.444451"], ["updated_at", "2017-11-11 00:01:10.444451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.449666"], ["updated_at", "2017-11-11 00:01:10.449666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.450516"], ["updated_at", "2017-11-11 00:01:10.450516"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:01:10.456162"], ["updated_at", "2017-11-11 00:01:10.456162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.467128"], ["updated_at", "2017-11-11 00:01:10.467128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.469498"], ["updated_at", "2017-11-11 00:01:10.469498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.485116"], ["updated_at", "2017-11-11 00:01:10.485116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.486250"], ["updated_at", "2017-11-11 00:01:10.486250"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.489234"], ["updated_at", "2017-11-11 00:01:10.489234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.494986"], ["updated_at", "2017-11-11 00:01:10.494986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.496201"], ["updated_at", "2017-11-11 00:01:10.496201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.498570"], ["updated_at", "2017-11-11 00:01:10.498570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.513249"], ["updated_at", "2017-11-11 00:01:10.513249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.513996"], ["updated_at", "2017-11-11 00:01:10.513996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.525692"], ["updated_at", "2017-11-11 00:01:10.525692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.526474"], ["updated_at", "2017-11-11 00:01:10.526474"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.528432"], ["updated_at", "2017-11-11 00:01:10.528432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.529080"], ["updated_at", "2017-11-11 00:01:10.529080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:01:10.536646"], ["updated_at", "2017-11-11 00:01:10.536646"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.540662"], ["updated_at", "2017-11-11 00:01:10.540662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:01:10.543880"], ["updated_at", "2017-11-11 00:01:10.543880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:01:10.544677"], ["updated_at", "2017-11-11 00:01:10.544677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:01:10.546381"], ["updated_at", "2017-11-11 00:01:10.546381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:01:10.547231"], ["updated_at", "2017-11-11 00:01:10.547231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:01:10.551451"], ["updated_at", "2017-11-11 00:01:10.551451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:01:10.552711"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:01:10.554084"], ["updated_at", "2017-11-11 00:01:10.554084"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:01:10.554887"], ["updated_at", "2017-11-11 00:01:10.554887"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.558474"], ["updated_at", "2017-11-11 00:01:10.558474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.562755"], ["updated_at", "2017-11-11 00:01:10.562755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.566535"], ["updated_at", "2017-11-11 00:01:10.566535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.567397"], ["updated_at", "2017-11-11 00:01:10.567397"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.569324"], ["updated_at", "2017-11-11 00:01:10.569324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.570234"], ["updated_at", "2017-11-11 00:01:10.570234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.570992"], ["updated_at", "2017-11-11 00:01:10.570992"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.573358"], ["updated_at", "2017-11-11 00:01:10.573358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.574043"], ["updated_at", "2017-11-11 00:01:10.574043"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.576212"], ["updated_at", "2017-11-11 00:01:10.576212"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.576964"], ["updated_at", "2017-11-11 00:01:10.576964"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.579257"], ["updated_at", "2017-11-11 00:01:10.579257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.579996"], ["updated_at", "2017-11-11 00:01:10.579996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.584614"], ["updated_at", "2017-11-11 00:01:10.584614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.585793"], ["updated_at", "2017-11-11 00:01:10.585793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.592707"], ["updated_at", "2017-11-11 00:01:10.592707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.593479"], ["updated_at", "2017-11-11 00:01:10.593479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:01:10.601313"], ["updated_at", "2017-11-11 00:01:10.601313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:01:10.602163"], ["updated_at", "2017-11-11 00:01:10.602163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:01:10.603750"], ["updated_at", "2017-11-11 00:01:10.603750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:01:10.604481"], ["updated_at", "2017-11-11 00:01:10.604481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.614030"], ["updated_at", "2017-11-11 00:01:10.614030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.614849"], ["updated_at", "2017-11-11 00:01:10.614849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.616760"], ["updated_at", "2017-11-11 00:01:10.616760"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:01:10.620683"], ["updated_at", "2017-11-11 00:01:10.620683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:01:10.622871"], ["updated_at", "2017-11-11 00:01:10.622871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.630715"], ["updated_at", "2017-11-11 00:01:10.630715"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:01:10.831996"], ["updated_at", "2017-11-11 00:01:10.831996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:01:10.832885"], ["updated_at", "2017-11-11 00:01:10.832885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.864890"], ["updated_at", "2017-11-11 00:01:10.864890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.870189"], ["updated_at", "2017-11-11 00:01:10.870189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.872710"], ["updated_at", "2017-11-11 00:01:10.872710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:10.877562"], ["updated_at", "2017-11-11 00:01:10.877562"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:01:10.882239"], ["updated_at", "2017-11-11 00:01:10.882239"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:01:19.675328"], ["updated_at", "2017-11-11 00:01:19.675328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:01:19.676391"], ["updated_at", "2017-11-11 00:01:19.676391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.711283"], ["updated_at", "2017-11-11 00:01:19.711283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.716828"], ["updated_at", "2017-11-11 00:01:19.716828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.719622"], ["updated_at", "2017-11-11 00:01:19.719622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.726336"], ["updated_at", "2017-11-11 00:01:19.726336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:01:19.736316"], ["updated_at", "2017-11-11 00:01:19.736316"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.807080"], ["updated_at", "2017-11-11 00:01:19.807080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 2)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.813449"], ["updated_at", "2017-11-11 00:01:19.813449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.814240"], ["updated_at", "2017-11-11 00:01:19.814240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.823298"], ["updated_at", "2017-11-11 00:01:19.823298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.827590"], ["updated_at", "2017-11-11 00:01:19.827590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.831496"], ["updated_at", "2017-11-11 00:01:19.831496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.832765"], ["updated_at", "2017-11-11 00:01:19.832765"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.836206"], ["updated_at", "2017-11-11 00:01:19.836206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.844916"], ["updated_at", "2017-11-11 00:01:19.844916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:01:19.866665"], ["updated_at", "2017-11-11 00:01:19.866665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.871430"], ["updated_at", "2017-11-11 00:01:19.871430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:01:19.872417"], ["updated_at", "2017-11-11 00:01:19.872417"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.874937"], ["updated_at", "2017-11-11 00:01:19.874937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.875820"], ["updated_at", "2017-11-11 00:01:19.875820"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.878449"], ["updated_at", "2017-11-11 00:01:19.878449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.879454"], ["updated_at", "2017-11-11 00:01:19.879454"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:01:19.881313"], ["updated_at", "2017-11-11 00:01:19.881313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:01:19.882197"], ["updated_at", "2017-11-11 00:01:19.882197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.882985"], ["updated_at", "2017-11-11 00:01:19.882985"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.884838"], ["updated_at", "2017-11-11 00:01:19.884838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.885788"], ["updated_at", "2017-11-11 00:01:19.885788"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.890601"], ["updated_at", "2017-11-11 00:01:19.890601"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.891475"], ["updated_at", "2017-11-11 00:01:19.891475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:01:19.897653"], ["updated_at", "2017-11-11 00:01:19.897653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:01:19.899912"], ["updated_at", "2017-11-11 00:01:19.899912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.910125"], ["updated_at", "2017-11-11 00:01:19.910125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.916093"], ["updated_at", "2017-11-11 00:01:19.916093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.917012"], ["updated_at", "2017-11-11 00:01:19.917012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.918997"], ["updated_at", "2017-11-11 00:01:19.918997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.935992"], ["updated_at", "2017-11-11 00:01:19.935992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.940971"], ["updated_at", "2017-11-11 00:01:19.940971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.945081"], ["updated_at", "2017-11-11 00:01:19.945081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.945830"], ["updated_at", "2017-11-11 00:01:19.945830"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.947579"], ["updated_at", "2017-11-11 00:01:19.947579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.948256"], ["updated_at", "2017-11-11 00:01:19.948256"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:01:19.953552"], ["updated_at", "2017-11-11 00:01:19.953552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.956412"], ["updated_at", "2017-11-11 00:01:19.956412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.960448"], ["updated_at", "2017-11-11 00:01:19.960448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.962473"], ["updated_at", "2017-11-11 00:01:19.962473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.964544"], ["updated_at", "2017-11-11 00:01:19.964544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.967897"], ["updated_at", "2017-11-11 00:01:19.967897"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.968647"], ["updated_at", "2017-11-11 00:01:19.968647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.969357"], ["updated_at", "2017-11-11 00:01:19.969357"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:01:19.972239"], ["updated_at", "2017-11-11 00:01:19.972239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:01:19.973369"], ["updated_at", "2017-11-11 00:01:19.973369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:01:19.975025"], ["updated_at", "2017-11-11 00:01:19.975025"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:01:19.975957"], ["updated_at", "2017-11-11 00:01:19.975957"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.986238"], ["updated_at", "2017-11-11 00:01:19.986238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.987052"], ["updated_at", "2017-11-11 00:01:19.987052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:19.987751"], ["updated_at", "2017-11-11 00:01:19.987751"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:01:19.992247"], ["updated_at", "2017-11-11 00:01:19.992247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:01:19.994459"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:01:19.995714"], ["updated_at", "2017-11-11 00:01:19.995714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:01:19.996588"], ["updated_at", "2017-11-11 00:01:19.996588"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.000246"], ["updated_at", "2017-11-11 00:01:20.000246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.001159"], ["updated_at", "2017-11-11 00:01:20.001159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.012605"], ["updated_at", "2017-11-11 00:01:20.012605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.013548"], ["updated_at", "2017-11-11 00:01:20.013548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.015626"], ["updated_at", "2017-11-11 00:01:20.015626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.019118"], ["updated_at", "2017-11-11 00:01:20.019118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.021368"], ["updated_at", "2017-11-11 00:01:20.021368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.024692"], ["updated_at", "2017-11-11 00:01:20.024692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.025470"], ["updated_at", "2017-11-11 00:01:20.025470"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.027893"], ["updated_at", "2017-11-11 00:01:20.027893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.028640"], ["updated_at", "2017-11-11 00:01:20.028640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.036239"], ["updated_at", "2017-11-11 00:01:20.036239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.037277"], ["updated_at", "2017-11-11 00:01:20.037277"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.039761"], ["updated_at", "2017-11-11 00:01:20.039761"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.045821"], ["updated_at", "2017-11-11 00:01:20.045821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.055746"], ["updated_at", "2017-11-11 00:01:20.055746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.059149"], ["updated_at", "2017-11-11 00:01:20.059149"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.063695"], ["updated_at", "2017-11-11 00:01:20.063695"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:01:20.067105"], ["updated_at", "2017-11-11 00:01:20.067105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.076570"], ["updated_at", "2017-11-11 00:01:20.076570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:20.078806"], ["updated_at", "2017-11-11 00:01:20.078806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:01:20.082156"], ["updated_at", "2017-11-11 00:01:20.082156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:01:20.083300"], ["updated_at", "2017-11-11 00:01:20.083300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:01:20.085016"], ["updated_at", "2017-11-11 00:01:20.085016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:01:20.085930"], ["updated_at", "2017-11-11 00:01:20.085930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:01:24.057495"], ["updated_at", "2017-11-11 00:01:24.057495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.104569"], ["updated_at", "2017-11-11 00:01:24.104569"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.105480"], ["updated_at", "2017-11-11 00:01:24.105480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.108007"], ["updated_at", "2017-11-11 00:01:24.108007"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:01:24.111489"], ["updated_at", "2017-11-11 00:01:24.111489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:01:24.112425"], ["updated_at", "2017-11-11 00:01:24.112425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.113227"], ["updated_at", "2017-11-11 00:01:24.113227"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.128657"], ["updated_at", "2017-11-11 00:01:24.128657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.129940"], ["updated_at", "2017-11-11 00:01:24.129940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.139958"], ["updated_at", "2017-11-11 00:01:24.139958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.140724"], ["updated_at", "2017-11-11 00:01:24.140724"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.141413"], ["updated_at", "2017-11-11 00:01:24.141413"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:01:24.143773"], ["updated_at", "2017-11-11 00:01:24.143773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:01:24.144535"], ["updated_at", "2017-11-11 00:01:24.144535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:01:24.146942"], ["updated_at", "2017-11-11 00:01:24.146942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:01:24.147804"], ["updated_at", "2017-11-11 00:01:24.147804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.155397"], ["updated_at", "2017-11-11 00:01:24.155397"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:01:24.156758"], ["updated_at", "2017-11-11 00:01:24.156758"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.159675"], ["updated_at", "2017-11-11 00:01:24.159675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.164381"], ["updated_at", "2017-11-11 00:01:24.164381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.165243"], ["updated_at", "2017-11-11 00:01:24.165243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.165998"], ["updated_at", "2017-11-11 00:01:24.165998"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.168342"], ["updated_at", "2017-11-11 00:01:24.168342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.172284"], ["updated_at", "2017-11-11 00:01:24.172284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.177335"], ["updated_at", "2017-11-11 00:01:24.177335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.179832"], ["updated_at", "2017-11-11 00:01:24.179832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.183917"], ["updated_at", "2017-11-11 00:01:24.183917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.184801"], ["updated_at", "2017-11-11 00:01:24.184801"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.187805"], ["updated_at", "2017-11-11 00:01:24.187805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.188756"], ["updated_at", "2017-11-11 00:01:24.188756"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:01:24.195795"], ["updated_at", "2017-11-11 00:01:24.195795"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.201697"], ["updated_at", "2017-11-11 00:01:24.201697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.210291"], ["updated_at", "2017-11-11 00:01:24.210291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.214859"], ["updated_at", "2017-11-11 00:01:24.214859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.216898"], ["updated_at", "2017-11-11 00:01:24.216898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:01:24.220119"], ["updated_at", "2017-11-11 00:01:24.220119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:01:24.223126"], ["updated_at", "2017-11-11 00:01:24.223126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:01:24.233907"], ["updated_at", "2017-11-11 00:01:24.233907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:01:24.235091"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:01:24.236062"], ["updated_at", "2017-11-11 00:01:24.236062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:01:24.236854"], ["updated_at", "2017-11-11 00:01:24.236854"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.242447"], ["updated_at", "2017-11-11 00:01:24.242447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.243242"], ["updated_at", "2017-11-11 00:01:24.243242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.248117"], ["updated_at", "2017-11-11 00:01:24.248117"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.250114"], ["updated_at", "2017-11-11 00:01:24.250114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.250889"], ["updated_at", "2017-11-11 00:01:24.250889"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.258567"], ["updated_at", "2017-11-11 00:01:24.258567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.265566"], ["updated_at", "2017-11-11 00:01:24.265566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.266418"], ["updated_at", "2017-11-11 00:01:24.266418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.275654"], ["updated_at", "2017-11-11 00:01:24.275654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.276416"], ["updated_at", "2017-11-11 00:01:24.276416"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.278791"], ["updated_at", "2017-11-11 00:01:24.278791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.284558"], ["updated_at", "2017-11-11 00:01:24.284558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.285374"], ["updated_at", "2017-11-11 00:01:24.285374"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:01:24.287264"], ["updated_at", "2017-11-11 00:01:24.287264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.289484"], ["updated_at", "2017-11-11 00:01:24.289484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.293342"], ["updated_at", "2017-11-11 00:01:24.293342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.295420"], ["updated_at", "2017-11-11 00:01:24.295420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.297914"], ["updated_at", "2017-11-11 00:01:24.297914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:01:24.301333"], ["updated_at", "2017-11-11 00:01:24.301333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:01:24.302199"], ["updated_at", "2017-11-11 00:01:24.302199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:01:24.304094"], ["updated_at", "2017-11-11 00:01:24.304094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:01:24.304983"], ["updated_at", "2017-11-11 00:01:24.304983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.311775"], ["updated_at", "2017-11-11 00:01:24.311775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.312724"], ["updated_at", "2017-11-11 00:01:24.312724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.318700"], ["updated_at", "2017-11-11 00:01:24.318700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.325285"], ["updated_at", "2017-11-11 00:01:24.325285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.333368"], ["updated_at", "2017-11-11 00:01:24.333368"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.334426"], ["updated_at", "2017-11-11 00:01:24.334426"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.337445"], ["updated_at", "2017-11-11 00:01:24.337445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.338317"], ["updated_at", "2017-11-11 00:01:24.338317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.340544"], ["updated_at", "2017-11-11 00:01:24.340544"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.344099"], ["updated_at", "2017-11-11 00:01:24.344099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.348562"], ["updated_at", "2017-11-11 00:01:24.348562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.349340"], ["updated_at", "2017-11-11 00:01:24.349340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.359298"], ["updated_at", "2017-11-11 00:01:24.359298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.361636"], ["updated_at", "2017-11-11 00:01:24.361636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.365615"], ["updated_at", "2017-11-11 00:01:24.365615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.366414"], ["updated_at", "2017-11-11 00:01:24.366414"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:01:24.469131"], ["updated_at", "2017-11-11 00:01:24.469131"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.471704"], ["updated_at", "2017-11-11 00:01:24.471704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.476654"], ["updated_at", "2017-11-11 00:01:24.476654"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.479426"], ["updated_at", "2017-11-11 00:01:24.479426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:01:24.491274"], ["updated_at", "2017-11-11 00:01:24.491274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:01:24.499154"], ["updated_at", "2017-11-11 00:01:24.499154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:01:24.500149"], ["updated_at", "2017-11-11 00:01:24.500149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.023434"], ["updated_at", "2017-11-11 00:06:18.023434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.047008"], ["updated_at", "2017-11-11 00:06:18.047008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.049349"], ["updated_at", "2017-11-11 00:06:18.049349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.111462"], ["updated_at", "2017-11-11 00:06:18.111462"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:06:18.117982"], ["updated_at", "2017-11-11 00:06:18.117982"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:06:18.121257"], ["updated_at", "2017-11-11 00:06:18.121257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:06:18.122213"], ["updated_at", "2017-11-11 00:06:18.122213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.3ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.256562"], ["updated_at", "2017-11-11 00:06:18.256562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.258685"], ["updated_at", "2017-11-11 00:06:18.258685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:06:18.266442"], ["updated_at", "2017-11-11 00:06:18.266442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.275573"], ["updated_at", "2017-11-11 00:06:18.275573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.276314"], ["updated_at", "2017-11-11 00:06:18.276314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.282648"], ["updated_at", "2017-11-11 00:06:18.282648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.286467"], ["updated_at", "2017-11-11 00:06:18.286467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.287221"], ["updated_at", "2017-11-11 00:06:18.287221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.288013"], ["updated_at", "2017-11-11 00:06:18.288013"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.290382"], ["updated_at", "2017-11-11 00:06:18.290382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.297975"], ["updated_at", "2017-11-11 00:06:18.297975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.298666"], ["updated_at", "2017-11-11 00:06:18.298666"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.303076"], ["updated_at", "2017-11-11 00:06:18.303076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.307919"], ["updated_at", "2017-11-11 00:06:18.307919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.313034"], ["updated_at", "2017-11-11 00:06:18.313034"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.318398"], ["updated_at", "2017-11-11 00:06:18.318398"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.320305"], ["updated_at", "2017-11-11 00:06:18.320305"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.322363"], ["updated_at", "2017-11-11 00:06:18.322363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.325977"], ["updated_at", "2017-11-11 00:06:18.325977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.326829"], ["updated_at", "2017-11-11 00:06:18.326829"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.340790"], ["updated_at", "2017-11-11 00:06:18.340790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.345421"], ["updated_at", "2017-11-11 00:06:18.345421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.346322"], ["updated_at", "2017-11-11 00:06:18.346322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.351193"], ["updated_at", "2017-11-11 00:06:18.351193"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.352058"], ["updated_at", "2017-11-11 00:06:18.352058"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.354686"], ["updated_at", "2017-11-11 00:06:18.354686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.356003"], ["updated_at", "2017-11-11 00:06:18.356003"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.358868"], ["updated_at", "2017-11-11 00:06:18.358868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.362515"], ["updated_at", "2017-11-11 00:06:18.362515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:06:18.371520"], ["updated_at", "2017-11-11 00:06:18.371520"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:06:18.372482"], ["updated_at", "2017-11-11 00:06:18.372482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.373411"], ["updated_at", "2017-11-11 00:06:18.373411"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.376053"], ["updated_at", "2017-11-11 00:06:18.376053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.376852"], ["updated_at", "2017-11-11 00:06:18.376852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.385488"], ["updated_at", "2017-11-11 00:06:18.385488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.386585"], ["updated_at", "2017-11-11 00:06:18.386585"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.388678"], ["updated_at", "2017-11-11 00:06:18.388678"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.389478"], ["updated_at", "2017-11-11 00:06:18.389478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.390220"], ["updated_at", "2017-11-11 00:06:18.390220"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:06:18.393118"], ["updated_at", "2017-11-11 00:06:18.393118"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:06:18.394052"], ["updated_at", "2017-11-11 00:06:18.394052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:06:18.395994"], ["updated_at", "2017-11-11 00:06:18.395994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:06:18.396998"], ["updated_at", "2017-11-11 00:06:18.396998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.404018"], ["updated_at", "2017-11-11 00:06:18.404018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.405019"], ["updated_at", "2017-11-11 00:06:18.405019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.406963"], ["updated_at", "2017-11-11 00:06:18.406963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.410464"], ["updated_at", "2017-11-11 00:06:18.410464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.411413"], ["updated_at", "2017-11-11 00:06:18.411413"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.413977"], ["updated_at", "2017-11-11 00:06:18.413977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.414735"], ["updated_at", "2017-11-11 00:06:18.414735"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.418570"], ["updated_at", "2017-11-11 00:06:18.418570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.419287"], ["updated_at", "2017-11-11 00:06:18.419287"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.421383"], ["updated_at", "2017-11-11 00:06:18.421383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:06:18.425763"], ["updated_at", "2017-11-11 00:06:18.425763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:06:18.426808"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:06:18.427717"], ["updated_at", "2017-11-11 00:06:18.427717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:06:18.428688"], ["updated_at", "2017-11-11 00:06:18.428688"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.431970"], ["updated_at", "2017-11-11 00:06:18.431970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.432785"], ["updated_at", "2017-11-11 00:06:18.432785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.441334"], ["updated_at", "2017-11-11 00:06:18.441334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.443198"], ["updated_at", "2017-11-11 00:06:18.443198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.446265"], ["updated_at", "2017-11-11 00:06:18.446265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.446939"], ["updated_at", "2017-11-11 00:06:18.446939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.448545"], ["updated_at", "2017-11-11 00:06:18.448545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:06:18.451396"], ["updated_at", "2017-11-11 00:06:18.451396"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:06:18.453127"], ["updated_at", "2017-11-11 00:06:18.453127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.462497"], ["updated_at", "2017-11-11 00:06:18.462497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.469383"], ["updated_at", "2017-11-11 00:06:18.469383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:06:18.470214"], ["updated_at", "2017-11-11 00:06:18.470214"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:06:18.472449"], ["updated_at", "2017-11-11 00:06:18.472449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.474332"], ["updated_at", "2017-11-11 00:06:18.474332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:06:18.477777"], ["updated_at", "2017-11-11 00:06:18.477777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:06:18.478679"], ["updated_at", "2017-11-11 00:06:18.478679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:06:18.480535"], ["updated_at", "2017-11-11 00:06:18.480535"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:06:18.481327"], ["updated_at", "2017-11-11 00:06:18.481327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:06:18.486616"], ["updated_at", "2017-11-11 00:06:18.486616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.490551"], ["updated_at", "2017-11-11 00:06:18.490551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.492573"], ["updated_at", "2017-11-11 00:06:18.492573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:18.494397"], ["updated_at", "2017-11-11 00:06:18.494397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (4.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:06:35.954027"], ["updated_at", "2017-11-11 00:06:35.954027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:06:35.955275"], ["updated_at", "2017-11-11 00:06:35.955275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:35.984917"], ["updated_at", "2017-11-11 00:06:35.984917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:35.992252"], ["updated_at", "2017-11-11 00:06:35.992252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:35.997737"], ["updated_at", "2017-11-11 00:06:35.997737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.000268"], ["updated_at", "2017-11-11 00:06:36.000268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:06:36.005548"], ["updated_at", "2017-11-11 00:06:36.005548"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.069463"], ["updated_at", "2017-11-11 00:06:36.069463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.070573"], ["updated_at", "2017-11-11 00:06:36.070573"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.073074"], ["updated_at", "2017-11-11 00:06:36.073074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.073814"], ["updated_at", "2017-11-11 00:06:36.073814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.075874"], ["updated_at", "2017-11-11 00:06:36.075874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:06:36.079079"], ["updated_at", "2017-11-11 00:06:36.079079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:06:36.080886"], ["updated_at", "2017-11-11 00:06:36.080886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:06:36.089173"], ["updated_at", "2017-11-11 00:06:36.089173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:06:36.090047"], ["updated_at", "2017-11-11 00:06:36.090047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:06:36.092010"], ["updated_at", "2017-11-11 00:06:36.092010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:06:36.092747"], ["updated_at", "2017-11-11 00:06:36.092747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.095668"], ["updated_at", "2017-11-11 00:06:36.095668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.100349"], ["updated_at", "2017-11-11 00:06:36.100349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.104819"], ["updated_at", "2017-11-11 00:06:36.104819"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:06:36.112057"], ["updated_at", "2017-11-11 00:06:36.112057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.137954"], ["updated_at", "2017-11-11 00:06:36.137954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.138861"], ["updated_at", "2017-11-11 00:06:36.138861"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:06:36.143088"], ["updated_at", "2017-11-11 00:06:36.143088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.160011"], ["updated_at", "2017-11-11 00:06:36.160011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.163722"], ["updated_at", "2017-11-11 00:06:36.163722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.164512"], ["updated_at", "2017-11-11 00:06:36.164512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.166571"], ["updated_at", "2017-11-11 00:06:36.166571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.170727"], ["updated_at", "2017-11-11 00:06:36.170727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.171648"], ["updated_at", "2017-11-11 00:06:36.171648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.178839"], ["updated_at", "2017-11-11 00:06:36.178839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.184126"], ["updated_at", "2017-11-11 00:06:36.184126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:06:36.189414"], ["updated_at", "2017-11-11 00:06:36.189414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.191196"], ["updated_at", "2017-11-11 00:06:36.191196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.196306"], ["updated_at", "2017-11-11 00:06:36.196306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:06:36.201755"], ["updated_at", "2017-11-11 00:06:36.201755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:06:36.203205"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:06:36.204283"], ["updated_at", "2017-11-11 00:06:36.204283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:06:36.205217"], ["updated_at", "2017-11-11 00:06:36.205217"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.208637"], ["updated_at", "2017-11-11 00:06:36.208637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.210416"], ["updated_at", "2017-11-11 00:06:36.210416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.212562"], ["updated_at", "2017-11-11 00:06:36.212562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.216862"], ["updated_at", "2017-11-11 00:06:36.216862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.218041"], ["updated_at", "2017-11-11 00:06:36.218041"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.221067"], ["updated_at", "2017-11-11 00:06:36.221067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.222010"], ["updated_at", "2017-11-11 00:06:36.222010"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.223963"], ["updated_at", "2017-11-11 00:06:36.223963"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.225715"], ["updated_at", "2017-11-11 00:06:36.225715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.226483"], ["updated_at", "2017-11-11 00:06:36.226483"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.228820"], ["updated_at", "2017-11-11 00:06:36.228820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.229573"], ["updated_at", "2017-11-11 00:06:36.229573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.244595"], ["updated_at", "2017-11-11 00:06:36.244595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.245410"], ["updated_at", "2017-11-11 00:06:36.245410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.250682"], ["updated_at", "2017-11-11 00:06:36.250682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.255928"], ["updated_at", "2017-11-11 00:06:36.255928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.256906"], ["updated_at", "2017-11-11 00:06:36.256906"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.258813"], ["updated_at", "2017-11-11 00:06:36.258813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:06:36.259619"], ["updated_at", "2017-11-11 00:06:36.259619"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.261798"], ["updated_at", "2017-11-11 00:06:36.261798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.266742"], ["updated_at", "2017-11-11 00:06:36.266742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.268815"], ["updated_at", "2017-11-11 00:06:36.268815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.273488"], ["updated_at", "2017-11-11 00:06:36.273488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.277185"], ["updated_at", "2017-11-11 00:06:36.277185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.277922"], ["updated_at", "2017-11-11 00:06:36.277922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.278588"], ["updated_at", "2017-11-11 00:06:36.278588"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.280695"], ["updated_at", "2017-11-11 00:06:36.280695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.281454"], ["updated_at", "2017-11-11 00:06:36.281454"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.283675"], ["updated_at", "2017-11-11 00:06:36.283675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.284442"], ["updated_at", "2017-11-11 00:06:36.284442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.285237"], ["updated_at", "2017-11-11 00:06:36.285237"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:06:36.290784"], ["updated_at", "2017-11-11 00:06:36.290784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:06:36.291589"], ["updated_at", "2017-11-11 00:06:36.291589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:06:36.293191"], ["updated_at", "2017-11-11 00:06:36.293191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:06:36.294015"], ["updated_at", "2017-11-11 00:06:36.294015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:06:36.300511"], ["updated_at", "2017-11-11 00:06:36.300511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:06:36.301732"], ["updated_at", "2017-11-11 00:06:36.301732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.302428"], ["updated_at", "2017-11-11 00:06:36.302428"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.304235"], ["updated_at", "2017-11-11 00:06:36.304235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.306368"], ["updated_at", "2017-11-11 00:06:36.306368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.309474"], ["updated_at", "2017-11-11 00:06:36.309474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.310218"], ["updated_at", "2017-11-11 00:06:36.310218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.324064"], ["updated_at", "2017-11-11 00:06:36.324064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.326191"], ["updated_at", "2017-11-11 00:06:36.326191"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.329186"], ["updated_at", "2017-11-11 00:06:36.329186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:06:36.329946"], ["updated_at", "2017-11-11 00:06:36.329946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.703170"], ["updated_at", "2017-11-11 00:07:25.703170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.725070"], ["updated_at", "2017-11-11 00:07:25.725070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.726103"], ["updated_at", "2017-11-11 00:07:25.726103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.728173"], ["updated_at", "2017-11-11 00:07:25.728173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.731560"], ["updated_at", "2017-11-11 00:07:25.731560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.732323"], ["updated_at", "2017-11-11 00:07:25.732323"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.734634"], ["updated_at", "2017-11-11 00:07:25.734634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.738415"], ["updated_at", "2017-11-11 00:07:25.738415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.739168"], ["updated_at", "2017-11-11 00:07:25.739168"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:07:25.741222"], ["updated_at", "2017-11-11 00:07:25.741222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.743027"], ["updated_at", "2017-11-11 00:07:25.743027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.747652"], ["updated_at", "2017-11-11 00:07:25.747652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.748409"], ["updated_at", "2017-11-11 00:07:25.748409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.758924"], ["updated_at", "2017-11-11 00:07:25.758924"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:07:25.760130"], ["updated_at", "2017-11-11 00:07:25.760130"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.762758"], ["updated_at", "2017-11-11 00:07:25.762758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.767448"], ["updated_at", "2017-11-11 00:07:25.767448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.768267"], ["updated_at", "2017-11-11 00:07:25.768267"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.770675"], ["updated_at", "2017-11-11 00:07:25.770675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.773738"], ["updated_at", "2017-11-11 00:07:25.773738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.774488"], ["updated_at", "2017-11-11 00:07:25.774488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.779752"], ["updated_at", "2017-11-11 00:07:25.779752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.781655"], ["updated_at", "2017-11-11 00:07:25.781655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.783919"], ["updated_at", "2017-11-11 00:07:25.783919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:07:25.787013"], ["updated_at", "2017-11-11 00:07:25.787013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:07:25.788919"], ["updated_at", "2017-11-11 00:07:25.788919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.795687"], ["updated_at", "2017-11-11 00:07:25.795687"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:07:25.799558"], ["updated_at", "2017-11-11 00:07:25.799558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:07:25.801254"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:25.802628"], ["updated_at", "2017-11-11 00:07:25.802628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:07:25.803454"], ["updated_at", "2017-11-11 00:07:25.803454"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.806802"], ["updated_at", "2017-11-11 00:07:25.806802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.807562"], ["updated_at", "2017-11-11 00:07:25.807562"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.809189"], ["updated_at", "2017-11-11 00:07:25.809189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.810083"], ["updated_at", "2017-11-11 00:07:25.810083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.810897"], ["updated_at", "2017-11-11 00:07:25.810897"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.813546"], ["updated_at", "2017-11-11 00:07:25.813546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.814360"], ["updated_at", "2017-11-11 00:07:25.814360"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.822290"], ["updated_at", "2017-11-11 00:07:25.822290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:25.829406"], ["updated_at", "2017-11-11 00:07:25.829406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:25.830187"], ["updated_at", "2017-11-11 00:07:25.830187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:25.831724"], ["updated_at", "2017-11-11 00:07:25.831724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:25.832427"], ["updated_at", "2017-11-11 00:07:25.832427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.838049"], ["updated_at", "2017-11-11 00:07:25.838049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.838814"], ["updated_at", "2017-11-11 00:07:25.838814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:07:25.852335"], ["updated_at", "2017-11-11 00:07:25.852335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.868461"], ["updated_at", "2017-11-11 00:07:25.868461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.870440"], ["updated_at", "2017-11-11 00:07:25.870440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:25.875315"], ["updated_at", "2017-11-11 00:07:25.875315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:25.876272"], ["updated_at", "2017-11-11 00:07:25.876272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.877125"], ["updated_at", "2017-11-11 00:07:25.877125"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.879673"], ["updated_at", "2017-11-11 00:07:25.879673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.887076"], ["updated_at", "2017-11-11 00:07:25.887076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.904673"], ["updated_at", "2017-11-11 00:07:25.904673"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.909293"], ["updated_at", "2017-11-11 00:07:25.909293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.910174"], ["updated_at", "2017-11-11 00:07:25.910174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.910984"], ["updated_at", "2017-11-11 00:07:25.910984"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.921775"], ["updated_at", "2017-11-11 00:07:25.921775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.922568"], ["updated_at", "2017-11-11 00:07:25.922568"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.932711"], ["updated_at", "2017-11-11 00:07:25.932711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.937082"], ["updated_at", "2017-11-11 00:07:25.937082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.937904"], ["updated_at", "2017-11-11 00:07:25.937904"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.939577"], ["updated_at", "2017-11-11 00:07:25.939577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.940287"], ["updated_at", "2017-11-11 00:07:25.940287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.944590"], ["updated_at", "2017-11-11 00:07:25.944590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.945270"], ["updated_at", "2017-11-11 00:07:25.945270"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:25.947556"], ["updated_at", "2017-11-11 00:07:25.947556"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:25.948432"], ["updated_at", "2017-11-11 00:07:25.948432"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:25.950168"], ["updated_at", "2017-11-11 00:07:25.950168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:25.950912"], ["updated_at", "2017-11-11 00:07:25.950912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.953968"], ["updated_at", "2017-11-11 00:07:25.953968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.955832"], ["updated_at", "2017-11-11 00:07:25.955832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.958488"], ["updated_at", "2017-11-11 00:07:25.958488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.963170"], ["updated_at", "2017-11-11 00:07:25.963170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.964814"], ["updated_at", "2017-11-11 00:07:25.964814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.968070"], ["updated_at", "2017-11-11 00:07:25.968070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:25.974517"], ["updated_at", "2017-11-11 00:07:25.974517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.978537"], ["updated_at", "2017-11-11 00:07:25.978537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:25.979300"], ["updated_at", "2017-11-11 00:07:25.979300"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:07:26.007438"], ["updated_at", "2017-11-11 00:07:26.007438"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:07:26.008829"], ["updated_at", "2017-11-11 00:07:26.008829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:07:26.033340"], ["updated_at", "2017-11-11 00:07:26.033340"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:26.035210"], ["updated_at", "2017-11-11 00:07:26.035210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:26.044589"], ["updated_at", "2017-11-11 00:07:26.044589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:26.049094"], ["updated_at", "2017-11-11 00:07:26.049094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:26.051316"], ["updated_at", "2017-11-11 00:07:26.051316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.276782"], ["updated_at", "2017-11-11 00:07:33.276782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.279305"], ["updated_at", "2017-11-11 00:07:33.279305"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:33.315846"], ["updated_at", "2017-11-11 00:07:33.315846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:33.316859"], ["updated_at", "2017-11-11 00:07:33.316859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.317661"], ["updated_at", "2017-11-11 00:07:33.317661"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:33.319824"], ["updated_at", "2017-11-11 00:07:33.319824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:33.320718"], ["updated_at", "2017-11-11 00:07:33.320718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:33.323143"], ["updated_at", "2017-11-11 00:07:33.323143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:33.324020"], ["updated_at", "2017-11-11 00:07:33.324020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.334796"], ["updated_at", "2017-11-11 00:07:33.334796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:07:33.336103"], ["updated_at", "2017-11-11 00:07:33.336103"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:33.365369"], ["updated_at", "2017-11-11 00:07:33.365369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:33.366259"], ["updated_at", "2017-11-11 00:07:33.366259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:33.367917"], ["updated_at", "2017-11-11 00:07:33.367917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:33.368758"], ["updated_at", "2017-11-11 00:07:33.368758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.371871"], ["updated_at", "2017-11-11 00:07:33.371871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.372515"], ["updated_at", "2017-11-11 00:07:33.372515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.374924"], ["updated_at", "2017-11-11 00:07:33.374924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.378403"], ["updated_at", "2017-11-11 00:07:33.378403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.379339"], ["updated_at", "2017-11-11 00:07:33.379339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.381143"], ["updated_at", "2017-11-11 00:07:33.381143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:07:33.385924"], ["updated_at", "2017-11-11 00:07:33.385924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:07:33.387498"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:33.388699"], ["updated_at", "2017-11-11 00:07:33.388699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:07:33.389555"], ["updated_at", "2017-11-11 00:07:33.389555"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.393965"], ["updated_at", "2017-11-11 00:07:33.393965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.395043"], ["updated_at", "2017-11-11 00:07:33.395043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.406787"], ["updated_at", "2017-11-11 00:07:33.406787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.407693"], ["updated_at", "2017-11-11 00:07:33.407693"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:07:33.411233"], ["updated_at", "2017-11-11 00:07:33.411233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.430248"], ["updated_at", "2017-11-11 00:07:33.430248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.431301"], ["updated_at", "2017-11-11 00:07:33.431301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.437712"], ["updated_at", "2017-11-11 00:07:33.437712"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.438445"], ["updated_at", "2017-11-11 00:07:33.438445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.447302"], ["updated_at", "2017-11-11 00:07:33.447302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.454437"], ["updated_at", "2017-11-11 00:07:33.454437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:07:33.461093"], ["updated_at", "2017-11-11 00:07:33.461093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:07:33.463389"], ["updated_at", "2017-11-11 00:07:33.463389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.474347"], ["updated_at", "2017-11-11 00:07:33.474347"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.475217"], ["updated_at", "2017-11-11 00:07:33.475217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.476099"], ["updated_at", "2017-11-11 00:07:33.476099"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.478984"], ["updated_at", "2017-11-11 00:07:33.478984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.483346"], ["updated_at", "2017-11-11 00:07:33.483346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.486289"], ["updated_at", "2017-11-11 00:07:33.486289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.488034"], ["updated_at", "2017-11-11 00:07:33.488034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.491121"], ["updated_at", "2017-11-11 00:07:33.491121"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.494962"], ["updated_at", "2017-11-11 00:07:33.494962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.495707"], ["updated_at", "2017-11-11 00:07:33.495707"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.497377"], ["updated_at", "2017-11-11 00:07:33.497377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.498114"], ["updated_at", "2017-11-11 00:07:33.498114"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.500360"], ["updated_at", "2017-11-11 00:07:33.500360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.501083"], ["updated_at", "2017-11-11 00:07:33.501083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.505601"], ["updated_at", "2017-11-11 00:07:33.505601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.506363"], ["updated_at", "2017-11-11 00:07:33.506363"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.508324"], ["updated_at", "2017-11-11 00:07:33.508324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.512696"], ["updated_at", "2017-11-11 00:07:33.512696"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.514284"], ["updated_at", "2017-11-11 00:07:33.514284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.514909"], ["updated_at", "2017-11-11 00:07:33.514909"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.516869"], ["updated_at", "2017-11-11 00:07:33.516869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.518548"], ["updated_at", "2017-11-11 00:07:33.518548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:33.525682"], ["updated_at", "2017-11-11 00:07:33.525682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.529326"], ["updated_at", "2017-11-11 00:07:33.529326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.531129"], ["updated_at", "2017-11-11 00:07:33.531129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.532824"], ["updated_at", "2017-11-11 00:07:33.532824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.535532"], ["updated_at", "2017-11-11 00:07:33.535532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.539508"], ["updated_at", "2017-11-11 00:07:33.539508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.543184"], ["updated_at", "2017-11-11 00:07:33.543184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.545051"], ["updated_at", "2017-11-11 00:07:33.545051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:07:33.549199"], ["updated_at", "2017-11-11 00:07:33.549199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.551464"], ["updated_at", "2017-11-11 00:07:33.551464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.555518"], ["updated_at", "2017-11-11 00:07:33.555518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.556294"], ["updated_at", "2017-11-11 00:07:33.556294"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.558649"], ["updated_at", "2017-11-11 00:07:33.558649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.563256"], ["updated_at", "2017-11-11 00:07:33.563256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.563996"], ["updated_at", "2017-11-11 00:07:33.563996"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.566083"], ["updated_at", "2017-11-11 00:07:33.566083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.566789"], ["updated_at", "2017-11-11 00:07:33.566789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.567512"], ["updated_at", "2017-11-11 00:07:33.567512"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.569588"], ["updated_at", "2017-11-11 00:07:33.569588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:07:33.604258"], ["updated_at", "2017-11-11 00:07:33.604258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:07:33.605357"], ["updated_at", "2017-11-11 00:07:33.605357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:07:33.659875"], ["updated_at", "2017-11-11 00:07:33.659875"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.662788"], ["updated_at", "2017-11-11 00:07:33.662788"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.667203"], ["updated_at", "2017-11-11 00:07:33.667203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.671783"], ["updated_at", "2017-11-11 00:07:33.671783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:33.674242"], ["updated_at", "2017-11-11 00:07:33.674242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:07:36.992893"], ["updated_at", "2017-11-11 00:07:36.992893"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.029642"], ["updated_at", "2017-11-11 00:07:37.029642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.032945"], ["updated_at", "2017-11-11 00:07:37.032945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.036239"], ["updated_at", "2017-11-11 00:07:37.036239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.045464"], ["updated_at", "2017-11-11 00:07:37.045464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.046361"], ["updated_at", "2017-11-11 00:07:37.046361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.047134"], ["updated_at", "2017-11-11 00:07:37.047134"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.049602"], ["updated_at", "2017-11-11 00:07:37.049602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.050373"], ["updated_at", "2017-11-11 00:07:37.050373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.060025"], ["updated_at", "2017-11-11 00:07:37.060025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.060949"], ["updated_at", "2017-11-11 00:07:37.060949"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.063759"], ["updated_at", "2017-11-11 00:07:37.063759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:37.078501"], ["updated_at", "2017-11-11 00:07:37.078501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.083130"], ["updated_at", "2017-11-11 00:07:37.083130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.083932"], ["updated_at", "2017-11-11 00:07:37.083932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.084691"], ["updated_at", "2017-11-11 00:07:37.084691"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.097798"], ["updated_at", "2017-11-11 00:07:37.097798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.098613"], ["updated_at", "2017-11-11 00:07:37.098613"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.100827"], ["updated_at", "2017-11-11 00:07:37.100827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.101561"], ["updated_at", "2017-11-11 00:07:37.101561"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.103573"], ["updated_at", "2017-11-11 00:07:37.103573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.106734"], ["updated_at", "2017-11-11 00:07:37.106734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.107417"], ["updated_at", "2017-11-11 00:07:37.107417"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.109019"], ["updated_at", "2017-11-11 00:07:37.109019"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.110659"], ["updated_at", "2017-11-11 00:07:37.110659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.111648"], ["updated_at", "2017-11-11 00:07:37.111648"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.114034"], ["updated_at", "2017-11-11 00:07:37.114034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.114853"], ["updated_at", "2017-11-11 00:07:37.114853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.119762"], ["updated_at", "2017-11-11 00:07:37.119762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.123201"], ["updated_at", "2017-11-11 00:07:37.123201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.123952"], ["updated_at", "2017-11-11 00:07:37.123952"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.125940"], ["updated_at", "2017-11-11 00:07:37.125940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.126855"], ["updated_at", "2017-11-11 00:07:37.126855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.136124"], ["updated_at", "2017-11-11 00:07:37.136124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.136896"], ["updated_at", "2017-11-11 00:07:37.136896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.141656"], ["updated_at", "2017-11-11 00:07:37.141656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.142706"], ["updated_at", "2017-11-11 00:07:37.142706"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:07:37.146377"], ["updated_at", "2017-11-11 00:07:37.146377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:07:37.147565"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:37.148979"], ["updated_at", "2017-11-11 00:07:37.148979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:07:37.149813"], ["updated_at", "2017-11-11 00:07:37.149813"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.157799"], ["updated_at", "2017-11-11 00:07:37.157799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.162556"], ["updated_at", "2017-11-11 00:07:37.162556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.164670"], ["updated_at", "2017-11-11 00:07:37.164670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.168135"], ["updated_at", "2017-11-11 00:07:37.168135"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.169078"], ["updated_at", "2017-11-11 00:07:37.169078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.178984"], ["updated_at", "2017-11-11 00:07:37.178984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:07:37.180010"], ["updated_at", "2017-11-11 00:07:37.180010"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.182849"], ["updated_at", "2017-11-11 00:07:37.182849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.188512"], ["updated_at", "2017-11-11 00:07:37.188512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.195607"], ["updated_at", "2017-11-11 00:07:37.195607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.197984"], ["updated_at", "2017-11-11 00:07:37.197984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:37.200994"], ["updated_at", "2017-11-11 00:07:37.200994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:37.201750"], ["updated_at", "2017-11-11 00:07:37.201750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:37.203278"], ["updated_at", "2017-11-11 00:07:37.203278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:37.204293"], ["updated_at", "2017-11-11 00:07:37.204293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:37.212301"], ["updated_at", "2017-11-11 00:07:37.212301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:37.213409"], ["updated_at", "2017-11-11 00:07:37.213409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:37.215276"], ["updated_at", "2017-11-11 00:07:37.215276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:37.216079"], ["updated_at", "2017-11-11 00:07:37.216079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.219250"], ["updated_at", "2017-11-11 00:07:37.219250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:07:37.236297"], ["updated_at", "2017-11-11 00:07:37.236297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:07:37.238320"], ["updated_at", "2017-11-11 00:07:37.238320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.252058"], ["updated_at", "2017-11-11 00:07:37.252058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.252895"], ["updated_at", "2017-11-11 00:07:37.252895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.254793"], ["updated_at", "2017-11-11 00:07:37.254793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.258361"], ["updated_at", "2017-11-11 00:07:37.258361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:07:37.262651"], ["updated_at", "2017-11-11 00:07:37.262651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.264666"], ["updated_at", "2017-11-11 00:07:37.264666"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.268508"], ["updated_at", "2017-11-11 00:07:37.268508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.273211"], ["updated_at", "2017-11-11 00:07:37.273211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.274194"], ["updated_at", "2017-11-11 00:07:37.274194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.276370"], ["updated_at", "2017-11-11 00:07:37.276370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:37.283496"], ["updated_at", "2017-11-11 00:07:37.283496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:37.284348"], ["updated_at", "2017-11-11 00:07:37.284348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.285095"], ["updated_at", "2017-11-11 00:07:37.285095"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.286940"], ["updated_at", "2017-11-11 00:07:37.286940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.288903"], ["updated_at", "2017-11-11 00:07:37.288903"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.290947"], ["updated_at", "2017-11-11 00:07:37.290947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:07:37.425549"], ["updated_at", "2017-11-11 00:07:37.425549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:07:37.426591"], ["updated_at", "2017-11-11 00:07:37.426591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:07:37.456615"], ["updated_at", "2017-11-11 00:07:37.456615"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.467299"], ["updated_at", "2017-11-11 00:07:37.467299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.472280"], ["updated_at", "2017-11-11 00:07:37.472280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.476460"], ["updated_at", "2017-11-11 00:07:37.476460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:37.492789"], ["updated_at", "2017-11-11 00:07:37.492789"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.614795"], ["updated_at", "2017-11-11 00:07:43.614795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.617844"], ["updated_at", "2017-11-11 00:07:43.617844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.644929"], ["updated_at", "2017-11-11 00:07:43.644929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.646961"], ["updated_at", "2017-11-11 00:07:43.646961"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.650140"], ["updated_at", "2017-11-11 00:07:43.650140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.654629"], ["updated_at", "2017-11-11 00:07:43.654629"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.655417"], ["updated_at", "2017-11-11 00:07:43.655417"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.657626"], ["updated_at", "2017-11-11 00:07:43.657626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.659542"], ["updated_at", "2017-11-11 00:07:43.659542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.661355"], ["updated_at", "2017-11-11 00:07:43.661355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.670006"], ["updated_at", "2017-11-11 00:07:43.670006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.670815"], ["updated_at", "2017-11-11 00:07:43.670815"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.671589"], ["updated_at", "2017-11-11 00:07:43.671589"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.674167"], ["updated_at", "2017-11-11 00:07:43.674167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.674932"], ["updated_at", "2017-11-11 00:07:43.674932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.676839"], ["updated_at", "2017-11-11 00:07:43.676839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.680003"], ["updated_at", "2017-11-11 00:07:43.680003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:07:43.680863"], ["updated_at", "2017-11-11 00:07:43.680863"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:07:43.683768"], ["updated_at", "2017-11-11 00:07:43.683768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:07:43.690317"], ["updated_at", "2017-11-11 00:07:43.690317"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.701321"], ["updated_at", "2017-11-11 00:07:43.701321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.702528"], ["updated_at", "2017-11-11 00:07:43.702528"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:43.718975"], ["updated_at", "2017-11-11 00:07:43.718975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:43.719883"], ["updated_at", "2017-11-11 00:07:43.719883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.720632"], ["updated_at", "2017-11-11 00:07:43.720632"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:43.725770"], ["updated_at", "2017-11-11 00:07:43.725770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:07:43.730052"], ["updated_at", "2017-11-11 00:07:43.730052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.732046"], ["updated_at", "2017-11-11 00:07:43.732046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.735957"], ["updated_at", "2017-11-11 00:07:43.735957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.736830"], ["updated_at", "2017-11-11 00:07:43.736830"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:43.740832"], ["updated_at", "2017-11-11 00:07:43.740832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:43.741633"], ["updated_at", "2017-11-11 00:07:43.741633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:43.743283"], ["updated_at", "2017-11-11 00:07:43.743283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:43.744060"], ["updated_at", "2017-11-11 00:07:43.744060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.751650"], ["updated_at", "2017-11-11 00:07:43.751650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.757973"], ["updated_at", "2017-11-11 00:07:43.757973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.762940"], ["updated_at", "2017-11-11 00:07:43.762940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.763878"], ["updated_at", "2017-11-11 00:07:43.763878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.773232"], ["updated_at", "2017-11-11 00:07:43.773232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.774015"], ["updated_at", "2017-11-11 00:07:43.774015"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.776159"], ["updated_at", "2017-11-11 00:07:43.776159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.776917"], ["updated_at", "2017-11-11 00:07:43.776917"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.777885"], ["updated_at", "2017-11-11 00:07:43.777885"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.780440"], ["updated_at", "2017-11-11 00:07:43.780440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.781175"], ["updated_at", "2017-11-11 00:07:43.781175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:07:43.787625"], ["updated_at", "2017-11-11 00:07:43.787625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:07:43.789032"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:43.790317"], ["updated_at", "2017-11-11 00:07:43.790317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:07:43.791090"], ["updated_at", "2017-11-11 00:07:43.791090"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.802675"], ["updated_at", "2017-11-11 00:07:43.802675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.809006"], ["updated_at", "2017-11-11 00:07:43.809006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.809735"], ["updated_at", "2017-11-11 00:07:43.809735"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.811603"], ["updated_at", "2017-11-11 00:07:43.811603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.815279"], ["updated_at", "2017-11-11 00:07:43.815279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.820293"], ["updated_at", "2017-11-11 00:07:43.820293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.827310"], ["updated_at", "2017-11-11 00:07:43.827310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.834539"], ["updated_at", "2017-11-11 00:07:43.834539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:43.840684"], ["updated_at", "2017-11-11 00:07:43.840684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:43.841602"], ["updated_at", "2017-11-11 00:07:43.841602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:43.843296"], ["updated_at", "2017-11-11 00:07:43.843296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:43.844080"], ["updated_at", "2017-11-11 00:07:43.844080"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.847926"], ["updated_at", "2017-11-11 00:07:43.847926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.848832"], ["updated_at", "2017-11-11 00:07:43.848832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.855373"], ["updated_at", "2017-11-11 00:07:43.855373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.857896"], ["updated_at", "2017-11-11 00:07:43.857896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.861899"], ["updated_at", "2017-11-11 00:07:43.861899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.863918"], ["updated_at", "2017-11-11 00:07:43.863918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.867262"], ["updated_at", "2017-11-11 00:07:43.867262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.868213"], ["updated_at", "2017-11-11 00:07:43.868213"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.870349"], ["updated_at", "2017-11-11 00:07:43.870349"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.871901"], ["updated_at", "2017-11-11 00:07:43.871901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:07:43.876534"], ["updated_at", "2017-11-11 00:07:43.876534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.886137"], ["updated_at", "2017-11-11 00:07:43.886137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.886922"], ["updated_at", "2017-11-11 00:07:43.886922"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.888996"], ["updated_at", "2017-11-11 00:07:43.888996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.889755"], ["updated_at", "2017-11-11 00:07:43.889755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.894198"], ["updated_at", "2017-11-11 00:07:43.894198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.895081"], ["updated_at", "2017-11-11 00:07:43.895081"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.896771"], ["updated_at", "2017-11-11 00:07:43.896771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.917117"], ["updated_at", "2017-11-11 00:07:43.917117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.921588"], ["updated_at", "2017-11-11 00:07:43.921588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.925296"], ["updated_at", "2017-11-11 00:07:43.925296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:07:43.949696"], ["updated_at", "2017-11-11 00:07:43.949696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:07:43.950606"], ["updated_at", "2017-11-11 00:07:43.950606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:43.961597"], ["updated_at", "2017-11-11 00:07:43.961597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:07:43.973042"], ["updated_at", "2017-11-11 00:07:43.973042"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.828994"], ["updated_at", "2017-11-11 00:07:49.828994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.832485"], ["updated_at", "2017-11-11 00:07:49.832485"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.838631"], ["updated_at", "2017-11-11 00:07:49.838631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.839632"], ["updated_at", "2017-11-11 00:07:49.839632"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.876649"], ["updated_at", "2017-11-11 00:07:49.876649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.877621"], ["updated_at", "2017-11-11 00:07:49.877621"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.879780"], ["updated_at", "2017-11-11 00:07:49.879780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:07:49.884777"], ["updated_at", "2017-11-11 00:07:49.884777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:07:49.887024"], ["updated_at", "2017-11-11 00:07:49.887024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.898430"], ["updated_at", "2017-11-11 00:07:49.898430"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.934822"], ["updated_at", "2017-11-11 00:07:49.934822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.935677"], ["updated_at", "2017-11-11 00:07:49.935677"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.938733"], ["updated_at", "2017-11-11 00:07:49.938733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:07:49.945303"], ["updated_at", "2017-11-11 00:07:49.945303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:07:49.946776"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:49.951973"], ["updated_at", "2017-11-11 00:07:49.951973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:07:49.952995"], ["updated_at", "2017-11-11 00:07:49.952995"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.957233"], ["updated_at", "2017-11-11 00:07:49.957233"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.958594"], ["updated_at", "2017-11-11 00:07:49.958594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.963948"], ["updated_at", "2017-11-11 00:07:49.963948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.968000"], ["updated_at", "2017-11-11 00:07:49.968000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:07:49.968781"], ["updated_at", "2017-11-11 00:07:49.968781"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.971333"], ["updated_at", "2017-11-11 00:07:49.971333"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.978740"], ["updated_at", "2017-11-11 00:07:49.978740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.984503"], ["updated_at", "2017-11-11 00:07:49.984503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.986371"], ["updated_at", "2017-11-11 00:07:49.986371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.988062"], ["updated_at", "2017-11-11 00:07:49.988062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.991170"], ["updated_at", "2017-11-11 00:07:49.991170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:49.993074"], ["updated_at", "2017-11-11 00:07:49.993074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:49.996070"], ["updated_at", "2017-11-11 00:07:49.996070"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:49.996888"], ["updated_at", "2017-11-11 00:07:49.996888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:49.998587"], ["updated_at", "2017-11-11 00:07:49.998587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:49.999373"], ["updated_at", "2017-11-11 00:07:49.999373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.002608"], ["updated_at", "2017-11-11 00:07:50.002608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.003489"], ["updated_at", "2017-11-11 00:07:50.003489"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.009283"], ["updated_at", "2017-11-11 00:07:50.009283"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:50.015300"], ["updated_at", "2017-11-11 00:07:50.015300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.019569"], ["updated_at", "2017-11-11 00:07:50.019569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.020305"], ["updated_at", "2017-11-11 00:07:50.020305"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:07:50.029191"], ["updated_at", "2017-11-11 00:07:50.029191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.031147"], ["updated_at", "2017-11-11 00:07:50.031147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:50.034808"], ["updated_at", "2017-11-11 00:07:50.034808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:50.035601"], ["updated_at", "2017-11-11 00:07:50.035601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.036313"], ["updated_at", "2017-11-11 00:07:50.036313"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.037993"], ["updated_at", "2017-11-11 00:07:50.037993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.039754"], ["updated_at", "2017-11-11 00:07:50.039754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.043322"], ["updated_at", "2017-11-11 00:07:50.043322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.046530"], ["updated_at", "2017-11-11 00:07:50.046530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.047321"], ["updated_at", "2017-11-11 00:07:50.047321"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.048018"], ["updated_at", "2017-11-11 00:07:50.048018"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.050297"], ["updated_at", "2017-11-11 00:07:50.050297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.051048"], ["updated_at", "2017-11-11 00:07:50.051048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.056463"], ["updated_at", "2017-11-11 00:07:50.056463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.057469"], ["updated_at", "2017-11-11 00:07:50.057469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.059554"], ["updated_at", "2017-11-11 00:07:50.059554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.062524"], ["updated_at", "2017-11-11 00:07:50.062524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.063257"], ["updated_at", "2017-11-11 00:07:50.063257"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.065413"], ["updated_at", "2017-11-11 00:07:50.065413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.066153"], ["updated_at", "2017-11-11 00:07:50.066153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:50.071796"], ["updated_at", "2017-11-11 00:07:50.071796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:50.072765"], ["updated_at", "2017-11-11 00:07:50.072765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:50.074772"], ["updated_at", "2017-11-11 00:07:50.074772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:50.075714"], ["updated_at", "2017-11-11 00:07:50.075714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.082186"], ["updated_at", "2017-11-11 00:07:50.082186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.084041"], ["updated_at", "2017-11-11 00:07:50.084041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:07:50.087875"], ["updated_at", "2017-11-11 00:07:50.087875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.101438"], ["updated_at", "2017-11-11 00:07:50.101438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.106544"], ["updated_at", "2017-11-11 00:07:50.106544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.107330"], ["updated_at", "2017-11-11 00:07:50.107330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.108034"], ["updated_at", "2017-11-11 00:07:50.108034"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.110341"], ["updated_at", "2017-11-11 00:07:50.110341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.114525"], ["updated_at", "2017-11-11 00:07:50.114525"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.115354"], ["updated_at", "2017-11-11 00:07:50.115354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.117088"], ["updated_at", "2017-11-11 00:07:50.117088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.120406"], ["updated_at", "2017-11-11 00:07:50.120406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.121105"], ["updated_at", "2017-11-11 00:07:50.121105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.130482"], ["updated_at", "2017-11-11 00:07:50.130482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.131389"], ["updated_at", "2017-11-11 00:07:50.131389"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.133411"], ["updated_at", "2017-11-11 00:07:50.133411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 2]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:07:50.190277"], ["updated_at", "2017-11-11 00:07:50.190277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:07:50.191446"], ["updated_at", "2017-11-11 00:07:50.191446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.216020"], ["updated_at", "2017-11-11 00:07:50.216020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.220699"], ["updated_at", "2017-11-11 00:07:50.220699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.223218"], ["updated_at", "2017-11-11 00:07:50.223218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:07:50.228084"], ["updated_at", "2017-11-11 00:07:50.228084"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:50.238826"], ["updated_at", "2017-11-11 00:07:50.238826"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.216403"], ["updated_at", "2017-11-11 00:07:57.216403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:07:57.232567"], ["updated_at", "2017-11-11 00:07:57.232567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:07:57.233630"], ["updated_at", "2017-11-11 00:07:57.233630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:07:57.255869"], ["updated_at", "2017-11-11 00:07:57.255869"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.259465"], ["updated_at", "2017-11-11 00:07:57.259465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.265535"], ["updated_at", "2017-11-11 00:07:57.265535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.269270"], ["updated_at", "2017-11-11 00:07:57.269270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.343354"], ["updated_at", "2017-11-11 00:07:57.343354"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.344427"], ["updated_at", "2017-11-11 00:07:57.344427"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.347068"], ["updated_at", "2017-11-11 00:07:57.347068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 2)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:57.352700"], ["updated_at", "2017-11-11 00:07:57.352700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:57.353492"], ["updated_at", "2017-11-11 00:07:57.353492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:57.355257"], ["updated_at", "2017-11-11 00:07:57.355257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:57.355998"], ["updated_at", "2017-11-11 00:07:57.355998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:07:57.363764"], ["updated_at", "2017-11-11 00:07:57.363764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.366068"], ["updated_at", "2017-11-11 00:07:57.366068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.370032"], ["updated_at", "2017-11-11 00:07:57.370032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.375699"], ["updated_at", "2017-11-11 00:07:57.375699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.376625"], ["updated_at", "2017-11-11 00:07:57.376625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.386855"], ["updated_at", "2017-11-11 00:07:57.386855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.389101"], ["updated_at", "2017-11-11 00:07:57.389101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.391244"], ["updated_at", "2017-11-11 00:07:57.391244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.394555"], ["updated_at", "2017-11-11 00:07:57.394555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.396415"], ["updated_at", "2017-11-11 00:07:57.396415"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:07:57.403458"], ["updated_at", "2017-11-11 00:07:57.403458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:07:57.420852"], ["updated_at", "2017-11-11 00:07:57.420852"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:07:57.423853"], ["updated_at", "2017-11-11 00:07:57.423853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.433453"], ["updated_at", "2017-11-11 00:07:57.433453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.434485"], ["updated_at", "2017-11-11 00:07:57.434485"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.437308"], ["updated_at", "2017-11-11 00:07:57.437308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.438088"], ["updated_at", "2017-11-11 00:07:57.438088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.440828"], ["updated_at", "2017-11-11 00:07:57.440828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.446688"], ["updated_at", "2017-11-11 00:07:57.446688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.447612"], ["updated_at", "2017-11-11 00:07:57.447612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.449743"], ["updated_at", "2017-11-11 00:07:57.449743"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.455151"], ["updated_at", "2017-11-11 00:07:57.455151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.457702"], ["updated_at", "2017-11-11 00:07:57.457702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.461768"], ["updated_at", "2017-11-11 00:07:57.461768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.467632"], ["updated_at", "2017-11-11 00:07:57.467632"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.468639"], ["updated_at", "2017-11-11 00:07:57.468639"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:57.473937"], ["updated_at", "2017-11-11 00:07:57.473937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.477636"], ["updated_at", "2017-11-11 00:07:57.477636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.478408"], ["updated_at", "2017-11-11 00:07:57.478408"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:07:57.481183"], ["updated_at", "2017-11-11 00:07:57.481183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:07:57.482480"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:07:57.483532"], ["updated_at", "2017-11-11 00:07:57.483532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:07:57.484426"], ["updated_at", "2017-11-11 00:07:57.484426"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.488097"], ["updated_at", "2017-11-11 00:07:57.488097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.493356"], ["updated_at", "2017-11-11 00:07:57.493356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.494215"], ["updated_at", "2017-11-11 00:07:57.494215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.500127"], ["updated_at", "2017-11-11 00:07:57.500127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.501183"], ["updated_at", "2017-11-11 00:07:57.501183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.502049"], ["updated_at", "2017-11-11 00:07:57.502049"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:57.504575"], ["updated_at", "2017-11-11 00:07:57.504575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:07:57.505502"], ["updated_at", "2017-11-11 00:07:57.505502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.506255"], ["updated_at", "2017-11-11 00:07:57.506255"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.507963"], ["updated_at", "2017-11-11 00:07:57.507963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.508680"], ["updated_at", "2017-11-11 00:07:57.508680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.513466"], ["updated_at", "2017-11-11 00:07:57.513466"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:07:57.514280"], ["updated_at", "2017-11-11 00:07:57.514280"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.517207"], ["updated_at", "2017-11-11 00:07:57.517207"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.519534"], ["updated_at", "2017-11-11 00:07:57.519534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.529539"], ["updated_at", "2017-11-11 00:07:57.529539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.530328"], ["updated_at", "2017-11-11 00:07:57.530328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.531028"], ["updated_at", "2017-11-11 00:07:57.531028"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.533401"], ["updated_at", "2017-11-11 00:07:57.533401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.536124"], ["updated_at", "2017-11-11 00:07:57.536124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.540336"], ["updated_at", "2017-11-11 00:07:57.540336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.553821"], ["updated_at", "2017-11-11 00:07:57.553821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.554676"], ["updated_at", "2017-11-11 00:07:57.554676"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:07:57.556566"], ["updated_at", "2017-11-11 00:07:57.556566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:07:57.557348"], ["updated_at", "2017-11-11 00:07:57.557348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:07:57.558887"], ["updated_at", "2017-11-11 00:07:57.558887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:07:57.559616"], ["updated_at", "2017-11-11 00:07:57.559616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.562551"], ["updated_at", "2017-11-11 00:07:57.562551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.566583"], ["updated_at", "2017-11-11 00:07:57.566583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.567489"], ["updated_at", "2017-11-11 00:07:57.567489"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.569568"], ["updated_at", "2017-11-11 00:07:57.569568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.574901"], ["updated_at", "2017-11-11 00:07:57.574901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.581512"], ["updated_at", "2017-11-11 00:07:57.581512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.587700"], ["updated_at", "2017-11-11 00:07:57.587700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.588503"], ["updated_at", "2017-11-11 00:07:57.588503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.595321"], ["updated_at", "2017-11-11 00:07:57.595321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.596127"], ["updated_at", "2017-11-11 00:07:57.596127"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.613213"], ["updated_at", "2017-11-11 00:07:57.613213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:07:57.614112"], ["updated_at", "2017-11-11 00:07:57.614112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.426816"], ["updated_at", "2017-11-11 00:08:03.426816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.436305"], ["updated_at", "2017-11-11 00:08:03.436305"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.469347"], ["updated_at", "2017-11-11 00:08:03.469347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.470408"], ["updated_at", "2017-11-11 00:08:03.470408"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.472961"], ["updated_at", "2017-11-11 00:08:03.472961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.473790"], ["updated_at", "2017-11-11 00:08:03.473790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.489401"], ["updated_at", "2017-11-11 00:08:03.489401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.494731"], ["updated_at", "2017-11-11 00:08:03.494731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:08:03.500199"], ["updated_at", "2017-11-11 00:08:03.500199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.502850"], ["updated_at", "2017-11-11 00:08:03.502850"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.506962"], ["updated_at", "2017-11-11 00:08:03.506962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:08:03.507709"], ["updated_at", "2017-11-11 00:08:03.507709"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.509948"], ["updated_at", "2017-11-11 00:08:03.509948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.510675"], ["updated_at", "2017-11-11 00:08:03.510675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.512587"], ["updated_at", "2017-11-11 00:08:03.512587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:08:03.516031"], ["updated_at", "2017-11-11 00:08:03.516031"]]  (0.0ms) commit transaction  (4.5ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:08:03.521466"], ["updated_at", "2017-11-11 00:08:03.521466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.522426"], ["updated_at", "2017-11-11 00:08:03.522426"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.524382"], ["updated_at", "2017-11-11 00:08:03.524382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.526412"], ["updated_at", "2017-11-11 00:08:03.526412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:08:03.529368"], ["updated_at", "2017-11-11 00:08:03.529368"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:08:03.531504"], ["updated_at", "2017-11-11 00:08:03.531504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.539893"], ["updated_at", "2017-11-11 00:08:03.539893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.540687"], ["updated_at", "2017-11-11 00:08:03.540687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.541397"], ["updated_at", "2017-11-11 00:08:03.541397"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.543738"], ["updated_at", "2017-11-11 00:08:03.543738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.544432"], ["updated_at", "2017-11-11 00:08:03.544432"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.546662"], ["updated_at", "2017-11-11 00:08:03.546662"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.554972"], ["updated_at", "2017-11-11 00:08:03.554972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.555789"], ["updated_at", "2017-11-11 00:08:03.555789"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.557519"], ["updated_at", "2017-11-11 00:08:03.557519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.558250"], ["updated_at", "2017-11-11 00:08:03.558250"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.560586"], ["updated_at", "2017-11-11 00:08:03.560586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.561438"], ["updated_at", "2017-11-11 00:08:03.561438"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.563444"], ["updated_at", "2017-11-11 00:08:03.563444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.567805"], ["updated_at", "2017-11-11 00:08:03.567805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:08:03.591585"], ["updated_at", "2017-11-11 00:08:03.591585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:08:03.593603"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:08:03.595061"], ["updated_at", "2017-11-11 00:08:03.595061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:08:03.595786"], ["updated_at", "2017-11-11 00:08:03.595786"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.600498"], ["updated_at", "2017-11-11 00:08:03.600498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:08:03.605598"], ["updated_at", "2017-11-11 00:08:03.605598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:08:03.606379"], ["updated_at", "2017-11-11 00:08:03.606379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:08:03.608113"], ["updated_at", "2017-11-11 00:08:03.608113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:08:03.608852"], ["updated_at", "2017-11-11 00:08:03.608852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.611797"], ["updated_at", "2017-11-11 00:08:03.611797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.612760"], ["updated_at", "2017-11-11 00:08:03.612760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.613466"], ["updated_at", "2017-11-11 00:08:03.613466"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.615945"], ["updated_at", "2017-11-11 00:08:03.615945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.616675"], ["updated_at", "2017-11-11 00:08:03.616675"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.621386"], ["updated_at", "2017-11-11 00:08:03.621386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.629280"], ["updated_at", "2017-11-11 00:08:03.629280"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.636016"], ["updated_at", "2017-11-11 00:08:03.636016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.636904"], ["updated_at", "2017-11-11 00:08:03.636904"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.638638"], ["updated_at", "2017-11-11 00:08:03.638638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.641014"], ["updated_at", "2017-11-11 00:08:03.641014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.643978"], ["updated_at", "2017-11-11 00:08:03.643978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.645853"], ["updated_at", "2017-11-11 00:08:03.645853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.647639"], ["updated_at", "2017-11-11 00:08:03.647639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.651320"], ["updated_at", "2017-11-11 00:08:03.651320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.653276"], ["updated_at", "2017-11-11 00:08:03.653276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.656743"], ["updated_at", "2017-11-11 00:08:03.656743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.657458"], ["updated_at", "2017-11-11 00:08:03.657458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.663079"], ["updated_at", "2017-11-11 00:08:03.663079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.667093"], ["updated_at", "2017-11-11 00:08:03.667093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:08:03.672570"], ["updated_at", "2017-11-11 00:08:03.672570"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:08:03.673684"], ["updated_at", "2017-11-11 00:08:03.673684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:08:03.675632"], ["updated_at", "2017-11-11 00:08:03.675632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:08:03.676619"], ["updated_at", "2017-11-11 00:08:03.676619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.693016"], ["updated_at", "2017-11-11 00:08:03.693016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.698897"], ["updated_at", "2017-11-11 00:08:03.698897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.699839"], ["updated_at", "2017-11-11 00:08:03.699839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.708489"], ["updated_at", "2017-11-11 00:08:03.708489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.709308"], ["updated_at", "2017-11-11 00:08:03.709308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.725620"], ["updated_at", "2017-11-11 00:08:03.725620"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.726527"], ["updated_at", "2017-11-11 00:08:03.726527"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.729194"], ["updated_at", "2017-11-11 00:08:03.729194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:08:03.735628"], ["updated_at", "2017-11-11 00:08:03.735628"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:08:03.744251"], ["updated_at", "2017-11-11 00:08:03.744251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:08:03.799916"], ["updated_at", "2017-11-11 00:08:03.799916"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.808468"], ["updated_at", "2017-11-11 00:08:03.808468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.813986"], ["updated_at", "2017-11-11 00:08:03.813986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.816862"], ["updated_at", "2017-11-11 00:08:03.816862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:08:03.824663"], ["updated_at", "2017-11-11 00:08:03.824663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:08:03.825844"], ["updated_at", "2017-11-11 00:08:03.825844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:03.846135"], ["updated_at", "2017-11-11 00:08:03.846135"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:07.916466"], ["updated_at", "2017-11-11 00:08:07.916466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:08:07.922215"], ["updated_at", "2017-11-11 00:08:07.922215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:08:07.923065"], ["updated_at", "2017-11-11 00:08:07.923065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:07.946974"], ["updated_at", "2017-11-11 00:08:07.946974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:07.951982"], ["updated_at", "2017-11-11 00:08:07.951982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:07.954574"], ["updated_at", "2017-11-11 00:08:07.954574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:08:07.960147"], ["updated_at", "2017-11-11 00:08:07.960147"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:08:07.975758"], ["updated_at", "2017-11-11 00:08:07.975758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:08:07.976606"], ["updated_at", "2017-11-11 00:08:07.976606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:08:07.978277"], ["updated_at", "2017-11-11 00:08:07.978277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:08:07.979063"], ["updated_at", "2017-11-11 00:08:07.979063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:07.982773"], ["updated_at", "2017-11-11 00:08:07.982773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:07.987826"], ["updated_at", "2017-11-11 00:08:07.987826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:07.988641"], ["updated_at", "2017-11-11 00:08:07.988641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:07.990534"], ["updated_at", "2017-11-11 00:08:07.990534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:08:07.995731"], ["updated_at", "2017-11-11 00:08:07.995731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:08:07.999830"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:08:08.000896"], ["updated_at", "2017-11-11 00:08:08.000896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:08:08.001729"], ["updated_at", "2017-11-11 00:08:08.001729"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.006181"], ["updated_at", "2017-11-11 00:08:08.006181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.008439"], ["updated_at", "2017-11-11 00:08:08.008439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.010246"], ["updated_at", "2017-11-11 00:08:08.010246"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.013754"], ["updated_at", "2017-11-11 00:08:08.013754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.016160"], ["updated_at", "2017-11-11 00:08:08.016160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.019433"], ["updated_at", "2017-11-11 00:08:08.019433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.020206"], ["updated_at", "2017-11-11 00:08:08.020206"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.022812"], ["updated_at", "2017-11-11 00:08:08.022812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.023773"], ["updated_at", "2017-11-11 00:08:08.023773"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.033195"], ["updated_at", "2017-11-11 00:08:08.033195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.034051"], ["updated_at", "2017-11-11 00:08:08.034051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.034742"], ["updated_at", "2017-11-11 00:08:08.034742"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.037146"], ["updated_at", "2017-11-11 00:08:08.037146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.037966"], ["updated_at", "2017-11-11 00:08:08.037966"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.042388"], ["updated_at", "2017-11-11 00:08:08.042388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.043133"], ["updated_at", "2017-11-11 00:08:08.043133"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:08:08.048103"], ["updated_at", "2017-11-11 00:08:08.048103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:08:08.050158"], ["updated_at", "2017-11-11 00:08:08.050158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.057893"], ["updated_at", "2017-11-11 00:08:08.057893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.059968"], ["updated_at", "2017-11-11 00:08:08.059968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.062959"], ["updated_at", "2017-11-11 00:08:08.062959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.066720"], ["updated_at", "2017-11-11 00:08:08.066720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.067410"], ["updated_at", "2017-11-11 00:08:08.067410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:08:08.079212"], ["updated_at", "2017-11-11 00:08:08.079212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.083771"], ["updated_at", "2017-11-11 00:08:08.083771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:08:08.084706"], ["updated_at", "2017-11-11 00:08:08.084706"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.087192"], ["updated_at", "2017-11-11 00:08:08.087192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.088088"], ["updated_at", "2017-11-11 00:08:08.088088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.089083"], ["updated_at", "2017-11-11 00:08:08.089083"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:08:08.091380"], ["updated_at", "2017-11-11 00:08:08.091380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:08:08.092090"], ["updated_at", "2017-11-11 00:08:08.092090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.092786"], ["updated_at", "2017-11-11 00:08:08.092786"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.095009"], ["updated_at", "2017-11-11 00:08:08.095009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.100266"], ["updated_at", "2017-11-11 00:08:08.100266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.106154"], ["updated_at", "2017-11-11 00:08:08.106154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.113586"], ["updated_at", "2017-11-11 00:08:08.113586"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.115591"], ["updated_at", "2017-11-11 00:08:08.115591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.117734"], ["updated_at", "2017-11-11 00:08:08.117734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.121095"], ["updated_at", "2017-11-11 00:08:08.121095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.121995"], ["updated_at", "2017-11-11 00:08:08.121995"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:08:08.124292"], ["updated_at", "2017-11-11 00:08:08.124292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.126262"], ["updated_at", "2017-11-11 00:08:08.126262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.130158"], ["updated_at", "2017-11-11 00:08:08.130158"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.130902"], ["updated_at", "2017-11-11 00:08:08.130902"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.132731"], ["updated_at", "2017-11-11 00:08:08.132731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.137264"], ["updated_at", "2017-11-11 00:08:08.137264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.141375"], ["updated_at", "2017-11-11 00:08:08.141375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.142152"], ["updated_at", "2017-11-11 00:08:08.142152"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:08:08.143959"], ["updated_at", "2017-11-11 00:08:08.143959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:08:08.144767"], ["updated_at", "2017-11-11 00:08:08.144767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:08:08.146461"], ["updated_at", "2017-11-11 00:08:08.146461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:08:08.147261"], ["updated_at", "2017-11-11 00:08:08.147261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.153213"], ["updated_at", "2017-11-11 00:08:08.153213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.154111"], ["updated_at", "2017-11-11 00:08:08.154111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.156147"], ["updated_at", "2017-11-11 00:08:08.156147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.159383"], ["updated_at", "2017-11-11 00:08:08.159383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.160158"], ["updated_at", "2017-11-11 00:08:08.160158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.170718"], ["updated_at", "2017-11-11 00:08:08.170718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.171505"], ["updated_at", "2017-11-11 00:08:08.171505"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.185630"], ["updated_at", "2017-11-11 00:08:08.185630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.186407"], ["updated_at", "2017-11-11 00:08:08.186407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.195730"], ["updated_at", "2017-11-11 00:08:08.195730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.196468"], ["updated_at", "2017-11-11 00:08:08.196468"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:08:08.199253"], ["updated_at", "2017-11-11 00:08:08.199253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.208001"], ["updated_at", "2017-11-11 00:08:08.208001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.211854"], ["updated_at", "2017-11-11 00:08:08.211854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:08:08.216760"], ["updated_at", "2017-11-11 00:08:08.216760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (1.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.627694"], ["updated_at", "2017-11-11 00:09:07.627694"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.654270"], ["updated_at", "2017-11-11 00:09:07.654270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:07.674868"], ["updated_at", "2017-11-11 00:09:07.674868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:07.675896"], ["updated_at", "2017-11-11 00:09:07.675896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:07.678100"], ["updated_at", "2017-11-11 00:09:07.678100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:07.678960"], ["updated_at", "2017-11-11 00:09:07.678960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.686034"], ["updated_at", "2017-11-11 00:09:07.686034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.686999"], ["updated_at", "2017-11-11 00:09:07.686999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.708560"], ["updated_at", "2017-11-11 00:09:07.708560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.709443"], ["updated_at", "2017-11-11 00:09:07.709443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.710186"], ["updated_at", "2017-11-11 00:09:07.710186"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.712496"], ["updated_at", "2017-11-11 00:09:07.712496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.717637"], ["updated_at", "2017-11-11 00:09:07.717637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.721921"], ["updated_at", "2017-11-11 00:09:07.721921"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.722930"], ["updated_at", "2017-11-11 00:09:07.722930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.725148"], ["updated_at", "2017-11-11 00:09:07.725148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.729108"], ["updated_at", "2017-11-11 00:09:07.729108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.735284"], ["updated_at", "2017-11-11 00:09:07.735284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.736207"], ["updated_at", "2017-11-11 00:09:07.736207"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:09:07.747099"], ["updated_at", "2017-11-11 00:09:07.747099"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:09:07.749103"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:07.750964"], ["updated_at", "2017-11-11 00:09:07.750964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:09:07.752154"], ["updated_at", "2017-11-11 00:09:07.752154"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.757336"], ["updated_at", "2017-11-11 00:09:07.757336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.762744"], ["updated_at", "2017-11-11 00:09:07.762744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.763618"], ["updated_at", "2017-11-11 00:09:07.763618"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.766473"], ["updated_at", "2017-11-11 00:09:07.766473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.767400"], ["updated_at", "2017-11-11 00:09:07.767400"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.769643"], ["updated_at", "2017-11-11 00:09:07.769643"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.770493"], ["updated_at", "2017-11-11 00:09:07.770493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:09:07.776986"], ["updated_at", "2017-11-11 00:09:07.776986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.793106"], ["updated_at", "2017-11-11 00:09:07.793106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.795441"], ["updated_at", "2017-11-11 00:09:07.795441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.798965"], ["updated_at", "2017-11-11 00:09:07.798965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.804081"], ["updated_at", "2017-11-11 00:09:07.804081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.806325"], ["updated_at", "2017-11-11 00:09:07.806325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.809950"], ["updated_at", "2017-11-11 00:09:07.809950"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.812083"], ["updated_at", "2017-11-11 00:09:07.812083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.815987"], ["updated_at", "2017-11-11 00:09:07.815987"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.820968"], ["updated_at", "2017-11-11 00:09:07.820968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.821805"], ["updated_at", "2017-11-11 00:09:07.821805"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.824542"], ["updated_at", "2017-11-11 00:09:07.824542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.825448"], ["updated_at", "2017-11-11 00:09:07.825448"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.827207"], ["updated_at", "2017-11-11 00:09:07.827207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.827994"], ["updated_at", "2017-11-11 00:09:07.827994"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.829850"], ["updated_at", "2017-11-11 00:09:07.829850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.834041"], ["updated_at", "2017-11-11 00:09:07.834041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.834891"], ["updated_at", "2017-11-11 00:09:07.834891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:07.840427"], ["updated_at", "2017-11-11 00:09:07.840427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:07.841305"], ["updated_at", "2017-11-11 00:09:07.841305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:07.843017"], ["updated_at", "2017-11-11 00:09:07.843017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:07.843776"], ["updated_at", "2017-11-11 00:09:07.843776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.856262"], ["updated_at", "2017-11-11 00:09:07.856262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.857313"], ["updated_at", "2017-11-11 00:09:07.857313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.859407"], ["updated_at", "2017-11-11 00:09:07.859407"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.862734"], ["updated_at", "2017-11-11 00:09:07.862734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.866065"], ["updated_at", "2017-11-11 00:09:07.866065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.866849"], ["updated_at", "2017-11-11 00:09:07.866849"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.869536"], ["updated_at", "2017-11-11 00:09:07.869536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:07.874393"], ["updated_at", "2017-11-11 00:09:07.874393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:07.875196"], ["updated_at", "2017-11-11 00:09:07.875196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.875949"], ["updated_at", "2017-11-11 00:09:07.875949"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.877927"], ["updated_at", "2017-11-11 00:09:07.877927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.878602"], ["updated_at", "2017-11-11 00:09:07.878602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:09:07.885048"], ["updated_at", "2017-11-11 00:09:07.885048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:09:07.887006"], ["updated_at", "2017-11-11 00:09:07.887006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.895032"], ["updated_at", "2017-11-11 00:09:07.895032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.895949"], ["updated_at", "2017-11-11 00:09:07.895949"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.900996"], ["updated_at", "2017-11-11 00:09:07.900996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.901971"], ["updated_at", "2017-11-11 00:09:07.901971"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:07.906862"], ["updated_at", "2017-11-11 00:09:07.906862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:09:07.911054"], ["updated_at", "2017-11-11 00:09:07.911054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.913152"], ["updated_at", "2017-11-11 00:09:07.913152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.925915"], ["updated_at", "2017-11-11 00:09:07.925915"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.928146"], ["updated_at", "2017-11-11 00:09:07.928146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.930508"], ["updated_at", "2017-11-11 00:09:07.930508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.937173"], ["updated_at", "2017-11-11 00:09:07.937173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.940320"], ["updated_at", "2017-11-11 00:09:07.940320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:09:07.941167"], ["updated_at", "2017-11-11 00:09:07.941167"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:07.995559"], ["updated_at", "2017-11-11 00:09:07.995559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:09:08.000226"], ["updated_at", "2017-11-11 00:09:08.000226"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:09:08.002880"], ["updated_at", "2017-11-11 00:09:08.002880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:09:08.003751"], ["updated_at", "2017-11-11 00:09:08.003751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:08.028458"], ["updated_at", "2017-11-11 00:09:08.028458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:08.038049"], ["updated_at", "2017-11-11 00:09:08.038049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:08.041034"], ["updated_at", "2017-11-11 00:09:08.041034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.318349"], ["updated_at", "2017-11-11 00:09:11.318349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 2]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:09:11.361157"], ["updated_at", "2017-11-11 00:09:11.361157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:09:11.362002"], ["updated_at", "2017-11-11 00:09:11.362002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:09:11.380058"], ["updated_at", "2017-11-11 00:09:11.380058"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.397026"], ["updated_at", "2017-11-11 00:09:11.397026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.401546"], ["updated_at", "2017-11-11 00:09:11.401546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.403932"], ["updated_at", "2017-11-11 00:09:11.403932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.531793"], ["updated_at", "2017-11-11 00:09:11.531793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.534366"], ["updated_at", "2017-11-11 00:09:11.534366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:11.540386"], ["updated_at", "2017-11-11 00:09:11.540386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:11.541205"], ["updated_at", "2017-11-11 00:09:11.541205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:11.543706"], ["updated_at", "2017-11-11 00:09:11.543706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:11.544476"], ["updated_at", "2017-11-11 00:09:11.544476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.547622"], ["updated_at", "2017-11-11 00:09:11.547622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.562972"], ["updated_at", "2017-11-11 00:09:11.562972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.565180"], ["updated_at", "2017-11-11 00:09:11.565180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.568344"], ["updated_at", "2017-11-11 00:09:11.568344"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.571592"], ["updated_at", "2017-11-11 00:09:11.571592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:09:11.572456"], ["updated_at", "2017-11-11 00:09:11.572456"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.574879"], ["updated_at", "2017-11-11 00:09:11.574879"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:11.579005"], ["updated_at", "2017-11-11 00:09:11.579005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:11.579801"], ["updated_at", "2017-11-11 00:09:11.579801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.580502"], ["updated_at", "2017-11-11 00:09:11.580502"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.582395"], ["updated_at", "2017-11-11 00:09:11.582395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.583154"], ["updated_at", "2017-11-11 00:09:11.583154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.584943"], ["updated_at", "2017-11-11 00:09:11.584943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.587955"], ["updated_at", "2017-11-11 00:09:11.587955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.589736"], ["updated_at", "2017-11-11 00:09:11.589736"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.591854"], ["updated_at", "2017-11-11 00:09:11.591854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:11.595328"], ["updated_at", "2017-11-11 00:09:11.595328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:11.596109"], ["updated_at", "2017-11-11 00:09:11.596109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:11.597754"], ["updated_at", "2017-11-11 00:09:11.597754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:11.598463"], ["updated_at", "2017-11-11 00:09:11.598463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.604480"], ["updated_at", "2017-11-11 00:09:11.604480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.605246"], ["updated_at", "2017-11-11 00:09:11.605246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.614665"], ["updated_at", "2017-11-11 00:09:11.614665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.619341"], ["updated_at", "2017-11-11 00:09:11.619341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.620190"], ["updated_at", "2017-11-11 00:09:11.620190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.628614"], ["updated_at", "2017-11-11 00:09:11.628614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.630668"], ["updated_at", "2017-11-11 00:09:11.630668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.633632"], ["updated_at", "2017-11-11 00:09:11.633632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.634403"], ["updated_at", "2017-11-11 00:09:11.634403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.635077"], ["updated_at", "2017-11-11 00:09:11.635077"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.637725"], ["updated_at", "2017-11-11 00:09:11.637725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.642164"], ["updated_at", "2017-11-11 00:09:11.642164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.647582"], ["updated_at", "2017-11-11 00:09:11.647582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.648390"], ["updated_at", "2017-11-11 00:09:11.648390"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.650320"], ["updated_at", "2017-11-11 00:09:11.650320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.656449"], ["updated_at", "2017-11-11 00:09:11.656449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.661958"], ["updated_at", "2017-11-11 00:09:11.661958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.662859"], ["updated_at", "2017-11-11 00:09:11.662859"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:09:11.666330"], ["updated_at", "2017-11-11 00:09:11.666330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:09:11.667778"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:11.668590"], ["updated_at", "2017-11-11 00:09:11.668590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:09:11.669540"], ["updated_at", "2017-11-11 00:09:11.669540"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.679910"], ["updated_at", "2017-11-11 00:09:11.679910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.680637"], ["updated_at", "2017-11-11 00:09:11.680637"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:09:11.682758"], ["updated_at", "2017-11-11 00:09:11.682758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:09:11.684631"], ["updated_at", "2017-11-11 00:09:11.684631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:09:11.692979"], ["updated_at", "2017-11-11 00:09:11.692979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.695260"], ["updated_at", "2017-11-11 00:09:11.695260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.699446"], ["updated_at", "2017-11-11 00:09:11.699446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.700535"], ["updated_at", "2017-11-11 00:09:11.700535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.707353"], ["updated_at", "2017-11-11 00:09:11.707353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.708056"], ["updated_at", "2017-11-11 00:09:11.708056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.708678"], ["updated_at", "2017-11-11 00:09:11.708678"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.716645"], ["updated_at", "2017-11-11 00:09:11.716645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.717676"], ["updated_at", "2017-11-11 00:09:11.717676"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.722284"], ["updated_at", "2017-11-11 00:09:11.722284"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.724272"], ["updated_at", "2017-11-11 00:09:11.724272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.725221"], ["updated_at", "2017-11-11 00:09:11.725221"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:09:11.728185"], ["updated_at", "2017-11-11 00:09:11.728185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.737329"], ["updated_at", "2017-11-11 00:09:11.737329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.738156"], ["updated_at", "2017-11-11 00:09:11.738156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.739911"], ["updated_at", "2017-11-11 00:09:11.739911"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:11.745142"], ["updated_at", "2017-11-11 00:09:11.745142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.749373"], ["updated_at", "2017-11-11 00:09:11.749373"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.750222"], ["updated_at", "2017-11-11 00:09:11.750222"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.752864"], ["updated_at", "2017-11-11 00:09:11.752864"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.754301"], ["updated_at", "2017-11-11 00:09:11.754301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.759991"], ["updated_at", "2017-11-11 00:09:11.759991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.760934"], ["updated_at", "2017-11-11 00:09:11.760934"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.763713"], ["updated_at", "2017-11-11 00:09:11.763713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.764796"], ["updated_at", "2017-11-11 00:09:11.764796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.771992"], ["updated_at", "2017-11-11 00:09:11.771992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:11.776995"], ["updated_at", "2017-11-11 00:09:11.776995"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:09:18.028616"], ["updated_at", "2017-11-11 00:09:18.028616"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.044762"], ["updated_at", "2017-11-11 00:09:18.044762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 5], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:09:18.090249"], ["updated_at", "2017-11-11 00:09:18.090249"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:09:18.091268"], ["updated_at", "2017-11-11 00:09:18.091268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.113347"], ["updated_at", "2017-11-11 00:09:18.113347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.119556"], ["updated_at", "2017-11-11 00:09:18.119556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.122919"], ["updated_at", "2017-11-11 00:09:18.122919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.195178"], ["updated_at", "2017-11-11 00:09:18.195178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.196223"], ["updated_at", "2017-11-11 00:09:18.196223"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.198450"], ["updated_at", "2017-11-11 00:09:18.198450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.200772"], ["updated_at", "2017-11-11 00:09:18.200772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.204942"], ["updated_at", "2017-11-11 00:09:18.204942"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.210782"], ["updated_at", "2017-11-11 00:09:18.210782"]]  (9.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.221055"], ["updated_at", "2017-11-11 00:09:18.221055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.223636"], ["updated_at", "2017-11-11 00:09:18.223636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:18.227206"], ["updated_at", "2017-11-11 00:09:18.227206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:18.228048"], ["updated_at", "2017-11-11 00:09:18.228048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.228809"], ["updated_at", "2017-11-11 00:09:18.228809"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.242696"], ["updated_at", "2017-11-11 00:09:18.242696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.243652"], ["updated_at", "2017-11-11 00:09:18.243652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:09:18.253194"], ["updated_at", "2017-11-11 00:09:18.253194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.262365"], ["updated_at", "2017-11-11 00:09:18.262365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.263142"], ["updated_at", "2017-11-11 00:09:18.263142"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.272198"], ["updated_at", "2017-11-11 00:09:18.272198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.273066"], ["updated_at", "2017-11-11 00:09:18.273066"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.273873"], ["updated_at", "2017-11-11 00:09:18.273873"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.276328"], ["updated_at", "2017-11-11 00:09:18.276328"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.277175"], ["updated_at", "2017-11-11 00:09:18.277175"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.279572"], ["updated_at", "2017-11-11 00:09:18.279572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.280402"], ["updated_at", "2017-11-11 00:09:18.280402"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.282256"], ["updated_at", "2017-11-11 00:09:18.282256"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.284104"], ["updated_at", "2017-11-11 00:09:18.284104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:09:18.288353"], ["updated_at", "2017-11-11 00:09:18.288353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:09:18.289391"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:18.290205"], ["updated_at", "2017-11-11 00:09:18.290205"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:09:18.291065"], ["updated_at", "2017-11-11 00:09:18.291065"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.295259"], ["updated_at", "2017-11-11 00:09:18.295259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.296059"], ["updated_at", "2017-11-11 00:09:18.296059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.298089"], ["updated_at", "2017-11-11 00:09:18.298089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.301293"], ["updated_at", "2017-11-11 00:09:18.301293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.302066"], ["updated_at", "2017-11-11 00:09:18.302066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.309903"], ["updated_at", "2017-11-11 00:09:18.309903"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.311964"], ["updated_at", "2017-11-11 00:09:18.311964"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.315644"], ["updated_at", "2017-11-11 00:09:18.315644"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.319604"], ["updated_at", "2017-11-11 00:09:18.319604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.322134"], ["updated_at", "2017-11-11 00:09:18.322134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.325760"], ["updated_at", "2017-11-11 00:09:18.325760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:09:18.326667"], ["updated_at", "2017-11-11 00:09:18.326667"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:18.332456"], ["updated_at", "2017-11-11 00:09:18.332456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.339997"], ["updated_at", "2017-11-11 00:09:18.339997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.340858"], ["updated_at", "2017-11-11 00:09:18.340858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:18.345704"], ["updated_at", "2017-11-11 00:09:18.345704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:18.346696"], ["updated_at", "2017-11-11 00:09:18.346696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:18.348767"], ["updated_at", "2017-11-11 00:09:18.348767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:18.349617"], ["updated_at", "2017-11-11 00:09:18.349617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.355956"], ["updated_at", "2017-11-11 00:09:18.355956"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.360618"], ["updated_at", "2017-11-11 00:09:18.360618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:09:18.365916"], ["updated_at", "2017-11-11 00:09:18.365916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:09:18.367895"], ["updated_at", "2017-11-11 00:09:18.367895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.377796"], ["updated_at", "2017-11-11 00:09:18.377796"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.379052"], ["updated_at", "2017-11-11 00:09:18.379052"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:09:18.381704"], ["updated_at", "2017-11-11 00:09:18.381704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.384138"], ["updated_at", "2017-11-11 00:09:18.384138"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.389052"], ["updated_at", "2017-11-11 00:09:18.389052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.393985"], ["updated_at", "2017-11-11 00:09:18.393985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.402144"], ["updated_at", "2017-11-11 00:09:18.402144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.402824"], ["updated_at", "2017-11-11 00:09:18.402824"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.405647"], ["updated_at", "2017-11-11 00:09:18.405647"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.410178"], ["updated_at", "2017-11-11 00:09:18.410178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.417368"], ["updated_at", "2017-11-11 00:09:18.417368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.422005"], ["updated_at", "2017-11-11 00:09:18.422005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.429333"], ["updated_at", "2017-11-11 00:09:18.429333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.430170"], ["updated_at", "2017-11-11 00:09:18.430170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:18.438144"], ["updated_at", "2017-11-11 00:09:18.438144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:18.438962"], ["updated_at", "2017-11-11 00:09:18.438962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:18.440562"], ["updated_at", "2017-11-11 00:09:18.440562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:18.441333"], ["updated_at", "2017-11-11 00:09:18.441333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.444450"], ["updated_at", "2017-11-11 00:09:18.444450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.445173"], ["updated_at", "2017-11-11 00:09:18.445173"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.446906"], ["updated_at", "2017-11-11 00:09:18.446906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.447569"], ["updated_at", "2017-11-11 00:09:18.447569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.448212"], ["updated_at", "2017-11-11 00:09:18.448212"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.450343"], ["updated_at", "2017-11-11 00:09:18.450343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.451030"], ["updated_at", "2017-11-11 00:09:18.451030"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.458438"], ["updated_at", "2017-11-11 00:09:18.458438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:18.460254"], ["updated_at", "2017-11-11 00:09:18.460254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.357663"], ["updated_at", "2017-11-11 00:09:21.357663"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.375887"], ["updated_at", "2017-11-11 00:09:21.375887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.391735"], ["updated_at", "2017-11-11 00:09:21.391735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.394216"], ["updated_at", "2017-11-11 00:09:21.394216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:09:21.404458"], ["updated_at", "2017-11-11 00:09:21.404458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:09:21.405523"], ["updated_at", "2017-11-11 00:09:21.405523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:09:21.450665"], ["updated_at", "2017-11-11 00:09:21.450665"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (5.5ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.540346"], ["updated_at", "2017-11-11 00:09:21.540346"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.542094"], ["updated_at", "2017-11-11 00:09:21.542094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.545076"], ["updated_at", "2017-11-11 00:09:21.545076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.548510"], ["updated_at", "2017-11-11 00:09:21.548510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.549323"], ["updated_at", "2017-11-11 00:09:21.549323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.551236"], ["updated_at", "2017-11-11 00:09:21.551236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.562949"], ["updated_at", "2017-11-11 00:09:21.562949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.564486"], ["updated_at", "2017-11-11 00:09:21.564486"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.567883"], ["updated_at", "2017-11-11 00:09:21.567883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.568693"], ["updated_at", "2017-11-11 00:09:21.568693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.573735"], ["updated_at", "2017-11-11 00:09:21.573735"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.578576"], ["updated_at", "2017-11-11 00:09:21.578576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.583423"], ["updated_at", "2017-11-11 00:09:21.583423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:09:21.591913"], ["updated_at", "2017-11-11 00:09:21.591913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:09:21.593633"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:21.594831"], ["updated_at", "2017-11-11 00:09:21.594831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:09:21.595864"], ["updated_at", "2017-11-11 00:09:21.595864"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.599404"], ["updated_at", "2017-11-11 00:09:21.599404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.600124"], ["updated_at", "2017-11-11 00:09:21.600124"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.600877"], ["updated_at", "2017-11-11 00:09:21.600877"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:09:21.603621"], ["updated_at", "2017-11-11 00:09:21.603621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.605835"], ["updated_at", "2017-11-11 00:09:21.605835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.610365"], ["updated_at", "2017-11-11 00:09:21.610365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.611200"], ["updated_at", "2017-11-11 00:09:21.611200"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:21.613199"], ["updated_at", "2017-11-11 00:09:21.613199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:21.613974"], ["updated_at", "2017-11-11 00:09:21.613974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.614758"], ["updated_at", "2017-11-11 00:09:21.614758"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.616466"], ["updated_at", "2017-11-11 00:09:21.616466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.618777"], ["updated_at", "2017-11-11 00:09:21.618777"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.622360"], ["updated_at", "2017-11-11 00:09:21.622360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.623218"], ["updated_at", "2017-11-11 00:09:21.623218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.629838"], ["updated_at", "2017-11-11 00:09:21.629838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.630667"], ["updated_at", "2017-11-11 00:09:21.630667"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.632780"], ["updated_at", "2017-11-11 00:09:21.632780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.634694"], ["updated_at", "2017-11-11 00:09:21.634694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.638108"], ["updated_at", "2017-11-11 00:09:21.638108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.638982"], ["updated_at", "2017-11-11 00:09:21.638982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.639743"], ["updated_at", "2017-11-11 00:09:21.639743"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.642160"], ["updated_at", "2017-11-11 00:09:21.642160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.647845"], ["updated_at", "2017-11-11 00:09:21.647845"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.652495"], ["updated_at", "2017-11-11 00:09:21.652495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.653576"], ["updated_at", "2017-11-11 00:09:21.653576"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.656420"], ["updated_at", "2017-11-11 00:09:21.656420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.661300"], ["updated_at", "2017-11-11 00:09:21.661300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:09:21.662265"], ["updated_at", "2017-11-11 00:09:21.662265"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.665460"], ["updated_at", "2017-11-11 00:09:21.665460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.678815"], ["updated_at", "2017-11-11 00:09:21.678815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.683041"], ["updated_at", "2017-11-11 00:09:21.683041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.685252"], ["updated_at", "2017-11-11 00:09:21.685252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.693709"], ["updated_at", "2017-11-11 00:09:21.693709"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.694672"], ["updated_at", "2017-11-11 00:09:21.694672"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.697432"], ["updated_at", "2017-11-11 00:09:21.697432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.701832"], ["updated_at", "2017-11-11 00:09:21.701832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.702562"], ["updated_at", "2017-11-11 00:09:21.702562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.730349"], ["updated_at", "2017-11-11 00:09:21.730349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.731228"], ["updated_at", "2017-11-11 00:09:21.731228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.744976"], ["updated_at", "2017-11-11 00:09:21.744976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.745851"], ["updated_at", "2017-11-11 00:09:21.745851"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:09:21.748203"], ["updated_at", "2017-11-11 00:09:21.748203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:09:21.750225"], ["updated_at", "2017-11-11 00:09:21.750225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:21.761502"], ["updated_at", "2017-11-11 00:09:21.761502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:21.762611"], ["updated_at", "2017-11-11 00:09:21.762611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:21.764458"], ["updated_at", "2017-11-11 00:09:21.764458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:21.765225"], ["updated_at", "2017-11-11 00:09:21.765225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.768426"], ["updated_at", "2017-11-11 00:09:21.768426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.770482"], ["updated_at", "2017-11-11 00:09:21.770482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.772820"], ["updated_at", "2017-11-11 00:09:21.772820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.775914"], ["updated_at", "2017-11-11 00:09:21.775914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.780711"], ["updated_at", "2017-11-11 00:09:21.780711"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:21.785332"], ["updated_at", "2017-11-11 00:09:21.785332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:21.789091"], ["updated_at", "2017-11-11 00:09:21.789091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:21.790097"], ["updated_at", "2017-11-11 00:09:21.790097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:21.791809"], ["updated_at", "2017-11-11 00:09:21.791809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:21.792723"], ["updated_at", "2017-11-11 00:09:21.792723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:09:21.800962"], ["updated_at", "2017-11-11 00:09:21.800962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.810752"], ["updated_at", "2017-11-11 00:09:21.810752"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.811812"], ["updated_at", "2017-11-11 00:09:21.811812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (4.5ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.816868"], ["updated_at", "2017-11-11 00:09:21.816868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:21.826238"], ["updated_at", "2017-11-11 00:09:21.826238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:09:24.708116"], ["updated_at", "2017-11-11 00:09:24.708116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:09:24.709483"], ["updated_at", "2017-11-11 00:09:24.709483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:09:24.728932"], ["updated_at", "2017-11-11 00:09:24.728932"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.734341"], ["updated_at", "2017-11-11 00:09:24.734341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.745469"], ["updated_at", "2017-11-11 00:09:24.745469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.748107"], ["updated_at", "2017-11-11 00:09:24.748107"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.778810"], ["updated_at", "2017-11-11 00:09:24.778810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 9], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.814375"], ["updated_at", "2017-11-11 00:09:24.814375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:09:24.815494"], ["updated_at", "2017-11-11 00:09:24.815494"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:24.818687"], ["updated_at", "2017-11-11 00:09:24.818687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:24.819707"], ["updated_at", "2017-11-11 00:09:24.819707"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:24.822193"], ["updated_at", "2017-11-11 00:09:24.822193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:24.823138"], ["updated_at", "2017-11-11 00:09:24.823138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.2ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.843977"], ["updated_at", "2017-11-11 00:09:24.843977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.845097"], ["updated_at", "2017-11-11 00:09:24.845097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.851326"], ["updated_at", "2017-11-11 00:09:24.851326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.852531"], ["updated_at", "2017-11-11 00:09:24.852531"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.855242"], ["updated_at", "2017-11-11 00:09:24.855242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.856098"], ["updated_at", "2017-11-11 00:09:24.856098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.862933"], ["updated_at", "2017-11-11 00:09:24.862933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.863783"], ["updated_at", "2017-11-11 00:09:24.863783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.865672"], ["updated_at", "2017-11-11 00:09:24.865672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:24.870928"], ["updated_at", "2017-11-11 00:09:24.870928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.874644"], ["updated_at", "2017-11-11 00:09:24.874644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.877865"], ["updated_at", "2017-11-11 00:09:24.877865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.879269"], ["updated_at", "2017-11-11 00:09:24.879269"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.885304"], ["updated_at", "2017-11-11 00:09:24.885304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.887440"], ["updated_at", "2017-11-11 00:09:24.887440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.889370"], ["updated_at", "2017-11-11 00:09:24.889370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:09:24.894728"], ["updated_at", "2017-11-11 00:09:24.894728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.904684"], ["updated_at", "2017-11-11 00:09:24.904684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.905477"], ["updated_at", "2017-11-11 00:09:24.905477"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:09:24.908274"], ["updated_at", "2017-11-11 00:09:24.908274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:09:24.909485"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:24.910427"], ["updated_at", "2017-11-11 00:09:24.910427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:09:24.911198"], ["updated_at", "2017-11-11 00:09:24.911198"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.915389"], ["updated_at", "2017-11-11 00:09:24.915389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.916295"], ["updated_at", "2017-11-11 00:09:24.916295"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.918436"], ["updated_at", "2017-11-11 00:09:24.918436"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.920100"], ["updated_at", "2017-11-11 00:09:24.920100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.920887"], ["updated_at", "2017-11-11 00:09:24.920887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:24.925670"], ["updated_at", "2017-11-11 00:09:24.925670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:24.926616"], ["updated_at", "2017-11-11 00:09:24.926616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:24.928414"], ["updated_at", "2017-11-11 00:09:24.928414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:24.929423"], ["updated_at", "2017-11-11 00:09:24.929423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.933882"], ["updated_at", "2017-11-11 00:09:24.933882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.934732"], ["updated_at", "2017-11-11 00:09:24.934732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.936721"], ["updated_at", "2017-11-11 00:09:24.936721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.939903"], ["updated_at", "2017-11-11 00:09:24.939903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.940720"], ["updated_at", "2017-11-11 00:09:24.940720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.941442"], ["updated_at", "2017-11-11 00:09:24.941442"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.943727"], ["updated_at", "2017-11-11 00:09:24.943727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.944467"], ["updated_at", "2017-11-11 00:09:24.944467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:24.954630"], ["updated_at", "2017-11-11 00:09:24.954630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:24.955472"], ["updated_at", "2017-11-11 00:09:24.955472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.956168"], ["updated_at", "2017-11-11 00:09:24.956168"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:09:24.959882"], ["updated_at", "2017-11-11 00:09:24.959882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:09:24.961664"], ["updated_at", "2017-11-11 00:09:24.961664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.969894"], ["updated_at", "2017-11-11 00:09:24.969894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.974590"], ["updated_at", "2017-11-11 00:09:24.974590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.975376"], ["updated_at", "2017-11-11 00:09:24.975376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.976066"], ["updated_at", "2017-11-11 00:09:24.976066"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.978714"], ["updated_at", "2017-11-11 00:09:24.978714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.989575"], ["updated_at", "2017-11-11 00:09:24.989575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.993393"], ["updated_at", "2017-11-11 00:09:24.993393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.994307"], ["updated_at", "2017-11-11 00:09:24.994307"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.996388"], ["updated_at", "2017-11-11 00:09:24.996388"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:24.998498"], ["updated_at", "2017-11-11 00:09:24.998498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.001713"], ["updated_at", "2017-11-11 00:09:25.001713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.012048"], ["updated_at", "2017-11-11 00:09:25.012048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.020239"], ["updated_at", "2017-11-11 00:09:25.020239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.025832"], ["updated_at", "2017-11-11 00:09:25.025832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:09:25.032919"], ["updated_at", "2017-11-11 00:09:25.032919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.035083"], ["updated_at", "2017-11-11 00:09:25.035083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.038958"], ["updated_at", "2017-11-11 00:09:25.038958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.043695"], ["updated_at", "2017-11-11 00:09:25.043695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.044857"], ["updated_at", "2017-11-11 00:09:25.044857"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.047754"], ["updated_at", "2017-11-11 00:09:25.047754"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.048639"], ["updated_at", "2017-11-11 00:09:25.048639"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.050379"], ["updated_at", "2017-11-11 00:09:25.050379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.052268"], ["updated_at", "2017-11-11 00:09:25.052268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.055191"], ["updated_at", "2017-11-11 00:09:25.055191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.055904"], ["updated_at", "2017-11-11 00:09:25.055904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.065184"], ["updated_at", "2017-11-11 00:09:25.065184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.066956"], ["updated_at", "2017-11-11 00:09:25.066956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:25.070204"], ["updated_at", "2017-11-11 00:09:25.070204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.467069"], ["updated_at", "2017-11-11 00:09:30.467069"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.468451"], ["updated_at", "2017-11-11 00:09:30.468451"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.470881"], ["updated_at", "2017-11-11 00:09:30.470881"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.486885"], ["updated_at", "2017-11-11 00:09:30.486885"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.488867"], ["updated_at", "2017-11-11 00:09:30.488867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.489678"], ["updated_at", "2017-11-11 00:09:30.489678"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.490796"], ["updated_at", "2017-11-11 00:09:30.490796"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.493401"], ["updated_at", "2017-11-11 00:09:30.493401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.494175"], ["updated_at", "2017-11-11 00:09:30.494175"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.495999"], ["updated_at", "2017-11-11 00:09:30.495999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.504987"], ["updated_at", "2017-11-11 00:09:30.504987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.507850"], ["updated_at", "2017-11-11 00:09:30.507850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.510282"], ["updated_at", "2017-11-11 00:09:30.510282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.513531"], ["updated_at", "2017-11-11 00:09:30.513531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.515689"], ["updated_at", "2017-11-11 00:09:30.515689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:09:30.518551"], ["updated_at", "2017-11-11 00:09:30.518551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.520424"], ["updated_at", "2017-11-11 00:09:30.520424"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:09:30.525411"], ["updated_at", "2017-11-11 00:09:30.525411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:09:30.527362"], ["updated_at", "2017-11-11 00:09:30.527362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.536796"], ["updated_at", "2017-11-11 00:09:30.536796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.537833"], ["updated_at", "2017-11-11 00:09:30.537833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.543197"], ["updated_at", "2017-11-11 00:09:30.543197"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.544060"], ["updated_at", "2017-11-11 00:09:30.544060"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.546000"], ["updated_at", "2017-11-11 00:09:30.546000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:30.550085"], ["updated_at", "2017-11-11 00:09:30.550085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:30.550946"], ["updated_at", "2017-11-11 00:09:30.550946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:30.553201"], ["updated_at", "2017-11-11 00:09:30.553201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:30.554220"], ["updated_at", "2017-11-11 00:09:30.554220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.557676"], ["updated_at", "2017-11-11 00:09:30.557676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:09:30.558520"], ["updated_at", "2017-11-11 00:09:30.558520"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.561568"], ["updated_at", "2017-11-11 00:09:30.561568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.562455"], ["updated_at", "2017-11-11 00:09:30.562455"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:09:30.584608"], ["updated_at", "2017-11-11 00:09:30.584608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:09:30.586187"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:30.589593"], ["updated_at", "2017-11-11 00:09:30.589593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:09:30.590749"], ["updated_at", "2017-11-11 00:09:30.590749"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.595220"], ["updated_at", "2017-11-11 00:09:30.595220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.599529"], ["updated_at", "2017-11-11 00:09:30.599529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.600408"], ["updated_at", "2017-11-11 00:09:30.600408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.602551"], ["updated_at", "2017-11-11 00:09:30.602551"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.605996"], ["updated_at", "2017-11-11 00:09:30.605996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.606844"], ["updated_at", "2017-11-11 00:09:30.606844"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.610024"], ["updated_at", "2017-11-11 00:09:30.610024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.614720"], ["updated_at", "2017-11-11 00:09:30.614720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.616758"], ["updated_at", "2017-11-11 00:09:30.616758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.620677"], ["updated_at", "2017-11-11 00:09:30.620677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.621602"], ["updated_at", "2017-11-11 00:09:30.621602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.623677"], ["updated_at", "2017-11-11 00:09:30.623677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.628280"], ["updated_at", "2017-11-11 00:09:30.628280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.636364"], ["updated_at", "2017-11-11 00:09:30.636364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.643006"], ["updated_at", "2017-11-11 00:09:30.643006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.645406"], ["updated_at", "2017-11-11 00:09:30.645406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.650818"], ["updated_at", "2017-11-11 00:09:30.650818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.651616"], ["updated_at", "2017-11-11 00:09:30.651616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.670207"], ["updated_at", "2017-11-11 00:09:30.670207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.670998"], ["updated_at", "2017-11-11 00:09:30.670998"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.673356"], ["updated_at", "2017-11-11 00:09:30.673356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.676628"], ["updated_at", "2017-11-11 00:09:30.676628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:30.681919"], ["updated_at", "2017-11-11 00:09:30.681919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:30.682869"], ["updated_at", "2017-11-11 00:09:30.682869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:30.684725"], ["updated_at", "2017-11-11 00:09:30.684725"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:30.685864"], ["updated_at", "2017-11-11 00:09:30.685864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.696208"], ["updated_at", "2017-11-11 00:09:30.696208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.696966"], ["updated_at", "2017-11-11 00:09:30.696966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.697627"], ["updated_at", "2017-11-11 00:09:30.697627"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:30.702162"], ["updated_at", "2017-11-11 00:09:30.702162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.705892"], ["updated_at", "2017-11-11 00:09:30.705892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.706723"], ["updated_at", "2017-11-11 00:09:30.706723"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:09:30.710049"], ["updated_at", "2017-11-11 00:09:30.710049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.719939"], ["updated_at", "2017-11-11 00:09:30.719939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.720714"], ["updated_at", "2017-11-11 00:09:30.720714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:30.728688"], ["updated_at", "2017-11-11 00:09:30.728688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:30.729688"], ["updated_at", "2017-11-11 00:09:30.729688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.730630"], ["updated_at", "2017-11-11 00:09:30.730630"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.740176"], ["updated_at", "2017-11-11 00:09:30.740176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.741001"], ["updated_at", "2017-11-11 00:09:30.741001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.747645"], ["updated_at", "2017-11-11 00:09:30.747645"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.752971"], ["updated_at", "2017-11-11 00:09:30.752971"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.754606"], ["updated_at", "2017-11-11 00:09:30.754606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.850021"], ["updated_at", "2017-11-11 00:09:30.850021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.866952"], ["updated_at", "2017-11-11 00:09:30.866952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.872614"], ["updated_at", "2017-11-11 00:09:30.872614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:30.875326"], ["updated_at", "2017-11-11 00:09:30.875326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:09:30.892512"], ["updated_at", "2017-11-11 00:09:30.892512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:09:30.893371"], ["updated_at", "2017-11-11 00:09:30.893371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:09:30.919651"], ["updated_at", "2017-11-11 00:09:30.919651"]]  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:33.714480"], ["updated_at", "2017-11-11 00:09:33.714480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:33.736506"], ["updated_at", "2017-11-11 00:09:33.736506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:33.739842"], ["updated_at", "2017-11-11 00:09:33.739842"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:33.785185"], ["updated_at", "2017-11-11 00:09:33.785185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:09:33.790620"], ["updated_at", "2017-11-11 00:09:33.790620"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:09:33.794346"], ["updated_at", "2017-11-11 00:09:33.794346"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:09:33.795393"], ["updated_at", "2017-11-11 00:09:33.795393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:33.979041"], ["updated_at", "2017-11-11 00:09:33.979041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:33.984556"], ["updated_at", "2017-11-11 00:09:33.984556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:33.985429"], ["updated_at", "2017-11-11 00:09:33.985429"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:33.996154"], ["updated_at", "2017-11-11 00:09:33.996154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:33.998679"], ["updated_at", "2017-11-11 00:09:33.998679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.003294"], ["updated_at", "2017-11-11 00:09:34.003294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.008873"], ["updated_at", "2017-11-11 00:09:34.008873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.010052"], ["updated_at", "2017-11-11 00:09:34.010052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.019982"], ["updated_at", "2017-11-11 00:09:34.019982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.023788"], ["updated_at", "2017-11-11 00:09:34.023788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.024505"], ["updated_at", "2017-11-11 00:09:34.024505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.030657"], ["updated_at", "2017-11-11 00:09:34.030657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.031412"], ["updated_at", "2017-11-11 00:09:34.031412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.036967"], ["updated_at", "2017-11-11 00:09:34.036967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.037909"], ["updated_at", "2017-11-11 00:09:34.037909"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:09:34.044762"], ["updated_at", "2017-11-11 00:09:34.044762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.055163"], ["updated_at", "2017-11-11 00:09:34.055163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.056034"], ["updated_at", "2017-11-11 00:09:34.056034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.067467"], ["updated_at", "2017-11-11 00:09:34.067467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.068425"], ["updated_at", "2017-11-11 00:09:34.068425"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.070578"], ["updated_at", "2017-11-11 00:09:34.070578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.071444"], ["updated_at", "2017-11-11 00:09:34.071444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.073564"], ["updated_at", "2017-11-11 00:09:34.073564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.080670"], ["updated_at", "2017-11-11 00:09:34.080670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.091335"], ["updated_at", "2017-11-11 00:09:34.091335"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.092539"], ["updated_at", "2017-11-11 00:09:34.092539"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:09:34.095643"], ["updated_at", "2017-11-11 00:09:34.095643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.098139"], ["updated_at", "2017-11-11 00:09:34.098139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:34.102973"], ["updated_at", "2017-11-11 00:09:34.102973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:34.103871"], ["updated_at", "2017-11-11 00:09:34.103871"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:34.105549"], ["updated_at", "2017-11-11 00:09:34.105549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:34.106445"], ["updated_at", "2017-11-11 00:09:34.106445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.113855"], ["updated_at", "2017-11-11 00:09:34.113855"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.116317"], ["updated_at", "2017-11-11 00:09:34.116317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.134117"], ["updated_at", "2017-11-11 00:09:34.134117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.135097"], ["updated_at", "2017-11-11 00:09:34.135097"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.137650"], ["updated_at", "2017-11-11 00:09:34.137650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.138473"], ["updated_at", "2017-11-11 00:09:34.138473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:09:34.144367"], ["updated_at", "2017-11-11 00:09:34.144367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:09:34.146919"], ["updated_at", "2017-11-11 00:09:34.146919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.160158"], ["updated_at", "2017-11-11 00:09:34.160158"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.160989"], ["updated_at", "2017-11-11 00:09:34.160989"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.163173"], ["updated_at", "2017-11-11 00:09:34.163173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:09:34.164313"], ["updated_at", "2017-11-11 00:09:34.164313"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.167125"], ["updated_at", "2017-11-11 00:09:34.167125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.171825"], ["updated_at", "2017-11-11 00:09:34.171825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.172613"], ["updated_at", "2017-11-11 00:09:34.172613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.174913"], ["updated_at", "2017-11-11 00:09:34.174913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:09:34.179086"], ["updated_at", "2017-11-11 00:09:34.179086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:09:34.180432"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:34.181706"], ["updated_at", "2017-11-11 00:09:34.181706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:09:34.182527"], ["updated_at", "2017-11-11 00:09:34.182527"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:34.190092"], ["updated_at", "2017-11-11 00:09:34.190092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.195229"], ["updated_at", "2017-11-11 00:09:34.195229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.196299"], ["updated_at", "2017-11-11 00:09:34.196299"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.197329"], ["updated_at", "2017-11-11 00:09:34.197329"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.200162"], ["updated_at", "2017-11-11 00:09:34.200162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.201047"], ["updated_at", "2017-11-11 00:09:34.201047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.201888"], ["updated_at", "2017-11-11 00:09:34.201888"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.204234"], ["updated_at", "2017-11-11 00:09:34.204234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.206465"], ["updated_at", "2017-11-11 00:09:34.206465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.208513"], ["updated_at", "2017-11-11 00:09:34.208513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.211818"], ["updated_at", "2017-11-11 00:09:34.211818"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.214328"], ["updated_at", "2017-11-11 00:09:34.214328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.219593"], ["updated_at", "2017-11-11 00:09:34.219593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.225405"], ["updated_at", "2017-11-11 00:09:34.225405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:34.230726"], ["updated_at", "2017-11-11 00:09:34.230726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:34.231797"], ["updated_at", "2017-11-11 00:09:34.231797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:34.233610"], ["updated_at", "2017-11-11 00:09:34.233610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:34.234454"], ["updated_at", "2017-11-11 00:09:34.234454"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.237774"], ["updated_at", "2017-11-11 00:09:34.237774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:34.241767"], ["updated_at", "2017-11-11 00:09:34.241767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:34.242656"], ["updated_at", "2017-11-11 00:09:34.242656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.243411"], ["updated_at", "2017-11-11 00:09:34.243411"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.245211"], ["updated_at", "2017-11-11 00:09:34.245211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.247925"], ["updated_at", "2017-11-11 00:09:34.247925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.251699"], ["updated_at", "2017-11-11 00:09:34.251699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.256637"], ["updated_at", "2017-11-11 00:09:34.256637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:34.257389"], ["updated_at", "2017-11-11 00:09:34.257389"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.682533"], ["updated_at", "2017-11-11 00:09:39.682533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:09:39.694465"], ["updated_at", "2017-11-11 00:09:39.694465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.707402"], ["updated_at", "2017-11-11 00:09:39.707402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.708439"], ["updated_at", "2017-11-11 00:09:39.708439"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.710472"], ["updated_at", "2017-11-11 00:09:39.710472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.712871"], ["updated_at", "2017-11-11 00:09:39.712871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.716496"], ["updated_at", "2017-11-11 00:09:39.716496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.721247"], ["updated_at", "2017-11-11 00:09:39.721247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.722039"], ["updated_at", "2017-11-11 00:09:39.722039"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.724604"], ["updated_at", "2017-11-11 00:09:39.724604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.725434"], ["updated_at", "2017-11-11 00:09:39.725434"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.727671"], ["updated_at", "2017-11-11 00:09:39.727671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.728382"], ["updated_at", "2017-11-11 00:09:39.728382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.729115"], ["updated_at", "2017-11-11 00:09:39.729115"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.731469"], ["updated_at", "2017-11-11 00:09:39.731469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:09:39.732275"], ["updated_at", "2017-11-11 00:09:39.732275"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:39.734501"], ["updated_at", "2017-11-11 00:09:39.734501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:39.735211"], ["updated_at", "2017-11-11 00:09:39.735211"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:39.737172"], ["updated_at", "2017-11-11 00:09:39.737172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:39.737954"], ["updated_at", "2017-11-11 00:09:39.737954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.741717"], ["updated_at", "2017-11-11 00:09:39.741717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.742651"], ["updated_at", "2017-11-11 00:09:39.742651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.743375"], ["updated_at", "2017-11-11 00:09:39.743375"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:09:39.745989"], ["updated_at", "2017-11-11 00:09:39.745989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:09:39.748131"], ["updated_at", "2017-11-11 00:09:39.748131"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.761774"], ["updated_at", "2017-11-11 00:09:39.761774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.767636"], ["updated_at", "2017-11-11 00:09:39.767636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.771588"], ["updated_at", "2017-11-11 00:09:39.771588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.772361"], ["updated_at", "2017-11-11 00:09:39.772361"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.774029"], ["updated_at", "2017-11-11 00:09:39.774029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.776396"], ["updated_at", "2017-11-11 00:09:39.776396"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.779851"], ["updated_at", "2017-11-11 00:09:39.779851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.780602"], ["updated_at", "2017-11-11 00:09:39.780602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.785146"], ["updated_at", "2017-11-11 00:09:39.785146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.785981"], ["updated_at", "2017-11-11 00:09:39.785981"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.793623"], ["updated_at", "2017-11-11 00:09:39.793623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.798690"], ["updated_at", "2017-11-11 00:09:39.798690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.803317"], ["updated_at", "2017-11-11 00:09:39.803317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.804172"], ["updated_at", "2017-11-11 00:09:39.804172"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.808887"], ["updated_at", "2017-11-11 00:09:39.808887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.809641"], ["updated_at", "2017-11-11 00:09:39.809641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.815926"], ["updated_at", "2017-11-11 00:09:39.815926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.816669"], ["updated_at", "2017-11-11 00:09:39.816669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:39.829983"], ["updated_at", "2017-11-11 00:09:39.829983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.833953"], ["updated_at", "2017-11-11 00:09:39.833953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.836105"], ["updated_at", "2017-11-11 00:09:39.836105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.844387"], ["updated_at", "2017-11-11 00:09:39.844387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.845173"], ["updated_at", "2017-11-11 00:09:39.845173"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.846858"], ["updated_at", "2017-11-11 00:09:39.846858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.847548"], ["updated_at", "2017-11-11 00:09:39.847548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.857651"], ["updated_at", "2017-11-11 00:09:39.857651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.861435"], ["updated_at", "2017-11-11 00:09:39.861435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.878547"], ["updated_at", "2017-11-11 00:09:39.878547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.879371"], ["updated_at", "2017-11-11 00:09:39.879371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.881199"], ["updated_at", "2017-11-11 00:09:39.881199"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.884272"], ["updated_at", "2017-11-11 00:09:39.884272"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:39.886055"], ["updated_at", "2017-11-11 00:09:39.886055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:39.886834"], ["updated_at", "2017-11-11 00:09:39.886834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:39.888603"], ["updated_at", "2017-11-11 00:09:39.888603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:39.889337"], ["updated_at", "2017-11-11 00:09:39.889337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.895723"], ["updated_at", "2017-11-11 00:09:39.895723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.896454"], ["updated_at", "2017-11-11 00:09:39.896454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.898253"], ["updated_at", "2017-11-11 00:09:39.898253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.901428"], ["updated_at", "2017-11-11 00:09:39.901428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.902206"], ["updated_at", "2017-11-11 00:09:39.902206"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:09:39.905330"], ["updated_at", "2017-11-11 00:09:39.905330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:09:39.906491"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:39.907935"], ["updated_at", "2017-11-11 00:09:39.907935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:09:39.908646"], ["updated_at", "2017-11-11 00:09:39.908646"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:09:39.912020"], ["updated_at", "2017-11-11 00:09:39.912020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.913955"], ["updated_at", "2017-11-11 00:09:39.913955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.920500"], ["updated_at", "2017-11-11 00:09:39.920500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.927162"], ["updated_at", "2017-11-11 00:09:39.927162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:39.938272"], ["updated_at", "2017-11-11 00:09:39.938272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:39.939306"], ["updated_at", "2017-11-11 00:09:39.939306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.940032"], ["updated_at", "2017-11-11 00:09:39.940032"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.941819"], ["updated_at", "2017-11-11 00:09:39.941819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.944197"], ["updated_at", "2017-11-11 00:09:39.944197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:39.945979"], ["updated_at", "2017-11-11 00:09:39.945979"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:09:40.001563"], ["updated_at", "2017-11-11 00:09:40.001563"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:40.028065"], ["updated_at", "2017-11-11 00:09:40.028065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:40.036626"], ["updated_at", "2017-11-11 00:09:40.036626"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:40.039629"], ["updated_at", "2017-11-11 00:09:40.039629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:40.057240"], ["updated_at", "2017-11-11 00:09:40.057240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:09:40.062302"], ["updated_at", "2017-11-11 00:09:40.062302"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:09:40.063264"], ["updated_at", "2017-11-11 00:09:40.063264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.157410"], ["updated_at", "2017-11-11 00:09:43.157410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.190252"], ["updated_at", "2017-11-11 00:09:43.190252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.191318"], ["updated_at", "2017-11-11 00:09:43.191318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.193249"], ["updated_at", "2017-11-11 00:09:43.193249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.196958"], ["updated_at", "2017-11-11 00:09:43.196958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.205203"], ["updated_at", "2017-11-11 00:09:43.205203"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.212544"], ["updated_at", "2017-11-11 00:09:43.212544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:09:43.213310"], ["updated_at", "2017-11-11 00:09:43.213310"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.222109"], ["updated_at", "2017-11-11 00:09:43.222109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:43.227442"], ["updated_at", "2017-11-11 00:09:43.227442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:09:43.228240"], ["updated_at", "2017-11-11 00:09:43.228240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.228871"], ["updated_at", "2017-11-11 00:09:43.228871"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.230537"], ["updated_at", "2017-11-11 00:09:43.230537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.231155"], ["updated_at", "2017-11-11 00:09:43.231155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.231815"], ["updated_at", "2017-11-11 00:09:43.231815"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.236614"], ["updated_at", "2017-11-11 00:09:43.236614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.237569"], ["updated_at", "2017-11-11 00:09:43.237569"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:09:43.240564"], ["updated_at", "2017-11-11 00:09:43.240564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.243011"], ["updated_at", "2017-11-11 00:09:43.243011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:43.247595"], ["updated_at", "2017-11-11 00:09:43.247595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:43.248410"], ["updated_at", "2017-11-11 00:09:43.248410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:43.250220"], ["updated_at", "2017-11-11 00:09:43.250220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:43.251003"], ["updated_at", "2017-11-11 00:09:43.251003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.258177"], ["updated_at", "2017-11-11 00:09:43.258177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:09:43.262919"], ["updated_at", "2017-11-11 00:09:43.262919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:09:43.264734"], ["updated_at", "2017-11-11 00:09:43.264734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.273094"], ["updated_at", "2017-11-11 00:09:43.273094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.274181"], ["updated_at", "2017-11-11 00:09:43.274181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.275001"], ["updated_at", "2017-11-11 00:09:43.275001"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.277834"], ["updated_at", "2017-11-11 00:09:43.277834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.278551"], ["updated_at", "2017-11-11 00:09:43.278551"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.280448"], ["updated_at", "2017-11-11 00:09:43.280448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.283611"], ["updated_at", "2017-11-11 00:09:43.283611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.284323"], ["updated_at", "2017-11-11 00:09:43.284323"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.288212"], ["updated_at", "2017-11-11 00:09:43.288212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.290502"], ["updated_at", "2017-11-11 00:09:43.290502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.293559"], ["updated_at", "2017-11-11 00:09:43.293559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.294485"], ["updated_at", "2017-11-11 00:09:43.294485"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.297272"], ["updated_at", "2017-11-11 00:09:43.297272"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.317585"], ["updated_at", "2017-11-11 00:09:43.317585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.322293"], ["updated_at", "2017-11-11 00:09:43.322293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.324818"], ["updated_at", "2017-11-11 00:09:43.324818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.326828"], ["updated_at", "2017-11-11 00:09:43.326828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.329913"], ["updated_at", "2017-11-11 00:09:43.329913"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:09:43.331648"], ["updated_at", "2017-11-11 00:09:43.331648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:09:43.332379"], ["updated_at", "2017-11-11 00:09:43.332379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:09:43.334150"], ["updated_at", "2017-11-11 00:09:43.334150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:09:43.334912"], ["updated_at", "2017-11-11 00:09:43.334912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.337989"], ["updated_at", "2017-11-11 00:09:43.337989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.338721"], ["updated_at", "2017-11-11 00:09:43.338721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.340865"], ["updated_at", "2017-11-11 00:09:43.340865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.344517"], ["updated_at", "2017-11-11 00:09:43.344517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.348171"], ["updated_at", "2017-11-11 00:09:43.348171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.348941"], ["updated_at", "2017-11-11 00:09:43.348941"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.353007"], ["updated_at", "2017-11-11 00:09:43.353007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.353725"], ["updated_at", "2017-11-11 00:09:43.353725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.365642"], ["updated_at", "2017-11-11 00:09:43.365642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.366446"], ["updated_at", "2017-11-11 00:09:43.366446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.371335"], ["updated_at", "2017-11-11 00:09:43.371335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.372119"], ["updated_at", "2017-11-11 00:09:43.372119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.378439"], ["updated_at", "2017-11-11 00:09:43.378439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.380306"], ["updated_at", "2017-11-11 00:09:43.380306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:09:43.386406"], ["updated_at", "2017-11-11 00:09:43.386406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:09:43.387983"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:43.389234"], ["updated_at", "2017-11-11 00:09:43.389234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:09:43.390149"], ["updated_at", "2017-11-11 00:09:43.390149"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.394566"], ["updated_at", "2017-11-11 00:09:43.394566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.398471"], ["updated_at", "2017-11-11 00:09:43.398471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.399258"], ["updated_at", "2017-11-11 00:09:43.399258"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.401063"], ["updated_at", "2017-11-11 00:09:43.401063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.401853"], ["updated_at", "2017-11-11 00:09:43.401853"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:09:43.414518"], ["updated_at", "2017-11-11 00:09:43.414518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.418635"], ["updated_at", "2017-11-11 00:09:43.418635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.420783"], ["updated_at", "2017-11-11 00:09:43.420783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:09:43.425429"], ["updated_at", "2017-11-11 00:09:43.425429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.434409"], ["updated_at", "2017-11-11 00:09:43.434409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.435185"], ["updated_at", "2017-11-11 00:09:43.435185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.443821"], ["updated_at", "2017-11-11 00:09:43.443821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.444599"], ["updated_at", "2017-11-11 00:09:43.444599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:09:43.616301"], ["updated_at", "2017-11-11 00:09:43.616301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:09:43.617163"], ["updated_at", "2017-11-11 00:09:43.617163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.631227"], ["updated_at", "2017-11-11 00:09:43.631227"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.637333"], ["updated_at", "2017-11-11 00:09:43.637333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.642026"], ["updated_at", "2017-11-11 00:09:43.642026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:09:43.644468"], ["updated_at", "2017-11-11 00:09:43.644468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:09:43.673572"], ["updated_at", "2017-11-11 00:09:43.673572"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.1ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.782959"], ["updated_at", "2017-11-11 00:11:04.782959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.789004"], ["updated_at", "2017-11-11 00:11:04.789004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.791546"], ["updated_at", "2017-11-11 00:11:04.791546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.796347"], ["updated_at", "2017-11-11 00:11:04.796347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:11:04.809253"], ["updated_at", "2017-11-11 00:11:04.809253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:11:04.810139"], ["updated_at", "2017-11-11 00:11:04.810139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:11:04.835642"], ["updated_at", "2017-11-11 00:11:04.835642"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.945462"], ["updated_at", "2017-11-11 00:11:04.945462"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.946687"], ["updated_at", "2017-11-11 00:11:04.946687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.953068"], ["updated_at", "2017-11-11 00:11:04.953068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.954200"], ["updated_at", "2017-11-11 00:11:04.954200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.961165"], ["updated_at", "2017-11-11 00:11:04.961165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.963031"], ["updated_at", "2017-11-11 00:11:04.963031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:11:04.967024"], ["updated_at", "2017-11-11 00:11:04.967024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:11:04.969225"], ["updated_at", "2017-11-11 00:11:04.969225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.977271"], ["updated_at", "2017-11-11 00:11:04.977271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.983843"], ["updated_at", "2017-11-11 00:11:04.983843"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.984711"], ["updated_at", "2017-11-11 00:11:04.984711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.985473"], ["updated_at", "2017-11-11 00:11:04.985473"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.987840"], ["updated_at", "2017-11-11 00:11:04.987840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:04.988604"], ["updated_at", "2017-11-11 00:11:04.988604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:11:04.995305"], ["updated_at", "2017-11-11 00:11:04.995305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:11:04.996708"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:11:04.997654"], ["updated_at", "2017-11-11 00:11:04.997654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:11:04.998498"], ["updated_at", "2017-11-11 00:11:04.998498"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.004691"], ["updated_at", "2017-11-11 00:11:05.004691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:11:05.008861"], ["updated_at", "2017-11-11 00:11:05.008861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:11:05.009770"], ["updated_at", "2017-11-11 00:11:05.009770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:11:05.011531"], ["updated_at", "2017-11-11 00:11:05.011531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:11:05.012360"], ["updated_at", "2017-11-11 00:11:05.012360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.023884"], ["updated_at", "2017-11-11 00:11:05.023884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.026053"], ["updated_at", "2017-11-11 00:11:05.026053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.029052"], ["updated_at", "2017-11-11 00:11:05.029052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.033678"], ["updated_at", "2017-11-11 00:11:05.033678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.034729"], ["updated_at", "2017-11-11 00:11:05.034729"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.037170"], ["updated_at", "2017-11-11 00:11:05.037170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.037875"], ["updated_at", "2017-11-11 00:11:05.037875"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.040371"], ["updated_at", "2017-11-11 00:11:05.040371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.044948"], ["updated_at", "2017-11-11 00:11:05.044948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.052464"], ["updated_at", "2017-11-11 00:11:05.052464"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.053568"], ["updated_at", "2017-11-11 00:11:05.053568"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.055761"], ["updated_at", "2017-11-11 00:11:05.055761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.060003"], ["updated_at", "2017-11-11 00:11:05.060003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.060751"], ["updated_at", "2017-11-11 00:11:05.060751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.062528"], ["updated_at", "2017-11-11 00:11:05.062528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.065540"], ["updated_at", "2017-11-11 00:11:05.065540"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:11:05.070464"], ["updated_at", "2017-11-11 00:11:05.070464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.072624"], ["updated_at", "2017-11-11 00:11:05.072624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.076349"], ["updated_at", "2017-11-11 00:11:05.076349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:11:05.077199"], ["updated_at", "2017-11-11 00:11:05.077199"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.079422"], ["updated_at", "2017-11-11 00:11:05.079422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.080142"], ["updated_at", "2017-11-11 00:11:05.080142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.088515"], ["updated_at", "2017-11-11 00:11:05.088515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.089290"], ["updated_at", "2017-11-11 00:11:05.089290"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:11:05.096438"], ["updated_at", "2017-11-11 00:11:05.096438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.121551"], ["updated_at", "2017-11-11 00:11:05.121551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.135515"], ["updated_at", "2017-11-11 00:11:05.135515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.136452"], ["updated_at", "2017-11-11 00:11:05.136452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.138416"], ["updated_at", "2017-11-11 00:11:05.138416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.141526"], ["updated_at", "2017-11-11 00:11:05.141526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.143362"], ["updated_at", "2017-11-11 00:11:05.143362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.145057"], ["updated_at", "2017-11-11 00:11:05.145057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.148010"], ["updated_at", "2017-11-11 00:11:05.148010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.148765"], ["updated_at", "2017-11-11 00:11:05.148765"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.150575"], ["updated_at", "2017-11-11 00:11:05.150575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.151246"], ["updated_at", "2017-11-11 00:11:05.151246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.151993"], ["updated_at", "2017-11-11 00:11:05.151993"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.161512"], ["updated_at", "2017-11-11 00:11:05.161512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.162280"], ["updated_at", "2017-11-11 00:11:05.162280"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.164698"], ["updated_at", "2017-11-11 00:11:05.164698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.165769"], ["updated_at", "2017-11-11 00:11:05.165769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.177296"], ["updated_at", "2017-11-11 00:11:05.177296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.178522"], ["updated_at", "2017-11-11 00:11:05.178522"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:11:05.180548"], ["updated_at", "2017-11-11 00:11:05.180548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:11:05.181597"], ["updated_at", "2017-11-11 00:11:05.181597"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.182568"], ["updated_at", "2017-11-11 00:11:05.182568"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.185838"], ["updated_at", "2017-11-11 00:11:05.185838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.194411"], ["updated_at", "2017-11-11 00:11:05.194411"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:11:05.197276"], ["updated_at", "2017-11-11 00:11:05.197276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (5.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.214646"], ["updated_at", "2017-11-11 00:11:05.214646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:11:05.219921"], ["updated_at", "2017-11-11 00:11:05.219921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:11:05.220791"], ["updated_at", "2017-11-11 00:11:05.220791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:11:05.222557"], ["updated_at", "2017-11-11 00:11:05.222557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:11:05.223337"], ["updated_at", "2017-11-11 00:11:05.223337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.226654"], ["updated_at", "2017-11-11 00:11:05.226654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:11:05.228590"], ["updated_at", "2017-11-11 00:11:05.228590"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.655121"], ["updated_at", "2017-11-11 00:17:16.655121"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:17:16.677378"], ["updated_at", "2017-11-11 00:17:16.677378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:17:16.678358"], ["updated_at", "2017-11-11 00:17:16.678358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.741835"], ["updated_at", "2017-11-11 00:17:16.741835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.747624"], ["updated_at", "2017-11-11 00:17:16.747624"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.750577"], ["updated_at", "2017-11-11 00:17:16.750577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:17:16.765018"], ["updated_at", "2017-11-11 00:17:16.765018"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.851563"], ["updated_at", "2017-11-11 00:17:16.851563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.852498"], ["updated_at", "2017-11-11 00:17:16.852498"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.859651"], ["updated_at", "2017-11-11 00:17:16.859651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.863773"], ["updated_at", "2017-11-11 00:17:16.863773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.864522"], ["updated_at", "2017-11-11 00:17:16.864522"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.868900"], ["updated_at", "2017-11-11 00:17:16.868900"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.883143"], ["updated_at", "2017-11-11 00:17:16.883143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:17:16.887486"], ["updated_at", "2017-11-11 00:17:16.887486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:17:16.888279"], ["updated_at", "2017-11-11 00:17:16.888279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:17:16.889954"], ["updated_at", "2017-11-11 00:17:16.889954"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:17:16.890747"], ["updated_at", "2017-11-11 00:17:16.890747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.893601"], ["updated_at", "2017-11-11 00:17:16.893601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.897483"], ["updated_at", "2017-11-11 00:17:16.897483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.901360"], ["updated_at", "2017-11-11 00:17:16.901360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.902044"], ["updated_at", "2017-11-11 00:17:16.902044"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.903773"], ["updated_at", "2017-11-11 00:17:16.903773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:17:16.909300"], ["updated_at", "2017-11-11 00:17:16.909300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:17:16.911993"], ["updated_at", "2017-11-11 00:17:16.911993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.920613"], ["updated_at", "2017-11-11 00:17:16.920613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.921637"], ["updated_at", "2017-11-11 00:17:16.921637"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.924184"], ["updated_at", "2017-11-11 00:17:16.924184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.924925"], ["updated_at", "2017-11-11 00:17:16.924925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.929125"], ["updated_at", "2017-11-11 00:17:16.929125"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.929831"], ["updated_at", "2017-11-11 00:17:16.929831"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.931526"], ["updated_at", "2017-11-11 00:17:16.931526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.935843"], ["updated_at", "2017-11-11 00:17:16.935843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.940057"], ["updated_at", "2017-11-11 00:17:16.940057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.945361"], ["updated_at", "2017-11-11 00:17:16.945361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.946116"], ["updated_at", "2017-11-11 00:17:16.946116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.950115"], ["updated_at", "2017-11-11 00:17:16.950115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.950786"], ["updated_at", "2017-11-11 00:17:16.950786"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.952888"], ["updated_at", "2017-11-11 00:17:16.952888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:17:16.953608"], ["updated_at", "2017-11-11 00:17:16.953608"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.958452"], ["updated_at", "2017-11-11 00:17:16.958452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.959414"], ["updated_at", "2017-11-11 00:17:16.959414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.960290"], ["updated_at", "2017-11-11 00:17:16.960290"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.971262"], ["updated_at", "2017-11-11 00:17:16.971262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.973408"], ["updated_at", "2017-11-11 00:17:16.973408"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.976476"], ["updated_at", "2017-11-11 00:17:16.976476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.977262"], ["updated_at", "2017-11-11 00:17:16.977262"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.979386"], ["updated_at", "2017-11-11 00:17:16.979386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.981096"], ["updated_at", "2017-11-11 00:17:16.981096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:17:16.983832"], ["updated_at", "2017-11-11 00:17:16.983832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:17:16.984562"], ["updated_at", "2017-11-11 00:17:16.984562"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.985289"], ["updated_at", "2017-11-11 00:17:16.985289"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:17:16.986948"], ["updated_at", "2017-11-11 00:17:16.986948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:17:16.987655"], ["updated_at", "2017-11-11 00:17:16.987655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:17:16.989206"], ["updated_at", "2017-11-11 00:17:16.989206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:17:16.989906"], ["updated_at", "2017-11-11 00:17:16.989906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.997320"], ["updated_at", "2017-11-11 00:17:16.997320"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:16.999703"], ["updated_at", "2017-11-11 00:17:16.999703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.000522"], ["updated_at", "2017-11-11 00:17:17.000522"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.002449"], ["updated_at", "2017-11-11 00:17:17.002449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.003345"], ["updated_at", "2017-11-11 00:17:17.003345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.004161"], ["updated_at", "2017-11-11 00:17:17.004161"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.007029"], ["updated_at", "2017-11-11 00:17:17.007029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.008115"], ["updated_at", "2017-11-11 00:17:17.008115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.017430"], ["updated_at", "2017-11-11 00:17:17.017430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.018239"], ["updated_at", "2017-11-11 00:17:17.018239"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.030760"], ["updated_at", "2017-11-11 00:17:17.030760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.031709"], ["updated_at", "2017-11-11 00:17:17.031709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.033834"], ["updated_at", "2017-11-11 00:17:17.033834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.036844"], ["updated_at", "2017-11-11 00:17:17.036844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.038566"], ["updated_at", "2017-11-11 00:17:17.038566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.041516"], ["updated_at", "2017-11-11 00:17:17.041516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.043520"], ["updated_at", "2017-11-11 00:17:17.043520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.045366"], ["updated_at", "2017-11-11 00:17:17.045366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.048143"], ["updated_at", "2017-11-11 00:17:17.048143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:17:17.055650"], ["updated_at", "2017-11-11 00:17:17.055650"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:17:17.058071"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:17:17.059233"], ["updated_at", "2017-11-11 00:17:17.059233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:17:17.060170"], ["updated_at", "2017-11-11 00:17:17.060170"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:17:17.065726"], ["updated_at", "2017-11-11 00:17:17.065726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:17:17.071997"], ["updated_at", "2017-11-11 00:17:17.071997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.081599"], ["updated_at", "2017-11-11 00:17:17.081599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.082538"], ["updated_at", "2017-11-11 00:17:17.082538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.084427"], ["updated_at", "2017-11-11 00:17:17.084427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:17:17.087323"], ["updated_at", "2017-11-11 00:17:17.087323"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:17.088932"], ["updated_at", "2017-11-11 00:17:17.088932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.1ms) Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.047324"], ["updated_at", "2017-11-11 00:17:21.047324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.050519"], ["updated_at", "2017-11-11 00:17:21.050519"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.058004"], ["updated_at", "2017-11-11 00:17:21.058004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.059263"], ["updated_at", "2017-11-11 00:17:21.059263"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.061989"], ["updated_at", "2017-11-11 00:17:21.061989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.091058"], ["updated_at", "2017-11-11 00:17:21.091058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.092083"], ["updated_at", "2017-11-11 00:17:21.092083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.108037"], ["updated_at", "2017-11-11 00:17:21.108037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.113095"], ["updated_at", "2017-11-11 00:17:21.113095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.2ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.129609"], ["updated_at", "2017-11-11 00:17:21.129609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.130609"], ["updated_at", "2017-11-11 00:17:21.130609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.131605"], ["updated_at", "2017-11-11 00:17:21.131605"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.139610"], ["updated_at", "2017-11-11 00:17:21.139610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.140621"], ["updated_at", "2017-11-11 00:17:21.140621"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.143693"], ["updated_at", "2017-11-11 00:17:21.143693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.151147"], ["updated_at", "2017-11-11 00:17:21.151147"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:17:21.159086"], ["updated_at", "2017-11-11 00:17:21.159086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:17:21.160237"], ["updated_at", "2017-11-11 00:17:21.160237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.161201"], ["updated_at", "2017-11-11 00:17:21.161201"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:17:21.163604"], ["updated_at", "2017-11-11 00:17:21.163604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:17:21.164589"], ["updated_at", "2017-11-11 00:17:21.164589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:17:21.167021"], ["updated_at", "2017-11-11 00:17:21.167021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:17:21.168302"], ["updated_at", "2017-11-11 00:17:21.168302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.171992"], ["updated_at", "2017-11-11 00:17:21.171992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.172997"], ["updated_at", "2017-11-11 00:17:21.172997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.194921"], ["updated_at", "2017-11-11 00:17:21.194921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.198932"], ["updated_at", "2017-11-11 00:17:21.198932"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.203443"], ["updated_at", "2017-11-11 00:17:21.203443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.204411"], ["updated_at", "2017-11-11 00:17:21.204411"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.207915"], ["updated_at", "2017-11-11 00:17:21.207915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.214026"], ["updated_at", "2017-11-11 00:17:21.214026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.214828"], ["updated_at", "2017-11-11 00:17:21.214828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.223873"], ["updated_at", "2017-11-11 00:17:21.223873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.224585"], ["updated_at", "2017-11-11 00:17:21.224585"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:17:21.226256"], ["updated_at", "2017-11-11 00:17:21.226256"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:17:21.228048"], ["updated_at", "2017-11-11 00:17:21.228048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.236956"], ["updated_at", "2017-11-11 00:17:21.236956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:17:21.237850"], ["updated_at", "2017-11-11 00:17:21.237850"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:17:21.239953"], ["updated_at", "2017-11-11 00:17:21.239953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.241780"], ["updated_at", "2017-11-11 00:17:21.241780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:17:21.246968"], ["updated_at", "2017-11-11 00:17:21.246968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:17:21.248557"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:17:21.250056"], ["updated_at", "2017-11-11 00:17:21.250056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:17:21.250851"], ["updated_at", "2017-11-11 00:17:21.250851"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:17:21.265675"], ["updated_at", "2017-11-11 00:17:21.265675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:17:21.266809"], ["updated_at", "2017-11-11 00:17:21.266809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:17:21.268828"], ["updated_at", "2017-11-11 00:17:21.268828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:17:21.269656"], ["updated_at", "2017-11-11 00:17:21.269656"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.275862"], ["updated_at", "2017-11-11 00:17:21.275862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.277716"], ["updated_at", "2017-11-11 00:17:21.277716"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.282232"], ["updated_at", "2017-11-11 00:17:21.282232"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.284869"], ["updated_at", "2017-11-11 00:17:21.284869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.290159"], ["updated_at", "2017-11-11 00:17:21.290159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.290935"], ["updated_at", "2017-11-11 00:17:21.290935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.291628"], ["updated_at", "2017-11-11 00:17:21.291628"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.293744"], ["updated_at", "2017-11-11 00:17:21.293744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.294418"], ["updated_at", "2017-11-11 00:17:21.294418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.298908"], ["updated_at", "2017-11-11 00:17:21.298908"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.303040"], ["updated_at", "2017-11-11 00:17:21.303040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.304838"], ["updated_at", "2017-11-11 00:17:21.304838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.306725"], ["updated_at", "2017-11-11 00:17:21.306725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.310899"], ["updated_at", "2017-11-11 00:17:21.310899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.312130"], ["updated_at", "2017-11-11 00:17:21.312130"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.315423"], ["updated_at", "2017-11-11 00:17:21.315423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.316487"], ["updated_at", "2017-11-11 00:17:21.316487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.319044"], ["updated_at", "2017-11-11 00:17:21.319044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.322224"], ["updated_at", "2017-11-11 00:17:21.322224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.327149"], ["updated_at", "2017-11-11 00:17:21.327149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.327893"], ["updated_at", "2017-11-11 00:17:21.327893"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:17:21.332249"], ["updated_at", "2017-11-11 00:17:21.332249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:17:21.336904"], ["updated_at", "2017-11-11 00:17:21.336904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.345871"], ["updated_at", "2017-11-11 00:17:21.345871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.346753"], ["updated_at", "2017-11-11 00:17:21.346753"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.348815"], ["updated_at", "2017-11-11 00:17:21.348815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.351002"], ["updated_at", "2017-11-11 00:17:21.351002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.353781"], ["updated_at", "2017-11-11 00:17:21.353781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.355505"], ["updated_at", "2017-11-11 00:17:21.355505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.359654"], ["updated_at", "2017-11-11 00:17:21.359654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.360697"], ["updated_at", "2017-11-11 00:17:21.360697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.392320"], ["updated_at", "2017-11-11 00:17:21.392320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.396868"], ["updated_at", "2017-11-11 00:17:21.396868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.399442"], ["updated_at", "2017-11-11 00:17:21.399442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:17:21.416144"], ["updated_at", "2017-11-11 00:17:21.416144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:17:21.417593"], ["updated_at", "2017-11-11 00:17:21.417593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:17:21.446764"], ["updated_at", "2017-11-11 00:17:21.446764"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:21.449418"], ["updated_at", "2017-11-11 00:17:21.449418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.439771"], ["updated_at", "2017-11-11 00:17:25.439771"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:17:25.511026"], ["updated_at", "2017-11-11 00:17:25.511026"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:17:25.530136"], ["updated_at", "2017-11-11 00:17:25.530136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:17:25.531281"], ["updated_at", "2017-11-11 00:17:25.531281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.558291"], ["updated_at", "2017-11-11 00:17:25.558291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.564281"], ["updated_at", "2017-11-11 00:17:25.564281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.567534"], ["updated_at", "2017-11-11 00:17:25.567534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:17:25.610033"], ["updated_at", "2017-11-11 00:17:25.610033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:17:25.611366"], ["updated_at", "2017-11-11 00:17:25.611366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:17:25.613945"], ["updated_at", "2017-11-11 00:17:25.613945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:17:25.614927"], ["updated_at", "2017-11-11 00:17:25.614927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.623086"], ["updated_at", "2017-11-11 00:17:25.623086"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.624990"], ["updated_at", "2017-11-11 00:17:25.624990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.625699"], ["updated_at", "2017-11-11 00:17:25.625699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.635674"], ["updated_at", "2017-11-11 00:17:25.635674"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.642900"], ["updated_at", "2017-11-11 00:17:25.642900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.649846"], ["updated_at", "2017-11-11 00:17:25.649846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.652071"], ["updated_at", "2017-11-11 00:17:25.652071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:17:25.655188"], ["updated_at", "2017-11-11 00:17:25.655188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:17:25.656226"], ["updated_at", "2017-11-11 00:17:25.656226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.657053"], ["updated_at", "2017-11-11 00:17:25.657053"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.659709"], ["updated_at", "2017-11-11 00:17:25.659709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:17:25.660750"], ["updated_at", "2017-11-11 00:17:25.660750"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.668759"], ["updated_at", "2017-11-11 00:17:25.668759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.669625"], ["updated_at", "2017-11-11 00:17:25.669625"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.671429"], ["updated_at", "2017-11-11 00:17:25.671429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.673909"], ["updated_at", "2017-11-11 00:17:25.673909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:17:25.676996"], ["updated_at", "2017-11-11 00:17:25.676996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:17:25.677894"], ["updated_at", "2017-11-11 00:17:25.677894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:17:25.679544"], ["updated_at", "2017-11-11 00:17:25.679544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:17:25.680321"], ["updated_at", "2017-11-11 00:17:25.680321"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.684032"], ["updated_at", "2017-11-11 00:17:25.684032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:17:25.692486"], ["updated_at", "2017-11-11 00:17:25.692486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:17:25.694722"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:17:25.695870"], ["updated_at", "2017-11-11 00:17:25.695870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:17:25.696611"], ["updated_at", "2017-11-11 00:17:25.696611"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.700218"], ["updated_at", "2017-11-11 00:17:25.700218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.705215"], ["updated_at", "2017-11-11 00:17:25.705215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.705957"], ["updated_at", "2017-11-11 00:17:25.705957"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.708631"], ["updated_at", "2017-11-11 00:17:25.708631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.709737"], ["updated_at", "2017-11-11 00:17:25.709737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.710561"], ["updated_at", "2017-11-11 00:17:25.710561"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.713460"], ["updated_at", "2017-11-11 00:17:25.713460"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.714433"], ["updated_at", "2017-11-11 00:17:25.714433"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.717070"], ["updated_at", "2017-11-11 00:17:25.717070"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.718353"], ["updated_at", "2017-11-11 00:17:25.718353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.720897"], ["updated_at", "2017-11-11 00:17:25.720897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.724398"], ["updated_at", "2017-11-11 00:17:25.724398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.725142"], ["updated_at", "2017-11-11 00:17:25.725142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:17:25.731070"], ["updated_at", "2017-11-11 00:17:25.731070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.744962"], ["updated_at", "2017-11-11 00:17:25.744962"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.746097"], ["updated_at", "2017-11-11 00:17:25.746097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.769455"], ["updated_at", "2017-11-11 00:17:25.769455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.770357"], ["updated_at", "2017-11-11 00:17:25.770357"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.772217"], ["updated_at", "2017-11-11 00:17:25.772217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.776116"], ["updated_at", "2017-11-11 00:17:25.776116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.776879"], ["updated_at", "2017-11-11 00:17:25.776879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.779572"], ["updated_at", "2017-11-11 00:17:25.779572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.782907"], ["updated_at", "2017-11-11 00:17:25.782907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.784813"], ["updated_at", "2017-11-11 00:17:25.784813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.787754"], ["updated_at", "2017-11-11 00:17:25.787754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.793382"], ["updated_at", "2017-11-11 00:17:25.793382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.799268"], ["updated_at", "2017-11-11 00:17:25.799268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.801623"], ["updated_at", "2017-11-11 00:17:25.801623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.803489"], ["updated_at", "2017-11-11 00:17:25.803489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.809345"], ["updated_at", "2017-11-11 00:17:25.809345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.810373"], ["updated_at", "2017-11-11 00:17:25.810373"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:17:25.812992"], ["updated_at", "2017-11-11 00:17:25.812992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.815723"], ["updated_at", "2017-11-11 00:17:25.815723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:17:25.825199"], ["updated_at", "2017-11-11 00:17:25.825199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.837153"], ["updated_at", "2017-11-11 00:17:25.837153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.837973"], ["updated_at", "2017-11-11 00:17:25.837973"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.840351"], ["updated_at", "2017-11-11 00:17:25.840351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.845693"], ["updated_at", "2017-11-11 00:17:25.845693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.849268"], ["updated_at", "2017-11-11 00:17:25.849268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.850012"], ["updated_at", "2017-11-11 00:17:25.850012"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.851717"], ["updated_at", "2017-11-11 00:17:25.851717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.852401"], ["updated_at", "2017-11-11 00:17:25.852401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.853118"], ["updated_at", "2017-11-11 00:17:25.853118"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:17:25.855327"], ["updated_at", "2017-11-11 00:17:25.855327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:17:25.858162"], ["updated_at", "2017-11-11 00:17:25.858162"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.870317"], ["updated_at", "2017-11-11 00:17:25.870317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.874868"], ["updated_at", "2017-11-11 00:17:25.874868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.881060"], ["updated_at", "2017-11-11 00:17:25.881060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.887749"], ["updated_at", "2017-11-11 00:17:25.887749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:17:25.888468"], ["updated_at", "2017-11-11 00:17:25.888468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (1.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (1.5ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"}  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.9ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:03.304532"], ["updated_at", "2017-11-11 00:18:03.304532"]] SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:03.307722"], ["updated_at", "2017-11-11 00:18:03.307722"]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.316748"], ["updated_at", "2017-11-11 00:18:03.316748"]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.348356"], ["updated_at", "2017-11-11 00:18:03.348356"]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.363397"], ["updated_at", "2017-11-11 00:18:03.363397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.365914"], ["updated_at", "2017-11-11 00:18:03.365914"]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.370375"], ["updated_at", "2017-11-11 00:18:03.370375"]] SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.371332"], ["updated_at", "2017-11-11 00:18:03.371332"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.377277"], ["updated_at", "2017-11-11 00:18:03.377277"]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.378284"], ["updated_at", "2017-11-11 00:18:03.378284"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.379538"], ["updated_at", "2017-11-11 00:18:03.379538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.382490"], ["updated_at", "2017-11-11 00:18:03.382490"]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.386742"], ["updated_at", "2017-11-11 00:18:03.386742"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.387753"], ["updated_at", "2017-11-11 00:18:03.387753"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.390522"], ["updated_at", "2017-11-11 00:18:03.390522"]] TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2)))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.394364"], ["updated_at", "2017-11-11 00:18:03.394364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.395614"], ["updated_at", "2017-11-11 00:18:03.395614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.398198"], ["updated_at", "2017-11-11 00:18:03.398198"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.409880"], ["updated_at", "2017-11-11 00:18:03.409880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.410910"], ["updated_at", "2017-11-11 00:18:03.410910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "branches"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.416456"], ["updated_at", "2017-11-11 00:18:03.416456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6)))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:03.422628"], ["updated_at", "2017-11-11 00:18:03.422628"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.422883"], ["updated_at", "2017-11-11 00:18:03.422883"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:03.425330"], ["updated_at", "2017-11-11 00:18:03.425330"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.426624"], ["updated_at", "2017-11-11 00:18:03.426624"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:03.435942"], ["updated_at", "2017-11-11 00:18:03.435942"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.438177"], ["updated_at", "2017-11-11 00:18:03.438177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.442772"], ["updated_at", "2017-11-11 00:18:03.442772"]]  (0.0ms) rollback transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.443775"], ["updated_at", "2017-11-11 00:18:03.443775"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:03.444022"], ["updated_at", "2017-11-11 00:18:03.444022"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.446444"], ["updated_at", "2017-11-11 00:18:03.446444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by ExplicitContextResourceController#index as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.448864"], ["updated_at", "2017-11-11 00:18:03.448864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] Processing by ExplicitContextResourceController#index as HTML  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:03.454583"], ["updated_at", "2017-11-11 00:18:03.454583"]] Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"}  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:18:03.456440"], ["id", 1]] Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) commit transaction Processing by LoadMockObjectsController#show as HTML  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:03.460598"], ["updated_at", "2017-11-11 00:18:03.460598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:03.461695"], ["updated_at", "2017-11-11 00:18:03.461695"]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:03.466000"], ["updated_at", "2017-11-11 00:18:03.466000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:03.466940"], ["updated_at", "2017-11-11 00:18:03.466940"]]  (0.0ms) commit transaction Processing by LoadMockObjectsController#create as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by LoadMockObjectsController#delete as HTML SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:03.469132"], ["updated_at", "2017-11-11 00:18:03.469132"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:03.470068"], ["updated_at", "2017-11-11 00:18:03.470068"]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction Processing by CustomMembersCollectionsResourceController#search as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]] Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]] Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}}  (0.1ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]] Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Rendered text template (0.0ms) SQL (0.0ms) DELETE FROM "companies" Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"}  (0.0ms) begin transaction Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.490292"], ["updated_at", "2017-11-11 00:18:03.490292"]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params ---------------------------------------------------------------  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.491600"], ["updated_at", "2017-11-11 00:18:03.491600"]] Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}}  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index -----------------------------------------------------  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]] Processing by BasicResourcesController#index as HTML  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected SQL (0.0ms) DELETE FROM "test_models" Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.504050"], ["updated_at", "2017-11-11 00:18:03.504050"]]  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.504921"], ["updated_at", "2017-11-11 00:18:03.504921"]] Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}}  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) Rendered text template (0.0ms) SQL (0.0ms) DELETE FROM "test_models" Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.507492"], ["updated_at", "2017-11-11 00:18:03.507492"]] Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"}  (0.1ms) commit transaction  (0.1ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Parameters: {"id"=>"2"}  (0.1ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:03.516240"], ["updated_at", "2017-11-11 00:18:03.516240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#search as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_attrs" ----------------------- HelperTest: test_permit -----------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] Processing by HelperMocksController#action as HTML  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------- HelperTest: test_has_role_with_hierarchy ----------------------------------------  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.537532"], ["updated_at", "2017-11-11 00:18:03.537532"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role -------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Processing by HelperMocksController#action as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.539754"], ["updated_at", "2017-11-11 00:18:03.539754"]]  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.542273"], ["updated_at", "2017-11-11 00:18:03.542273"]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.543487"], ["updated_at", "2017-11-11 00:18:03.543487"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.543445"], ["updated_at", "2017-11-11 00:18:03.543445"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.545937"], ["updated_at", "2017-11-11 00:18:03.545937"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.549014"], ["updated_at", "2017-11-11 00:18:03.549014"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.552761"], ["updated_at", "2017-11-11 00:18:03.552761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.553803"], ["updated_at", "2017-11-11 00:18:03.553803"]] SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:03.554952"], ["updated_at", "2017-11-11 00:18:03.554952"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.561416"], ["updated_at", "2017-11-11 00:18:03.561416"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.563287"], ["updated_at", "2017-11-11 00:18:03.563287"]]  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.564782"], ["updated_at", "2017-11-11 00:18:03.564782"]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.566238"], ["updated_at", "2017-11-11 00:18:03.566238"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.569425"], ["updated_at", "2017-11-11 00:18:03.569425"]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.569651"], ["updated_at", "2017-11-11 00:18:03.569651"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111))  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.577261"], ["updated_at", "2017-11-11 00:18:03.577261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.578423"], ["updated_at", "2017-11-11 00:18:03.578423"]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:03.579442"], ["updated_at", "2017-11-11 00:18:03.579442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.585862"], ["updated_at", "2017-11-11 00:18:03.585862"]] SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.586813"], ["updated_at", "2017-11-11 00:18:03.586813"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.588873"], ["updated_at", "2017-11-11 00:18:03.588873"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6)))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:03.592701"], ["updated_at", "2017-11-11 00:18:03.592701"]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:18:03.594730"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.595401"], ["updated_at", "2017-11-11 00:18:03.595401"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:03.595987"], ["updated_at", "2017-11-11 00:18:03.595987"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]] SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:03.597485"], ["updated_at", "2017-11-11 00:18:03.597485"]]  (0.0ms) commit transaction  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:03.602231"], ["updated_at", "2017-11-11 00:18:03.602231"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.603030"], ["updated_at", "2017-11-11 00:18:03.603030"]] SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:03.603401"], ["updated_at", "2017-11-11 00:18:03.603401"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.604437"], ["updated_at", "2017-11-11 00:18:03.604437"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla'))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.607411"], ["updated_at", "2017-11-11 00:18:03.607411"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.609881"], ["updated_at", "2017-11-11 00:18:03.609881"]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.611734"], ["updated_at", "2017-11-11 00:18:03.611734"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.612004"], ["updated_at", "2017-11-11 00:18:03.612004"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2))  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models" TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1))  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.617945"], ["updated_at", "2017-11-11 00:18:03.617945"]] SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.620177"], ["updated_at", "2017-11-11 00:18:03.620177"]] SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" TestAttr Load (0.5ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2)))  (0.2ms) begin transaction SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:03.628140"], ["updated_at", "2017-11-11 00:18:03.628140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:03.629835"], ["updated_at", "2017-11-11 00:18:03.629835"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.631715"], ["updated_at", "2017-11-11 00:18:03.631715"]] SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.634754"], ["updated_at", "2017-11-11 00:18:03.634754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.641899"], ["updated_at", "2017-11-11 00:18:03.641899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.643327"], ["updated_at", "2017-11-11 00:18:03.643327"]] Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1))  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.644254"], ["updated_at", "2017-11-11 00:18:03.644254"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.647896"], ["updated_at", "2017-11-11 00:18:03.647896"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.649320"], ["updated_at", "2017-11-11 00:18:03.649320"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.652490"], ["updated_at", "2017-11-11 00:18:03.652490"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:03.653129"], ["updated_at", "2017-11-11 00:18:03.653129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:03.654140"], ["updated_at", "2017-11-11 00:18:03.654140"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:03.657456"], ["updated_at", "2017-11-11 00:18:03.657456"]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:03.659193"], ["updated_at", "2017-11-11 00:18:03.659193"]]  (0.0ms) begin transaction  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.660371"], ["updated_at", "2017-11-11 00:18:03.660371"]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.661388"], ["updated_at", "2017-11-11 00:18:03.661388"]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.667154"], ["updated_at", "2017-11-11 00:18:03.667154"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:03.670832"], ["updated_at", "2017-11-11 00:18:03.670832"]]  (0.1ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.671720"], ["updated_at", "2017-11-11 00:18:03.671720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.672950"], ["updated_at", "2017-11-11 00:18:03.672950"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1))  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.675572"], ["updated_at", "2017-11-11 00:18:03.675572"]] SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:03.675271"], ["updated_at", "2017-11-11 00:18:03.675271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.676545"], ["updated_at", "2017-11-11 00:18:03.676545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:03.677070"], ["updated_at", "2017-11-11 00:18:03.677070"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.677602"], ["updated_at", "2017-11-11 00:18:03.677602"]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2))  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:03.680469"], ["updated_at", "2017-11-11 00:18:03.680469"]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.681110"], ["updated_at", "2017-11-11 00:18:03.681110"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:03.682277"], ["updated_at", "2017-11-11 00:18:03.682277"]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.682834"], ["updated_at", "2017-11-11 00:18:03.682834"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.692290"], ["updated_at", "2017-11-11 00:18:03.692290"]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.698516"], ["updated_at", "2017-11-11 00:18:03.698516"]] SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.700200"], ["updated_at", "2017-11-11 00:18:03.700200"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.702092"], ["updated_at", "2017-11-11 00:18:03.702092"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.704142"], ["updated_at", "2017-11-11 00:18:03.704142"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.705219"], ["updated_at", "2017-11-11 00:18:03.705219"]] SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]] SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:03.710329"], ["updated_at", "2017-11-11 00:18:03.710329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]] SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:03.714086"], ["updated_at", "2017-11-11 00:18:03.714086"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.0ms) DELETE FROM "companies"  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]] ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ----------------------------------------------------------------------  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Processing by LoadMockObjectsController#show as HTML TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Processing by LoadMockObjectsController#show as HTML TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) -------------------------------------------------------------------- SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.724442"], ["updated_at", "2017-11-11 00:18:03.724442"]]  (0.0ms) commit transaction Processing by LoadMockObjectsController#view as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.725515"], ["updated_at", "2017-11-11 00:18:03.725515"]] Processing by LoadMockObjectsController#view as HTML  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load -------------------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"}  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.731148"], ["updated_at", "2017-11-11 00:18:03.731148"]]  (0.0ms) commit transaction Processing by LoadMockObjectsController#create as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Rendered text template (0.0ms)  (0.0ms) commit transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.733935"], ["updated_at", "2017-11-11 00:18:03.733935"]]  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected SQL (0.1ms) DELETE FROM "test_attrs" Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"}  (0.1ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.740878"], ["updated_at", "2017-11-11 00:18:03.740878"]]  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.742473"], ["updated_at", "2017-11-11 00:18:03.742473"]]  (0.1ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models" Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index -------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.745895"], ["updated_at", "2017-11-11 00:18:03.745895"]] Processing by ExplicitContextResourceController#index as HTML  (0.1ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]] ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) Processing by AccessOverwritesController#test_action_2 as HTML TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.754467"], ["updated_at", "2017-11-11 00:18:03.754467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.755412"], ["updated_at", "2017-11-11 00:18:03.755412"]] Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.758112"], ["updated_at", "2017-11-11 00:18:03.758112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.759087"], ["updated_at", "2017-11-11 00:18:03.759087"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.762790"], ["updated_at", "2017-11-11 00:18:03.762790"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.766486"], ["updated_at", "2017-11-11 00:18:03.766486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:03.777345"], ["updated_at", "2017-11-11 00:18:03.777345"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.781342"], ["updated_at", "2017-11-11 00:18:03.781342"]]  (0.1ms) commit transaction ----------------------------------------- HelperTest: test_has_role_with_guest_user -----------------------------------------  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by HelperMocksController#action as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:03.790176"], ["updated_at", "2017-11-11 00:18:03.790176"]] ----------------------------------------------- HelperTest: test_permit_with_object_and_context -----------------------------------------------  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]] ----------------------------------- HelperTest: test_permit_with_object -----------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]] Processing by HelperMocksController#action as HTML  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role -------------------------  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]] Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role -----------------------------  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.802455"], ["updated_at", "2017-11-11 00:18:03.802455"]] Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"}  (0.1ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.804022"], ["updated_at", "2017-11-11 00:18:03.804022"]]  (0.0ms) commit transaction Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}}  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.806630"], ["updated_at", "2017-11-11 00:18:03.806630"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:03.812761"], ["updated_at", "2017-11-11 00:18:03.812761"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:03.814036"], ["updated_at", "2017-11-11 00:18:03.814036"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.817626"], ["updated_at", "2017-11-11 00:18:03.817626"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.818972"], ["updated_at", "2017-11-11 00:18:03.818972"]]  (0.0ms) commit transaction  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) commit transaction TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.824397"], ["updated_at", "2017-11-11 00:18:03.824397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.825324"], ["updated_at", "2017-11-11 00:18:03.825324"]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.827432"], ["updated_at", "2017-11-11 00:18:03.827432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.831244"], ["updated_at", "2017-11-11 00:18:03.831244"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.833258"], ["updated_at", "2017-11-11 00:18:03.833258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.835944"], ["updated_at", "2017-11-11 00:18:03.835944"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:03.836736"], ["updated_at", "2017-11-11 00:18:03.836736"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.842984"], ["updated_at", "2017-11-11 00:18:03.842984"]]  (0.0ms) rollback transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.849305"], ["updated_at", "2017-11-11 00:18:03.849305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.850286"], ["updated_at", "2017-11-11 00:18:03.850286"]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.852776"], ["updated_at", "2017-11-11 00:18:03.852776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.856443"], ["updated_at", "2017-11-11 00:18:03.856443"]] TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.859630"], ["updated_at", "2017-11-11 00:18:03.859630"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.860178"], ["updated_at", "2017-11-11 00:18:03.860178"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.862552"], ["updated_at", "2017-11-11 00:18:03.862552"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.865244"], ["updated_at", "2017-11-11 00:18:03.865244"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.865532"], ["updated_at", "2017-11-11 00:18:03.865532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.872216"], ["updated_at", "2017-11-11 00:18:03.872216"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.872418"], ["updated_at", "2017-11-11 00:18:03.872418"]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.883252"], ["updated_at", "2017-11-11 00:18:03.883252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.887961"], ["updated_at", "2017-11-11 00:18:03.887961"]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:03.889022"], ["updated_at", "2017-11-11 00:18:03.889022"]] TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) commit transaction ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models" Processing by BasicResourcesController#index as HTML  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.891786"], ["updated_at", "2017-11-11 00:18:03.891786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.892780"], ["updated_at", "2017-11-11 00:18:03.892780"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:03.894938"], ["updated_at", "2017-11-11 00:18:03.894938"]] BasicResourcesControllerTest: test_basic_filter_new_with_params ---------------------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:03.895910"], ["updated_at", "2017-11-11 00:18:03.895910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}}  (0.0ms) begin transaction Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:03.898189"], ["updated_at", "2017-11-11 00:18:03.898189"]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:03.899313"], ["updated_at", "2017-11-11 00:18:03.899313"]] Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"}  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES Processing by CustomMembersCollectionsResourceController#other_show as HTML  (0.0ms) commit transaction Parameters: {"id"=>"2"}  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"}  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction Processing by CustomMembersCollectionsResourceController#other_new as HTML  (0.0ms) begin transaction Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" Processing by CustomMembersCollectionsResourceController#search as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:03.913552"], ["updated_at", "2017-11-11 00:18:03.913552"]] Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction Processing by PeopleController#show as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by Deep::NameSpaced::ThingsController#show as HTML Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Processing by SpecificMocksController#create as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Rendered text template (0.0ms) Processing by SpecificMocksController#edit_2 as HTML Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Filter chain halted as :filter_access_filter rendered or redirected ------------------------------------------------------ Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#show as HTML Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.743425"], ["updated_at", "2017-11-11 00:18:07.743425"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.747835"], ["updated_at", "2017-11-11 00:18:07.747835"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.800140"], ["updated_at", "2017-11-11 00:18:07.800140"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.5ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.833400"], ["updated_at", "2017-11-11 00:18:07.833400"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.839490"], ["updated_at", "2017-11-11 00:18:07.839490"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:07.841190"], ["updated_at", "2017-11-11 00:18:07.841190"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:07.850439"], ["updated_at", "2017-11-11 00:18:07.850439"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:18:07.852967"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:07.858753"], ["updated_at", "2017-11-11 00:18:07.858753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:07.860300"], ["updated_at", "2017-11-11 00:18:07.860300"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.868526"], ["updated_at", "2017-11-11 00:18:07.868526"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.870148"], ["updated_at", "2017-11-11 00:18:07.870148"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.873918"], ["updated_at", "2017-11-11 00:18:07.873918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.885162"], ["updated_at", "2017-11-11 00:18:07.885162"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.890175"], ["updated_at", "2017-11-11 00:18:07.890175"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.894272"], ["updated_at", "2017-11-11 00:18:07.894272"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.900787"], ["updated_at", "2017-11-11 00:18:07.900787"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.902938"], ["updated_at", "2017-11-11 00:18:07.902938"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.904604"], ["updated_at", "2017-11-11 00:18:07.904604"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.909517"], ["updated_at", "2017-11-11 00:18:07.909517"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.911056"], ["updated_at", "2017-11-11 00:18:07.911056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.919952"], ["updated_at", "2017-11-11 00:18:07.919952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.930743"], ["updated_at", "2017-11-11 00:18:07.930743"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) commit transaction  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:07.950657"], ["updated_at", "2017-11-11 00:18:07.950657"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:07.952607"], ["updated_at", "2017-11-11 00:18:07.952607"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.954175"], ["updated_at", "2017-11-11 00:18:07.954175"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:07.961348"], ["updated_at", "2017-11-11 00:18:07.961348"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.967499"], ["updated_at", "2017-11-11 00:18:07.967499"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:07.971599"], ["updated_at", "2017-11-11 00:18:07.971599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:07.988895"], ["updated_at", "2017-11-11 00:18:07.988895"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:07.990586"], ["updated_at", "2017-11-11 00:18:07.990586"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:07.993666"], ["updated_at", "2017-11-11 00:18:07.993666"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:07.995098"], ["updated_at", "2017-11-11 00:18:07.995098"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime ) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) commit transaction  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:08.009318"], ["updated_at", "2017-11-11 00:18:08.009318"]] Processing by AdditionalMembersCollectionsResourceController#search as HTML  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:08.012867"], ["updated_at", "2017-11-11 00:18:08.012867"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.026962"], ["updated_at", "2017-11-11 00:18:08.026962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.028036"], ["updated_at", "2017-11-11 00:18:08.028036"]] Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"}  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}}  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.031054"], ["updated_at", "2017-11-11 00:18:08.031054"]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.1ms) commit transaction Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.032522"], ["updated_at", "2017-11-11 00:18:08.032522"]]  (0.1ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.1ms) begin transaction Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.036283"], ["updated_at", "2017-11-11 00:18:08.036283"]]  (0.1ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by AccessOverwritesController#test_action_2 as HTML  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.041180"], ["updated_at", "2017-11-11 00:18:08.041180"]]  (0.1ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:08.067313"], ["updated_at", "2017-11-11 00:18:08.067313"]]  (0.1ms) commit transaction Processing by SpecificMocksController#create as HTML  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:08.071133"], ["updated_at", "2017-11-11 00:18:08.071133"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:08.075043"], ["updated_at", "2017-11-11 00:18:08.075043"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:08.076613"], ["updated_at", "2017-11-11 00:18:08.076613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" Processing by SpecificMocksController#action_group_action_2 as HTML SQL (0.1ms) DELETE FROM "test_models" Rendered text template (0.0ms)  (0.1ms) begin transaction Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.081830"], ["updated_at", "2017-11-11 00:18:08.081830"]] Processing by SpecificMocksController#action_group_action_1 as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.082925"], ["updated_at", "2017-11-11 00:18:08.082925"]] ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML  (0.1ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Processing by SpecificMocksController#unprotected_action as HTML Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.085619"], ["updated_at", "2017-11-11 00:18:08.085619"]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction --------------------------------------- BasicControllerTest: test_filter_access ---------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.086599"], ["updated_at", "2017-11-11 00:18:08.086599"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by SpecificMocksController#test_action as HTML SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.087570"], ["updated_at", "2017-11-11 00:18:08.087570"]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Processing by NestedResourcesController#index as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" Rendered text template (0.0ms)  (0.0ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Processing by SpecificMocksController#show as HTML Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.091664"], ["updated_at", "2017-11-11 00:18:08.091664"]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------  (0.0ms) commit transaction  (0.1ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.092941"], ["updated_at", "2017-11-11 00:18:08.092941"]] NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by SpecificMocksController#show as HTML  (0.1ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ Processing by NestedResourcesController#new as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test -----------------------------------------------------------  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#new as HTML Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} SQL (0.1ms) DELETE FROM "test_attrs" ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.102006"], ["updated_at", "2017-11-11 00:18:08.102006"]]  (0.0ms) commit transaction Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"}  (0.0ms) begin transaction Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.103453"], ["updated_at", "2017-11-11 00:18:08.103453"]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.107023"], ["updated_at", "2017-11-11 00:18:08.107023"]]  (0.1ms) commit transaction Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}}  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 3.7ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"}  (0.1ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- SQL (0.1ms) DELETE FROM "test_attrs" Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.115614"], ["updated_at", "2017-11-11 00:18:08.115614"]] Processing by LoadMockObjectsController#create as HTML  (0.1ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.117332"], ["updated_at", "2017-11-11 00:18:08.117332"]]  (0.1ms) commit transaction Processing by CustomMembersCollectionsResourceController#search as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Processing by CustomMembersCollectionsResourceController#search as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Rendered text template (0.0ms) SQL (0.1ms) DELETE FROM "test_models" Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load -------------------------------------------------------------  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.122169"], ["updated_at", "2017-11-11 00:18:08.122169"]] Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Processing by LoadMockObjectsController#show as HTML  (0.1ms) commit transaction Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction Rendered text template (0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by LoadMockObjectsController#edit as HTML SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES Parameters: {"id"=>"1"} ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ----------------------------------------------------------------------  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" Processing by LoadMockObjectsController#show as HTML Processing by LoadMockObjectsController#show as HTML  (0.1ms) begin transaction Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction Processing by LoadMockObjectsController#show as HTML Processing by LoadMockObjectsController#show as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:08.130387"], ["updated_at", "2017-11-11 00:18:08.130387"]]  (0.0ms) commit transaction Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms)  (0.1ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.1ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"}  (0.1ms) begin transaction Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Filter chain halted as :filter_access_filter rendered or redirected SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]] Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML  (0.1ms) commit transaction Rendered text template (0.0ms)  (0.1ms) begin transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms)  (0.0ms) begin transaction  (0.0ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES Processing by LoadMockObjectsController#update as HTML  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.146903"], ["updated_at", "2017-11-11 00:18:08.146903"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.148310"], ["updated_at", "2017-11-11 00:18:08.148310"]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:08.146099"], ["updated_at", "2017-11-11 00:18:08.146099"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2))  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.152073"], ["updated_at", "2017-11-11 00:18:08.152073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.155086"], ["updated_at", "2017-11-11 00:18:08.155086"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.159395"], ["updated_at", "2017-11-11 00:18:08.159395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.160399"], ["updated_at", "2017-11-11 00:18:08.160399"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) rollback transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) rollback transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.169915"], ["updated_at", "2017-11-11 00:18:08.169915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.171039"], ["updated_at", "2017-11-11 00:18:08.171039"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.173104"], ["updated_at", "2017-11-11 00:18:08.173104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.175366"], ["updated_at", "2017-11-11 00:18:08.175366"]]  (0.0ms) commit transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.179487"], ["updated_at", "2017-11-11 00:18:08.179487"]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.180892"], ["updated_at", "2017-11-11 00:18:08.180892"]] SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]] SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:08.193936"], ["updated_at", "2017-11-11 00:18:08.193936"]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.197523"], ["updated_at", "2017-11-11 00:18:08.197523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.204156"], ["updated_at", "2017-11-11 00:18:08.204156"]]  (0.0ms) commit transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.210224"], ["updated_at", "2017-11-11 00:18:08.210224"]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:08.215744"], ["updated_at", "2017-11-11 00:18:08.215744"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.216886"], ["updated_at", "2017-11-11 00:18:08.216886"]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:08.217536"], ["updated_at", "2017-11-11 00:18:08.217536"]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) rollback transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.218501"], ["updated_at", "2017-11-11 00:18:08.218501"]]  (0.0ms) begin transaction  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2))  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.221080"], ["updated_at", "2017-11-11 00:18:08.221080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.221699"], ["updated_at", "2017-11-11 00:18:08.221699"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.223399"], ["updated_at", "2017-11-11 00:18:08.223399"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.227219"], ["updated_at", "2017-11-11 00:18:08.227219"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by LoadMockObjectsController#show as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction Rendered text template (0.0ms) SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.235838"], ["updated_at", "2017-11-11 00:18:08.235838"]]  (0.1ms) commit transaction Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"}  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) commit transaction Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]] Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"}  (0.1ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.239959"], ["updated_at", "2017-11-11 00:18:08.239959"]]  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] Processing by LoadMockObjectsController#delete as HTML SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" Rendered text template (0.0ms) SQL (0.0ms) DELETE FROM "test_attrs" Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2'))  (0.0ms) begin transaction Processing by LoadMockObjectsController#view as HTML  (0.0ms) rollback transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" Processing by LoadMockObjectsController#view as HTML  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attr_throughs" Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES Processing by LoadMockObjectsController#update as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:08.259048"], ["updated_at", "2017-11-11 00:18:08.259048"]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:08.260056"], ["updated_at", "2017-11-11 00:18:08.260056"]]  (0.1ms) commit transaction  (0.0ms) rollback transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:08.260652"], ["updated_at", "2017-11-11 00:18:08.260652"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) rollback transaction  (0.1ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]] SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:08.266704"], ["updated_at", "2017-11-11 00:18:08.266704"]]  (0.0ms) commit transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] SQL (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.275629"], ["updated_at", "2017-11-11 00:18:08.275629"]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (5.6ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.298775"], ["updated_at", "2017-11-11 00:18:08.298775"]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_attr_throughs" TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:08.300938"], ["updated_at", "2017-11-11 00:18:08.300938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:08.302109"], ["updated_at", "2017-11-11 00:18:08.302109"]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PeopleController#show as HTML  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.307283"], ["updated_at", "2017-11-11 00:18:08.307283"]]  (0.0ms) begin transaction Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.312958"], ["updated_at", "2017-11-11 00:18:08.312958"]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.324468"], ["updated_at", "2017-11-11 00:18:08.324468"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]] SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.332934"], ["updated_at", "2017-11-11 00:18:08.332934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.336244"], ["updated_at", "2017-11-11 00:18:08.336244"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]] -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id --------------------------------------------------------------------------------  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 8], ["id", 1]] Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Processing by Name::SpacedThingsController#show as HTML  (0.1ms) rollback transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by Name::SpacedThingsController#show as HTML TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by Name::SpacedThingsController#update as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.348207"], ["updated_at", "2017-11-11 00:18:08.348207"]] Rendered text template (0.0ms)  (0.1ms) commit transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] Processing by AllMocksController#show as HTML SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction Processing by ExplicitContextResourceController#new as HTML  (0.0ms) begin transaction Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Processing by AllMocksController#view as HTML Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Rendered text template (0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES Rendered text template (0.0ms) Processing by AllMocksController#show as HTML Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index -------------------------------------------------------------------------  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction Processing by ExplicitContextResourceController#index as HTML TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"}  (0.1ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ----------------------------------------------------  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Completed 403 Forbidden in 5ms (Views: 2.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Processing by CustomMembersCollectionsResourceController#search as HTML Completed 403 Forbidden in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Parameters: {"id"=>"1"} Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ Rendered text template (0.0ms) ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Processing by ShallowNestedResourcesController#new as HTML Parameters: {"id"=>"2"} Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Rendered text template (0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Rendered text template (0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Processing by HelperMocksController#action as HTML Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.1ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Processing by HelperMocksController#action as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by HelperMocksController#action as HTML Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Filter chain halted as :filter_access_filter rendered or redirected -------------------------------------------- Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#new as HTML ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Parameters: {"basic_resource"=>{"id"=>"1"}} Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by AccessOverwritesController#test_action_2 as HTML Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Processing by Name::SpacedThingsController#show as HTML Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy Filter chain halted as :filter_access_filter rendered or redirected ---------------------------------------- Completed 403 Forbidden in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML ----------------------------------- HelperTest: test_permit_with_object Rendered text template (0.0ms) ----------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by HelperMocksController#action as HTML ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Processing by PeopleController#show as HTML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by HelperMocksController#action as HTML Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by HelperMocksController#action as HTML Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Rendered text template (0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by Deep::NameSpaced::ThingsController#update as HTML ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.426452"], ["updated_at", "2017-11-11 00:18:08.426452"]] Processing by HelperMocksController#action as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.427804"], ["updated_at", "2017-11-11 00:18:08.427804"]] HelperTest: test_has_role_with_hierarchy ----------------------------------------  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models" Processing by HelperMocksController#action as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.431469"], ["updated_at", "2017-11-11 00:18:08.431469"]] -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new --------------------------------------------------------------------------------------------  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.433236"], ["updated_at", "2017-11-11 00:18:08.433236"]]  (0.1ms) commit transaction Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}}  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}}  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}}  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]] Parameters: {"basic_resource"=>{"id"=>"1"}}  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] Processing by AdditionalMembersCollectionsResourceController#index as HTML TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 3)) [["attr", 1]] Processing by AdditionalMembersCollectionsResourceController#index as HTML SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.446896"], ["updated_at", "2017-11-11 00:18:08.446896"]]  (0.0ms) commit transaction Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_models" Processing by AdditionalMembersCollectionsResourceController#show as HTML  (0.1ms) begin transaction Parameters: {"id"=>"2"} Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.449435"], ["updated_at", "2017-11-11 00:18:08.449435"]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.450699"], ["updated_at", "2017-11-11 00:18:08.450699"]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.452040"], ["updated_at", "2017-11-11 00:18:08.452040"]] Rendered text template (0.0ms)  (0.1ms) commit transaction Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" Processing by Name::SpacedThingsController#show as HTML  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.455961"], ["updated_at", "2017-11-11 00:18:08.455961"]]  (0.1ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) Processing by Deep::NameSpaced::ThingsController#show as HTML TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Rendered text template (0.0ms) SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]] Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) Processing by Deep::NameSpaced::ThingsController#update as HTML SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.467023"], ["updated_at", "2017-11-11 00:18:08.467023"]] Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.475359"], ["updated_at", "2017-11-11 00:18:08.475359"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.1ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.480182"], ["updated_at", "2017-11-11 00:18:08.480182"]] Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"}  (0.1ms) commit transaction  (0.1ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.481548"], ["updated_at", "2017-11-11 00:18:08.481548"]] ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params -----------------------------------------------------------------  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.485504"], ["updated_at", "2017-11-11 00:18:08.485504"]] Rendered text template (0.0ms)  (0.1ms) commit transaction Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"}  (0.1ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:08.491049"], ["updated_at", "2017-11-11 00:18:08.491049"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by SpecificMocksController#action_group_action_2 as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:08.493946"], ["updated_at", "2017-11-11 00:18:08.493946"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] Processing by SpecificMocksController#action_group_action_2 as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- SQL (0.1ms) DELETE FROM "test_models" Processing by SpecificMocksController#unprotected_action as HTML SQL (0.0ms) DELETE FROM "test_attrs" Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.507878"], ["updated_at", "2017-11-11 00:18:08.507878"]]  (0.0ms) commit transaction Processing by SpecificMocksController#show as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Processing by SpecificMocksController#edit_2 as HTML  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource -------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]] Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}}  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:08.513261"], ["updated_at", "2017-11-11 00:18:08.513261"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.516049"], ["updated_at", "2017-11-11 00:18:08.516049"]] Rendered text template (0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms) -----------------------------------------------------------------------  (0.0ms) begin transaction StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]] Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction  (0.0ms) begin transaction Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] Processing by HelperMocksController#action as HTML TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:08.527462"], ["updated_at", "2017-11-11 00:18:08.527462"]] -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy --------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:08.529019"], ["updated_at", "2017-11-11 00:18:08.529019"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" Processing by HelperMocksController#action as HTML SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.530558"], ["updated_at", "2017-11-11 00:18:08.530558"]]  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:08.531403"], ["updated_at", "2017-11-11 00:18:08.531403"]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.531761"], ["updated_at", "2017-11-11 00:18:08.531761"]]  (0.1ms) commit transaction ----------------------------- HelperTest: test_has_any_role -----------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:08.532738"], ["updated_at", "2017-11-11 00:18:08.532738"]] Processing by HelperMocksController#action as HTML  (0.1ms) commit transaction  (0.1ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role -------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Processing by HelperMocksController#action as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction ----------------------------------------------- HelperTest: test_permit_with_object_and_context -----------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]] Processing by HelperMocksController#action as HTML  (0.0ms) commit transaction Rendered text template (0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction ---------------------------------------- HelperTest: test_has_role_with_hierarchy ----------------------------------------  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" Processing by AllMocksController#show as HTML SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.544225"], ["updated_at", "2017-11-11 00:18:08.544225"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by AllMocksController#view as HTML SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3))  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.547242"], ["updated_at", "2017-11-11 00:18:08.547242"]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.547820"], ["updated_at", "2017-11-11 00:18:08.547820"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.549258"], ["updated_at", "2017-11-11 00:18:08.549258"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.550880"], ["updated_at", "2017-11-11 00:18:08.550880"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"}  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] Rendered text template (0.0ms)  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML TestAttr Load (0.5ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Load (0.5ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected SQL (0.0ms) DELETE FROM "test_attrs" Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Processing by BasicResourcesController#index as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.556835"], ["updated_at", "2017-11-11 00:18:08.556835"]] Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------  (0.0ms) commit transaction BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:08.557245"], ["updated_at", "2017-11-11 00:18:08.557245"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}}  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.561530"], ["updated_at", "2017-11-11 00:18:08.561530"]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.564456"], ["updated_at", "2017-11-11 00:18:08.564456"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_attrs" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:08.568919"], ["updated_at", "2017-11-11 00:18:08.568919"]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2))  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:08.570774"], ["updated_at", "2017-11-11 00:18:08.570774"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.573041"], ["updated_at", "2017-11-11 00:18:08.573041"]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:08.574091"], ["updated_at", "2017-11-11 00:18:08.574091"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:08.575364"], ["updated_at", "2017-11-11 00:18:08.575364"]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) begin transaction  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1'))  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:08.579979"], ["updated_at", "2017-11-11 00:18:08.579979"]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:08.580883"], ["updated_at", "2017-11-11 00:18:08.580883"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:18:08.582027"], ["id", 1]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:08.582646"], ["updated_at", "2017-11-11 00:18:08.582646"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:08.583869"], ["updated_at", "2017-11-11 00:18:08.583869"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.584282"], ["updated_at", "2017-11-11 00:18:08.584282"]]  (0.0ms) begin transaction  (0.2ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:08.585612"], ["updated_at", "2017-11-11 00:18:08.585612"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1))  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.591256"], ["updated_at", "2017-11-11 00:18:08.591256"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.592429"], ["updated_at", "2017-11-11 00:18:08.592429"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.592826"], ["updated_at", "2017-11-11 00:18:08.592826"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.601007"], ["updated_at", "2017-11-11 00:18:08.601007"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.601088"], ["updated_at", "2017-11-11 00:18:08.601088"]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.602488"], ["updated_at", "2017-11-11 00:18:08.602488"]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.605950"], ["updated_at", "2017-11-11 00:18:08.605950"]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.607369"], ["updated_at", "2017-11-11 00:18:08.607369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.608467"], ["updated_at", "2017-11-11 00:18:08.608467"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.611734"], ["updated_at", "2017-11-11 00:18:08.611734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.610547"], ["updated_at", "2017-11-11 00:18:08.610547"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.619137"], ["updated_at", "2017-11-11 00:18:08.619137"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.620023"], ["updated_at", "2017-11-11 00:18:08.620023"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.621509"], ["updated_at", "2017-11-11 00:18:08.621509"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.626121"], ["updated_at", "2017-11-11 00:18:08.626121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.627494"], ["updated_at", "2017-11-11 00:18:08.627494"]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5))) SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6)))  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:08.634855"], ["updated_at", "2017-11-11 00:18:08.634855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:08.639470"], ["updated_at", "2017-11-11 00:18:08.639470"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.640033"], ["updated_at", "2017-11-11 00:18:08.640033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.640990"], ["updated_at", "2017-11-11 00:18:08.640990"]] SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1))  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.643669"], ["updated_at", "2017-11-11 00:18:08.643669"]] SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.650846"], ["updated_at", "2017-11-11 00:18:08.650846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.652053"], ["updated_at", "2017-11-11 00:18:08.652053"]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:08.656276"], ["updated_at", "2017-11-11 00:18:08.656276"]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:18:08.658600"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:08.660058"], ["updated_at", "2017-11-11 00:18:08.660058"]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:08.661541"], ["updated_at", "2017-11-11 00:18:08.661541"]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.665336"], ["updated_at", "2017-11-11 00:18:08.665336"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.667691"], ["updated_at", "2017-11-11 00:18:08.667691"]]  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.669541"], ["updated_at", "2017-11-11 00:18:08.669541"]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1))  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.673899"], ["updated_at", "2017-11-11 00:18:08.673899"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.675346"], ["updated_at", "2017-11-11 00:18:08.675346"]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.678838"], ["updated_at", "2017-11-11 00:18:08.678838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.679425"], ["updated_at", "2017-11-11 00:18:08.679425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.681985"], ["updated_at", "2017-11-11 00:18:08.681985"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.685847"], ["updated_at", "2017-11-11 00:18:08.685847"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.687207"], ["updated_at", "2017-11-11 00:18:08.687207"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.687123"], ["updated_at", "2017-11-11 00:18:08.687123"]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.690080"], ["updated_at", "2017-11-11 00:18:08.690080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.694624"], ["updated_at", "2017-11-11 00:18:08.694624"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.695290"], ["updated_at", "2017-11-11 00:18:08.695290"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.696755"], ["updated_at", "2017-11-11 00:18:08.696755"]]  (0.0ms) begin transaction  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.697752"], ["updated_at", "2017-11-11 00:18:08.697752"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:08.702826"], ["updated_at", "2017-11-11 00:18:08.702826"]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:08.703827"], ["updated_at", "2017-11-11 00:18:08.703827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.704796"], ["updated_at", "2017-11-11 00:18:08.704796"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.707421"], ["updated_at", "2017-11-11 00:18:08.707421"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.707987"], ["updated_at", "2017-11-11 00:18:08.707987"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.710781"], ["updated_at", "2017-11-11 00:18:08.710781"]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.712162"], ["updated_at", "2017-11-11 00:18:08.712162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.713140"], ["updated_at", "2017-11-11 00:18:08.713140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.714021"], ["updated_at", "2017-11-11 00:18:08.714021"]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.715167"], ["updated_at", "2017-11-11 00:18:08.715167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.716279"], ["updated_at", "2017-11-11 00:18:08.716279"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.721385"], ["updated_at", "2017-11-11 00:18:08.721385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.722379"], ["updated_at", "2017-11-11 00:18:08.722379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.724416"], ["updated_at", "2017-11-11 00:18:08.724416"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.724668"], ["updated_at", "2017-11-11 00:18:08.724668"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.727045"], ["updated_at", "2017-11-11 00:18:08.727045"]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.730996"], ["updated_at", "2017-11-11 00:18:08.730996"]] SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.732090"], ["updated_at", "2017-11-11 00:18:08.732090"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.734556"], ["updated_at", "2017-11-11 00:18:08.734556"]] SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.739759"], ["updated_at", "2017-11-11 00:18:08.739759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.740810"], ["updated_at", "2017-11-11 00:18:08.740810"]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.744559"], ["updated_at", "2017-11-11 00:18:08.744559"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.744986"], ["updated_at", "2017-11-11 00:18:08.744986"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.751203"], ["updated_at", "2017-11-11 00:18:08.751203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:08.746110"], ["updated_at", "2017-11-11 00:18:08.746110"]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.755517"], ["updated_at", "2017-11-11 00:18:08.755517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.759033"], ["updated_at", "2017-11-11 00:18:08.759033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:08.762933"], ["updated_at", "2017-11-11 00:18:08.762933"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.763439"], ["updated_at", "2017-11-11 00:18:08.763439"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:08.765458"], ["updated_at", "2017-11-11 00:18:08.765458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:08.773380"], ["updated_at", "2017-11-11 00:18:08.773380"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:08.776017"], ["updated_at", "2017-11-11 00:18:08.776017"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:08.777406"], ["updated_at", "2017-11-11 00:18:08.777406"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.778377"], ["updated_at", "2017-11-11 00:18:08.778377"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.779407"], ["updated_at", "2017-11-11 00:18:08.779407"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:08.779885"], ["updated_at", "2017-11-11 00:18:08.779885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:08.781028"], ["updated_at", "2017-11-11 00:18:08.781028"]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.782120"], ["updated_at", "2017-11-11 00:18:08.782120"]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.787957"], ["updated_at", "2017-11-11 00:18:08.787957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.788967"], ["updated_at", "2017-11-11 00:18:08.788967"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.790827"], ["updated_at", "2017-11-11 00:18:08.790827"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.791137"], ["updated_at", "2017-11-11 00:18:08.791137"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.796171"], ["updated_at", "2017-11-11 00:18:08.796171"]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:08.797558"], ["updated_at", "2017-11-11 00:18:08.797558"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.798207"], ["updated_at", "2017-11-11 00:18:08.798207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.799629"], ["updated_at", "2017-11-11 00:18:08.799629"]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.801420"], ["updated_at", "2017-11-11 00:18:08.801420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.802796"], ["updated_at", "2017-11-11 00:18:08.802796"]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.804048"], ["updated_at", "2017-11-11 00:18:08.804048"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1))  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.805428"], ["updated_at", "2017-11-11 00:18:08.805428"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.805243"], ["updated_at", "2017-11-11 00:18:08.805243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.806356"], ["updated_at", "2017-11-11 00:18:08.806356"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))  (0.0ms) begin transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.809067"], ["updated_at", "2017-11-11 00:18:08.809067"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.810034"], ["updated_at", "2017-11-11 00:18:08.810034"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.811032"], ["updated_at", "2017-11-11 00:18:08.811032"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]] SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:08.820371"], ["updated_at", "2017-11-11 00:18:08.820371"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.822979"], ["updated_at", "2017-11-11 00:18:08.822979"]] SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]] SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]] Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch'))  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.841387"], ["updated_at", "2017-11-11 00:18:08.841387"]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.844646"], ["updated_at", "2017-11-11 00:18:08.844646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.845977"], ["updated_at", "2017-11-11 00:18:08.845977"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ----------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.848572"], ["updated_at", "2017-11-11 00:18:08.848572"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by CommonChild2Controller#show as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by CommonChild2Controller#delete as HTML SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:08.853276"], ["updated_at", "2017-11-11 00:18:08.853276"]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:08.854530"], ["updated_at", "2017-11-11 00:18:08.854530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"}  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:08.857041"], ["updated_at", "2017-11-11 00:18:08.857041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:08.858237"], ["updated_at", "2017-11-11 00:18:08.858237"]]  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.862558"], ["updated_at", "2017-11-11 00:18:08.862558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.865099"], ["updated_at", "2017-11-11 00:18:08.865099"]] -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index --------------------------------------------------------------  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.868325"], ["updated_at", "2017-11-11 00:18:08.868325"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:08.873241"], ["updated_at", "2017-11-11 00:18:08.873241"]]  (0.0ms) commit transaction Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"}  (0.0ms) begin transaction Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#new as HTML Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#edit_2 as HTML Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions Rendered text template (0.0ms) ----------------------------------------------------- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by SpecificMocksController#create as HTML Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.671948"], ["updated_at", "2017-11-11 00:18:12.671948"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.682174"], ["updated_at", "2017-11-11 00:18:12.682174"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.689739"], ["updated_at", "2017-11-11 00:18:12.689739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.690961"], ["updated_at", "2017-11-11 00:18:12.690961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.741512"], ["updated_at", "2017-11-11 00:18:12.741512"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.754981"], ["updated_at", "2017-11-11 00:18:12.754981"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.756057"], ["updated_at", "2017-11-11 00:18:12.756057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.768377"], ["updated_at", "2017-11-11 00:18:12.768377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.773441"], ["updated_at", "2017-11-11 00:18:12.773441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.774462"], ["updated_at", "2017-11-11 00:18:12.774462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.777646"], ["updated_at", "2017-11-11 00:18:12.777646"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.782742"], ["updated_at", "2017-11-11 00:18:12.782742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.788417"], ["updated_at", "2017-11-11 00:18:12.788417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.789877"], ["updated_at", "2017-11-11 00:18:12.789877"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.793305"], ["updated_at", "2017-11-11 00:18:12.793305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.798041"], ["updated_at", "2017-11-11 00:18:12.798041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.801408"], ["updated_at", "2017-11-11 00:18:12.801408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.806886"], ["updated_at", "2017-11-11 00:18:12.806886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.807979"], ["updated_at", "2017-11-11 00:18:12.807979"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.810386"], ["updated_at", "2017-11-11 00:18:12.810386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.811817"], ["updated_at", "2017-11-11 00:18:12.811817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.813098"], ["updated_at", "2017-11-11 00:18:12.813098"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.836827"], ["updated_at", "2017-11-11 00:18:12.836827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.837977"], ["updated_at", "2017-11-11 00:18:12.837977"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.842238"], ["updated_at", "2017-11-11 00:18:12.842238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.854473"], ["updated_at", "2017-11-11 00:18:12.854473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.863351"], ["updated_at", "2017-11-11 00:18:12.863351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.871156"], ["updated_at", "2017-11-11 00:18:12.871156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.872296"], ["updated_at", "2017-11-11 00:18:12.872296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.875540"], ["updated_at", "2017-11-11 00:18:12.875540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.898380"], ["updated_at", "2017-11-11 00:18:12.898380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.899849"], ["updated_at", "2017-11-11 00:18:12.899849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:12.914323"], ["updated_at", "2017-11-11 00:18:12.914323"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:12.916950"], ["updated_at", "2017-11-11 00:18:12.916950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:12.920731"], ["updated_at", "2017-11-11 00:18:12.920731"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:12.922017"], ["updated_at", "2017-11-11 00:18:12.922017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.933183"], ["updated_at", "2017-11-11 00:18:12.933183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.934577"], ["updated_at", "2017-11-11 00:18:12.934577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:12.941881"], ["updated_at", "2017-11-11 00:18:12.941881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:12.942983"], ["updated_at", "2017-11-11 00:18:12.942983"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:12.945697"], ["updated_at", "2017-11-11 00:18:12.945697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:12.946978"], ["updated_at", "2017-11-11 00:18:12.946978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.952435"], ["updated_at", "2017-11-11 00:18:12.952435"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.959914"], ["updated_at", "2017-11-11 00:18:12.959914"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.966122"], ["updated_at", "2017-11-11 00:18:12.966122"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.968616"], ["updated_at", "2017-11-11 00:18:12.968616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.969850"], ["updated_at", "2017-11-11 00:18:12.969850"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.973062"], ["updated_at", "2017-11-11 00:18:12.973062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.974039"], ["updated_at", "2017-11-11 00:18:12.974039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:12.988733"], ["updated_at", "2017-11-11 00:18:12.988733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:12.989870"], ["updated_at", "2017-11-11 00:18:12.989870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.991134"], ["updated_at", "2017-11-11 00:18:12.991134"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:12.994154"], ["updated_at", "2017-11-11 00:18:12.994154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.001420"], ["updated_at", "2017-11-11 00:18:13.001420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.002777"], ["updated_at", "2017-11-11 00:18:13.002777"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.004848"], ["updated_at", "2017-11-11 00:18:13.004848"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.008828"], ["updated_at", "2017-11-11 00:18:13.008828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.009910"], ["updated_at", "2017-11-11 00:18:13.009910"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:13.014489"], ["updated_at", "2017-11-11 00:18:13.014489"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.019412"], ["updated_at", "2017-11-11 00:18:13.019412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.024778"], ["updated_at", "2017-11-11 00:18:13.024778"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:13.034452"], ["updated_at", "2017-11-11 00:18:13.034452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:18:13.037531"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:13.039421"], ["updated_at", "2017-11-11 00:18:13.039421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:13.040584"], ["updated_at", "2017-11-11 00:18:13.040584"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.044968"], ["updated_at", "2017-11-11 00:18:13.044968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.047805"], ["updated_at", "2017-11-11 00:18:13.047805"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:13.053844"], ["updated_at", "2017-11-11 00:18:13.053844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.068452"], ["updated_at", "2017-11-11 00:18:13.068452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:13.069735"], ["updated_at", "2017-11-11 00:18:13.069735"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:13.080757"], ["updated_at", "2017-11-11 00:18:13.080757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:13.086271"], ["updated_at", "2017-11-11 00:18:13.086271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:13.089685"], ["updated_at", "2017-11-11 00:18:13.089685"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.108995"], ["updated_at", "2017-11-11 00:18:13.108995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.110299"], ["updated_at", "2017-11-11 00:18:13.110299"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.113385"], ["updated_at", "2017-11-11 00:18:13.113385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.117455"], ["updated_at", "2017-11-11 00:18:13.117455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.121994"], ["updated_at", "2017-11-11 00:18:13.121994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.125187"], ["updated_at", "2017-11-11 00:18:13.125187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:13.197484"], ["updated_at", "2017-11-11 00:18:13.197484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:13.198750"], ["updated_at", "2017-11-11 00:18:13.198750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.219703"], ["updated_at", "2017-11-11 00:18:13.219703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.244926"], ["updated_at", "2017-11-11 00:18:13.244926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.253719"], ["updated_at", "2017-11-11 00:18:13.253719"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.258966"], ["updated_at", "2017-11-11 00:18:13.258966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:13.295702"], ["updated_at", "2017-11-11 00:18:13.295702"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:13.753311"], ["updated_at", "2017-11-11 00:18:13.753311"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.788937"], ["updated_at", "2017-11-11 00:18:13.788937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.0ms) commit transaction  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:13.828687"], ["updated_at", "2017-11-11 00:18:13.828687"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:13.829871"], ["updated_at", "2017-11-11 00:18:13.829871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]] Processing by AllMocksController#show as HTML  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.858726"], ["updated_at", "2017-11-11 00:18:13.858726"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.868060"], ["updated_at", "2017-11-11 00:18:13.868060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.871337"], ["updated_at", "2017-11-11 00:18:13.871337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction Processing by Deep::NameSpaced::ThingsController#show as HTML  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] Processing by Deep::NameSpaced::ThingsController#update as HTML SQL (0.0ms) DELETE FROM "test_attrs" Rendered text template (0.0ms) SQL (0.0ms) DELETE FROM "test_model_security_models" Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "branches" Processing by Deep::NameSpaced::ThingsController#update as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Processing by BasicResourcesController#index as HTML Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.926879"], ["updated_at", "2017-11-11 00:18:13.926879"]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#search as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Rendered text template (0.0ms)  (0.1ms) commit transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#index as HTML SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.930025"], ["updated_at", "2017-11-11 00:18:13.930025"]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) commit transaction Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] Processing by AdditionalMembersCollectionsResourceController#index as HTML  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Processing by Name::SpacedThingsController#show as HTML SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:13.934385"], ["updated_at", "2017-11-11 00:18:13.934385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:13.935576"], ["updated_at", "2017-11-11 00:18:13.935576"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.936777"], ["updated_at", "2017-11-11 00:18:13.936777"]] Processing by Name::SpacedThingsController#show as HTML  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) Rendered text template (0.0ms) SQL (0.0ms) DELETE FROM "test_models" Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.939708"], ["updated_at", "2017-11-11 00:18:13.939708"]]  (0.0ms) commit transaction ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index -------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction Processing by ExplicitContextResourceController#index as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) Rendered text template (0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by ExplicitContextResourceController#index as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.944731"], ["updated_at", "2017-11-11 00:18:13.944731"]]  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.945938"], ["updated_at", "2017-11-11 00:18:13.945938"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]] Rendered text template (0.0ms)  (0.0ms) commit transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.958342"], ["updated_at", "2017-11-11 00:18:13.958342"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:13.964830"], ["updated_at", "2017-11-11 00:18:13.964830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.963467"], ["updated_at", "2017-11-11 00:18:13.963467"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.967411"], ["updated_at", "2017-11-11 00:18:13.967411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.972173"], ["updated_at", "2017-11-11 00:18:13.972173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.973121"], ["updated_at", "2017-11-11 00:18:13.973121"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.975920"], ["updated_at", "2017-11-11 00:18:13.975920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.978349"], ["updated_at", "2017-11-11 00:18:13.978349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.982037"], ["updated_at", "2017-11-11 00:18:13.982037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.989541"], ["updated_at", "2017-11-11 00:18:13.989541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:13.990547"], ["updated_at", "2017-11-11 00:18:13.990547"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:13.993359"], ["updated_at", "2017-11-11 00:18:13.993359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:13.994287"], ["updated_at", "2017-11-11 00:18:13.994287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:13.996353"], ["updated_at", "2017-11-11 00:18:13.996353"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:13.997639"], ["updated_at", "2017-11-11 00:18:13.997639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.001774"], ["updated_at", "2017-11-11 00:18:14.001774"]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3))  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.005990"], ["updated_at", "2017-11-11 00:18:14.005990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.014664"], ["updated_at", "2017-11-11 00:18:14.014664"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "branches"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]] SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.024119"], ["updated_at", "2017-11-11 00:18:14.024119"]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.025253"], ["updated_at", "2017-11-11 00:18:14.025253"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.028527"], ["updated_at", "2017-11-11 00:18:14.028527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:14.038091"], ["updated_at", "2017-11-11 00:18:14.038091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.051064"], ["updated_at", "2017-11-11 00:18:14.051064"]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.052287"], ["updated_at", "2017-11-11 00:18:14.052287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:14.055251"], ["updated_at", "2017-11-11 00:18:14.055251"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.055691"], ["updated_at", "2017-11-11 00:18:14.055691"]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.061520"], ["updated_at", "2017-11-11 00:18:14.061520"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.062227"], ["updated_at", "2017-11-11 00:18:14.062227"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.063108"], ["updated_at", "2017-11-11 00:18:14.063108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.063654"], ["updated_at", "2017-11-11 00:18:14.063654"]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.6ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:14.078823"], ["updated_at", "2017-11-11 00:18:14.078823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:18:14.080689"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:14.081902"], ["updated_at", "2017-11-11 00:18:14.081902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:14.082815"], ["updated_at", "2017-11-11 00:18:14.082815"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.083969"], ["updated_at", "2017-11-11 00:18:14.083969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.085067"], ["updated_at", "2017-11-11 00:18:14.085067"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.087750"], ["updated_at", "2017-11-11 00:18:14.087750"]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.093946"], ["updated_at", "2017-11-11 00:18:14.093946"]] SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.099726"], ["updated_at", "2017-11-11 00:18:14.099726"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.102331"], ["updated_at", "2017-11-11 00:18:14.102331"]] SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3))  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.103757"], ["updated_at", "2017-11-11 00:18:14.103757"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.106153"], ["updated_at", "2017-11-11 00:18:14.106153"]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.109805"], ["updated_at", "2017-11-11 00:18:14.109805"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.114123"], ["updated_at", "2017-11-11 00:18:14.114123"]]  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.115310"], ["updated_at", "2017-11-11 00:18:14.115310"]] SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.116816"], ["updated_at", "2017-11-11 00:18:14.116816"]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.117994"], ["updated_at", "2017-11-11 00:18:14.117994"]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.2ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:14.121414"], ["updated_at", "2017-11-11 00:18:14.121414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:14.122503"], ["updated_at", "2017-11-11 00:18:14.122503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:14.124374"], ["updated_at", "2017-11-11 00:18:14.124374"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:14.125446"], ["updated_at", "2017-11-11 00:18:14.125446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.129646"], ["updated_at", "2017-11-11 00:18:14.129646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.135261"], ["updated_at", "2017-11-11 00:18:14.135261"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.136539"], ["updated_at", "2017-11-11 00:18:14.136539"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.137263"], ["updated_at", "2017-11-11 00:18:14.137263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.139773"], ["updated_at", "2017-11-11 00:18:14.139773"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.139945"], ["updated_at", "2017-11-11 00:18:14.139945"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.140831"], ["updated_at", "2017-11-11 00:18:14.140831"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2)))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:14.143704"], ["updated_at", "2017-11-11 00:18:14.143704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:14.144752"], ["updated_at", "2017-11-11 00:18:14.144752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:14.147157"], ["updated_at", "2017-11-11 00:18:14.147157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:14.148142"], ["updated_at", "2017-11-11 00:18:14.148142"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.151814"], ["updated_at", "2017-11-11 00:18:14.151814"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.157858"], ["updated_at", "2017-11-11 00:18:14.157858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.158846"], ["updated_at", "2017-11-11 00:18:14.158846"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:14.160186"], ["updated_at", "2017-11-11 00:18:14.160186"]]  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.161490"], ["updated_at", "2017-11-11 00:18:14.161490"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.165452"], ["updated_at", "2017-11-11 00:18:14.165452"]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.166494"], ["updated_at", "2017-11-11 00:18:14.166494"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.166761"], ["updated_at", "2017-11-11 00:18:14.166761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.167721"], ["updated_at", "2017-11-11 00:18:14.167721"]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.168783"], ["updated_at", "2017-11-11 00:18:14.168783"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.169742"], ["updated_at", "2017-11-11 00:18:14.169742"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.172986"], ["updated_at", "2017-11-11 00:18:14.172986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.174017"], ["updated_at", "2017-11-11 00:18:14.174017"]] SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1))  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.179406"], ["updated_at", "2017-11-11 00:18:14.179406"]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.180507"], ["updated_at", "2017-11-11 00:18:14.180507"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.180659"], ["updated_at", "2017-11-11 00:18:14.180659"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.182730"], ["updated_at", "2017-11-11 00:18:14.182730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.185279"], ["updated_at", "2017-11-11 00:18:14.185279"]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.186267"], ["updated_at", "2017-11-11 00:18:14.186267"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.186563"], ["updated_at", "2017-11-11 00:18:14.186563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:14.187580"], ["updated_at", "2017-11-11 00:18:14.187580"]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.188479"], ["updated_at", "2017-11-11 00:18:14.188479"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.189359"], ["updated_at", "2017-11-11 00:18:14.189359"]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.190386"], ["updated_at", "2017-11-11 00:18:14.190386"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.191330"], ["updated_at", "2017-11-11 00:18:14.191330"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.194001"], ["updated_at", "2017-11-11 00:18:14.194001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.194994"], ["updated_at", "2017-11-11 00:18:14.194994"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.197178"], ["updated_at", "2017-11-11 00:18:14.197178"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.197334"], ["updated_at", "2017-11-11 00:18:14.197334"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.198226"], ["updated_at", "2017-11-11 00:18:14.198226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.199111"], ["updated_at", "2017-11-11 00:18:14.199111"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.199621"], ["updated_at", "2017-11-11 00:18:14.199621"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2))  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.202042"], ["updated_at", "2017-11-11 00:18:14.202042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.202949"], ["updated_at", "2017-11-11 00:18:14.202949"]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.203796"], ["updated_at", "2017-11-11 00:18:14.203796"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.203944"], ["updated_at", "2017-11-11 00:18:14.203944"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.211027"], ["updated_at", "2017-11-11 00:18:14.211027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.211970"], ["updated_at", "2017-11-11 00:18:14.211970"]]  (0.0ms) commit transaction  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2))  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:14.213838"], ["updated_at", "2017-11-11 00:18:14.213838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:14.215025"], ["updated_at", "2017-11-11 00:18:14.215025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]] SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:14.217455"], ["updated_at", "2017-11-11 00:18:14.217455"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.225036"], ["updated_at", "2017-11-11 00:18:14.225036"]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.227354"], ["updated_at", "2017-11-11 00:18:14.227354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.229866"], ["updated_at", "2017-11-11 00:18:14.229866"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.230809"], ["updated_at", "2017-11-11 00:18:14.230809"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.231770"], ["updated_at", "2017-11-11 00:18:14.231770"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.233816"], ["updated_at", "2017-11-11 00:18:14.233816"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.237200"], ["updated_at", "2017-11-11 00:18:14.237200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.239470"], ["updated_at", "2017-11-11 00:18:14.239470"]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:14.240596"], ["updated_at", "2017-11-11 00:18:14.240596"]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.241274"], ["updated_at", "2017-11-11 00:18:14.241274"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.242261"], ["updated_at", "2017-11-11 00:18:14.242261"]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.243258"], ["updated_at", "2017-11-11 00:18:14.243258"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.243682"], ["updated_at", "2017-11-11 00:18:14.243682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.244523"], ["updated_at", "2017-11-11 00:18:14.244523"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.245958"], ["updated_at", "2017-11-11 00:18:14.245958"]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.247092"], ["updated_at", "2017-11-11 00:18:14.247092"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.247084"], ["updated_at", "2017-11-11 00:18:14.247084"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2)))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:14.250552"], ["updated_at", "2017-11-11 00:18:14.250552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Name::SpacedThingsController#show as HTML SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:18:14.251958"], ["id", 1]] Rendering text template  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by Name::SpacedThingsController#show as HTML SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:14.253426"], ["updated_at", "2017-11-11 00:18:14.253426"]]  (0.0ms) commit transaction Rendering text template Rendered text template (0.0ms)  (0.0ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:14.254378"], ["updated_at", "2017-11-11 00:18:14.254378"]] Processing by Name::SpacedThingsController#update as HTML  (0.1ms) commit transaction Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}}  (0.0ms) begin transaction Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:14.258451"], ["updated_at", "2017-11-11 00:18:14.258451"]] Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:14.261651"], ["updated_at", "2017-11-11 00:18:14.261651"]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]] Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"}  (0.0ms) commit transaction Rendering text template Rendered text template (0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_models" Processing by AdditionalMembersCollectionsResourceController#index as HTML SQL (0.0ms) DELETE FROM "test_attrs" Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.272047"], ["updated_at", "2017-11-11 00:18:14.272047"]] Rendering text template Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#index as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.273046"], ["updated_at", "2017-11-11 00:18:14.273046"]] Rendering text template Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by AllMocksController#show as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction Processing by AllMocksController#show as HTML Rendering text template TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) Processing by NestedResourcesController#index as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] Parameters: {"parent_mock_id"=>"2"} SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:14.280544"], ["updated_at", "2017-11-11 00:18:14.280544"]]  (0.0ms) commit transaction Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"}  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:14.281577"], ["updated_at", "2017-11-11 00:18:14.281577"]] Rendering text template Rendered text template (0.0ms)  (0.0ms) commit transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.282448"], ["updated_at", "2017-11-11 00:18:14.282448"]]  (0.0ms) commit transaction Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.284575"], ["updated_at", "2017-11-11 00:18:14.284575"]]  (0.0ms) commit transaction  (0.1ms) begin transaction Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendering text template SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.286786"], ["updated_at", "2017-11-11 00:18:14.286786"]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------  (0.0ms) begin transaction Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"}  (0.0ms) begin transaction Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.290175"], ["updated_at", "2017-11-11 00:18:14.290175"]] --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id ---------------------------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendering text template Rendered text template (0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.292593"], ["updated_at", "2017-11-11 00:18:14.292593"]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index --------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.295230"], ["updated_at", "2017-11-11 00:18:14.295230"]]  (0.0ms) commit transaction Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"}  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) commit transaction Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.300260"], ["updated_at", "2017-11-11 00:18:14.300260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.301382"], ["updated_at", "2017-11-11 00:18:14.301382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.302320"], ["updated_at", "2017-11-11 00:18:14.302320"]]  (0.0ms) commit transaction Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id -----------------------------------------------------------------------------------------  (0.0ms) begin transaction Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:14.305709"], ["updated_at", "2017-11-11 00:18:14.305709"]]  (0.0ms) commit transaction Rendering text template  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:14.306791"], ["updated_at", "2017-11-11 00:18:14.306791"]] Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by AccessOverwritesController#test_action_2 as HTML SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:14.309055"], ["updated_at", "2017-11-11 00:18:14.309055"]]  (0.0ms) commit transaction Rendering text template  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:14.310062"], ["updated_at", "2017-11-11 00:18:14.310062"]] Processing by AccessOverwritesController#test_action as HTML  (0.0ms) commit transaction Rendering text template Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction Rendering text template TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------- HelperTest: test_permit -----------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:14.317785"], ["updated_at", "2017-11-11 00:18:14.317785"]] Processing by HelperMocksController#action as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.320273"], ["updated_at", "2017-11-11 00:18:14.320273"]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction ----------------------------------- HelperTest: test_permit_with_object -----------------------------------  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] Rendering text template Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) Processing by HelperMocksController#action as HTML SQL (0.0ms) DELETE FROM "test_models" Rendering text template Rendered text template (0.0ms) SQL (0.0ms) DELETE FROM "test_attrs" Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role -------------------------  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.324874"], ["updated_at", "2017-11-11 00:18:14.324874"]]  (0.0ms) commit transaction Rendering text template Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.325821"], ["updated_at", "2017-11-11 00:18:14.325821"]]  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" Processing by HelperMocksController#action as HTML  (0.0ms) begin transaction Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.328624"], ["updated_at", "2017-11-11 00:18:14.328624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML Rendering text template SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.329756"], ["updated_at", "2017-11-11 00:18:14.329756"]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.332184"], ["updated_at", "2017-11-11 00:18:14.332184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:14.469906"], ["updated_at", "2017-11-11 00:18:14.469906"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.472605"], ["updated_at", "2017-11-11 00:18:14.472605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:14.494192"], ["updated_at", "2017-11-11 00:18:14.494192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:14.495194"], ["updated_at", "2017-11-11 00:18:14.495194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.521802"], ["updated_at", "2017-11-11 00:18:14.521802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.528246"], ["updated_at", "2017-11-11 00:18:14.528246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:14.531586"], ["updated_at", "2017-11-11 00:18:14.531586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.578636"], ["updated_at", "2017-11-11 00:18:16.578636"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:16.606597"], ["updated_at", "2017-11-11 00:18:16.606597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:16.607576"], ["updated_at", "2017-11-11 00:18:16.607576"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.658801"], ["updated_at", "2017-11-11 00:18:16.658801"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.664539"], ["updated_at", "2017-11-11 00:18:16.664539"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.667310"], ["updated_at", "2017-11-11 00:18:16.667310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:16.685060"], ["updated_at", "2017-11-11 00:18:16.685060"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 9], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.826217"], ["updated_at", "2017-11-11 00:18:16.826217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.827250"], ["updated_at", "2017-11-11 00:18:16.827250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 3) OR ("test_attrs_test_models_2"."id" = 3)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.832856"], ["updated_at", "2017-11-11 00:18:16.832856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.837644"], ["updated_at", "2017-11-11 00:18:16.837644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.840255"], ["updated_at", "2017-11-11 00:18:16.840255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.843270"], ["updated_at", "2017-11-11 00:18:16.843270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.844054"], ["updated_at", "2017-11-11 00:18:16.844054"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.844725"], ["updated_at", "2017-11-11 00:18:16.844725"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.846987"], ["updated_at", "2017-11-11 00:18:16.846987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.850222"], ["updated_at", "2017-11-11 00:18:16.850222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.850918"], ["updated_at", "2017-11-11 00:18:16.850918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.861573"], ["updated_at", "2017-11-11 00:18:16.861573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.868399"], ["updated_at", "2017-11-11 00:18:16.868399"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.869169"], ["updated_at", "2017-11-11 00:18:16.869169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.878738"], ["updated_at", "2017-11-11 00:18:16.878738"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.880652"], ["updated_at", "2017-11-11 00:18:16.880652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.881391"], ["updated_at", "2017-11-11 00:18:16.881391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.882106"], ["updated_at", "2017-11-11 00:18:16.882106"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:16.891376"], ["updated_at", "2017-11-11 00:18:16.891376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.901183"], ["updated_at", "2017-11-11 00:18:16.901183"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.901959"], ["updated_at", "2017-11-11 00:18:16.901959"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:16.919150"], ["updated_at", "2017-11-11 00:18:16.919150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:18:16.920578"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:16.921619"], ["updated_at", "2017-11-11 00:18:16.921619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:16.922406"], ["updated_at", "2017-11-11 00:18:16.922406"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.926313"], ["updated_at", "2017-11-11 00:18:16.926313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:16.934300"], ["updated_at", "2017-11-11 00:18:16.934300"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.938572"], ["updated_at", "2017-11-11 00:18:16.938572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.940838"], ["updated_at", "2017-11-11 00:18:16.940838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.945716"], ["updated_at", "2017-11-11 00:18:16.945716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.946516"], ["updated_at", "2017-11-11 00:18:16.946516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.951417"], ["updated_at", "2017-11-11 00:18:16.951417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.952178"], ["updated_at", "2017-11-11 00:18:16.952178"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.954001"], ["updated_at", "2017-11-11 00:18:16.954001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.959097"], ["updated_at", "2017-11-11 00:18:16.959097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.964053"], ["updated_at", "2017-11-11 00:18:16.964053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.964938"], ["updated_at", "2017-11-11 00:18:16.964938"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.966715"], ["updated_at", "2017-11-11 00:18:16.966715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.967434"], ["updated_at", "2017-11-11 00:18:16.967434"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.970250"], ["updated_at", "2017-11-11 00:18:16.970250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.972838"], ["updated_at", "2017-11-11 00:18:16.972838"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.974742"], ["updated_at", "2017-11-11 00:18:16.974742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.978283"], ["updated_at", "2017-11-11 00:18:16.978283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.983441"], ["updated_at", "2017-11-11 00:18:16.983441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.989978"], ["updated_at", "2017-11-11 00:18:16.989978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.990847"], ["updated_at", "2017-11-11 00:18:16.990847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:16.992902"], ["updated_at", "2017-11-11 00:18:16.992902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.000645"], ["updated_at", "2017-11-11 00:18:17.000645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.001861"], ["updated_at", "2017-11-11 00:18:17.001861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.004556"], ["updated_at", "2017-11-11 00:18:17.004556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.008336"], ["updated_at", "2017-11-11 00:18:17.008336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.009114"], ["updated_at", "2017-11-11 00:18:17.009114"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.011571"], ["updated_at", "2017-11-11 00:18:17.011571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:17.012361"], ["updated_at", "2017-11-11 00:18:17.012361"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.014523"], ["updated_at", "2017-11-11 00:18:17.014523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.016677"], ["updated_at", "2017-11-11 00:18:17.016677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.020299"], ["updated_at", "2017-11-11 00:18:17.020299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.021266"], ["updated_at", "2017-11-11 00:18:17.021266"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:17.023422"], ["updated_at", "2017-11-11 00:18:17.023422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:17.025672"], ["updated_at", "2017-11-11 00:18:17.025672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.043947"], ["updated_at", "2017-11-11 00:18:17.043947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:17.049094"], ["updated_at", "2017-11-11 00:18:17.049094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.051222"], ["updated_at", "2017-11-11 00:18:17.051222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.3ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.055215"], ["updated_at", "2017-11-11 00:18:17.055215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.056158"], ["updated_at", "2017-11-11 00:18:17.056158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.065998"], ["updated_at", "2017-11-11 00:18:17.065998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.066851"], ["updated_at", "2017-11-11 00:18:17.066851"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:17.069131"], ["updated_at", "2017-11-11 00:18:17.069131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:17.070534"], ["updated_at", "2017-11-11 00:18:17.070534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:17.072781"], ["updated_at", "2017-11-11 00:18:17.072781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:17.073709"], ["updated_at", "2017-11-11 00:18:17.073709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:17.077288"], ["updated_at", "2017-11-11 00:18:17.077288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:17.078193"], ["updated_at", "2017-11-11 00:18:17.078193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:17.079813"], ["updated_at", "2017-11-11 00:18:17.079813"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:17.080771"], ["updated_at", "2017-11-11 00:18:17.080771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.088014"], ["updated_at", "2017-11-11 00:18:17.088014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:17.094054"], ["updated_at", "2017-11-11 00:18:17.094054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:17.095096"], ["updated_at", "2017-11-11 00:18:17.095096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:17.095969"], ["updated_at", "2017-11-11 00:18:17.095969"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:35.606443"], ["updated_at", "2017-11-11 00:18:35.606443"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:18:35.617312"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:35.627133"], ["updated_at", "2017-11-11 00:18:35.627133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:35.628140"], ["updated_at", "2017-11-11 00:18:35.628140"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:35.638981"], ["updated_at", "2017-11-11 00:18:35.638981"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.653575"], ["updated_at", "2017-11-11 00:18:35.653575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.654893"], ["updated_at", "2017-11-11 00:18:35.654893"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.657254"], ["updated_at", "2017-11-11 00:18:35.657254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.661753"], ["updated_at", "2017-11-11 00:18:35.661753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.666214"], ["updated_at", "2017-11-11 00:18:35.666214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.667085"], ["updated_at", "2017-11-11 00:18:35.667085"]]  (0.0ms) commit transaction  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.0ms) begin transaction  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 ) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.0ms) commit transaction  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.674378"], ["updated_at", "2017-11-11 00:18:35.674378"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:35.680944"], ["updated_at", "2017-11-11 00:18:35.680944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.684516"], ["updated_at", "2017-11-11 00:18:35.684516"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.693050"], ["updated_at", "2017-11-11 00:18:35.693050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.694003"], ["updated_at", "2017-11-11 00:18:35.694003"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.696887"], ["updated_at", "2017-11-11 00:18:35.696887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.697763"], ["updated_at", "2017-11-11 00:18:35.697763"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.700566"], ["updated_at", "2017-11-11 00:18:35.700566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.708722"], ["updated_at", "2017-11-11 00:18:35.708722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.709761"], ["updated_at", "2017-11-11 00:18:35.709761"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.712091"], ["updated_at", "2017-11-11 00:18:35.712091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}}  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]] Rendered text template (0.0ms)  (0.0ms) commit transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show -------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.730138"], ["updated_at", "2017-11-11 00:18:35.730138"]]  (0.0ms) commit transaction Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"}  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.731140"], ["updated_at", "2017-11-11 00:18:35.731140"]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) commit transaction Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.732345"], ["updated_at", "2017-11-11 00:18:35.732345"]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) Processing by CustomMembersCollectionsResourceController#search as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) Rendered text template (0.0ms) SQL (0.0ms) DELETE FROM "test_models" Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.736184"], ["updated_at", "2017-11-11 00:18:35.736184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.739892"], ["updated_at", "2017-11-11 00:18:35.739892"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.743570"], ["updated_at", "2017-11-11 00:18:35.743570"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) begin transaction  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.750374"], ["updated_at", "2017-11-11 00:18:35.750374"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.749690"], ["updated_at", "2017-11-11 00:18:35.749690"]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.753205"], ["updated_at", "2017-11-11 00:18:35.753205"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.754438"], ["updated_at", "2017-11-11 00:18:35.754438"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.757380"], ["updated_at", "2017-11-11 00:18:35.757380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.762491"], ["updated_at", "2017-11-11 00:18:35.762491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.764023"], ["updated_at", "2017-11-11 00:18:35.764023"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.767467"], ["updated_at", "2017-11-11 00:18:35.767467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.770497"], ["updated_at", "2017-11-11 00:18:35.770497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.786067"], ["updated_at", "2017-11-11 00:18:35.786067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.787057"], ["updated_at", "2017-11-11 00:18:35.787057"]] SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:35.790058"], ["updated_at", "2017-11-11 00:18:35.790058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:35.791158"], ["updated_at", "2017-11-11 00:18:35.791158"]] SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.792071"], ["updated_at", "2017-11-11 00:18:35.792071"]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.796527"], ["updated_at", "2017-11-11 00:18:35.796527"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2))  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.803170"], ["updated_at", "2017-11-11 00:18:35.803170"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:35.804141"], ["updated_at", "2017-11-11 00:18:35.804141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.806744"], ["updated_at", "2017-11-11 00:18:35.806744"]] SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.807602"], ["updated_at", "2017-11-11 00:18:35.807602"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.812019"], ["updated_at", "2017-11-11 00:18:35.812019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.815230"], ["updated_at", "2017-11-11 00:18:35.815230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.816291"], ["updated_at", "2017-11-11 00:18:35.816291"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.816315"], ["updated_at", "2017-11-11 00:18:35.816315"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.822202"], ["updated_at", "2017-11-11 00:18:35.822202"]] SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.823208"], ["updated_at", "2017-11-11 00:18:35.823208"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.824152"], ["updated_at", "2017-11-11 00:18:35.824152"]]  (0.0ms) begin transaction  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.827274"], ["updated_at", "2017-11-11 00:18:35.827274"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.828695"], ["updated_at", "2017-11-11 00:18:35.828695"]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2))  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] SQL (0.0ms) DELETE FROM "branches"  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.833449"], ["updated_at", "2017-11-11 00:18:35.833449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.834728"], ["updated_at", "2017-11-11 00:18:35.834728"]] SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:35.834597"], ["updated_at", "2017-11-11 00:18:35.834597"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:35.836130"], ["updated_at", "2017-11-11 00:18:35.836130"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:35.838366"], ["updated_at", "2017-11-11 00:18:35.838366"]] SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:35.839356"], ["updated_at", "2017-11-11 00:18:35.839356"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.843443"], ["updated_at", "2017-11-11 00:18:35.843443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:35.851761"], ["updated_at", "2017-11-11 00:18:35.851761"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:35.852881"], ["updated_at", "2017-11-11 00:18:35.852881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:35.854636"], ["updated_at", "2017-11-11 00:18:35.854636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.864101"], ["updated_at", "2017-11-11 00:18:35.864101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.864762"], ["updated_at", "2017-11-11 00:18:35.864762"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.865090"], ["updated_at", "2017-11-11 00:18:35.865090"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.865716"], ["updated_at", "2017-11-11 00:18:35.865716"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.867711"], ["updated_at", "2017-11-11 00:18:35.867711"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.868384"], ["updated_at", "2017-11-11 00:18:35.868384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2)))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.870793"], ["updated_at", "2017-11-11 00:18:35.870793"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:35.871524"], ["updated_at", "2017-11-11 00:18:35.871524"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.874237"], ["updated_at", "2017-11-11 00:18:35.874237"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.874453"], ["updated_at", "2017-11-11 00:18:35.874453"]]  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.875425"], ["updated_at", "2017-11-11 00:18:35.875425"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.876461"], ["updated_at", "2017-11-11 00:18:35.876461"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.879527"], ["updated_at", "2017-11-11 00:18:35.879527"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.879916"], ["updated_at", "2017-11-11 00:18:35.879916"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.883706"], ["updated_at", "2017-11-11 00:18:35.883706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.884608"], ["updated_at", "2017-11-11 00:18:35.884608"]] SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.886658"], ["updated_at", "2017-11-11 00:18:35.886658"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1))  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5))) SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.893495"], ["updated_at", "2017-11-11 00:18:35.893495"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6)))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.894481"], ["updated_at", "2017-11-11 00:18:35.894481"]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.897634"], ["updated_at", "2017-11-11 00:18:35.897634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.901368"], ["updated_at", "2017-11-11 00:18:35.901368"]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.904126"], ["updated_at", "2017-11-11 00:18:35.904126"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:35.905994"], ["updated_at", "2017-11-11 00:18:35.905994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:35.908322"], ["updated_at", "2017-11-11 00:18:35.908322"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.911178"], ["updated_at", "2017-11-11 00:18:35.911178"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.918791"], ["updated_at", "2017-11-11 00:18:35.918791"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.919426"], ["updated_at", "2017-11-11 00:18:35.919426"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.920385"], ["updated_at", "2017-11-11 00:18:35.920385"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.923367"], ["updated_at", "2017-11-11 00:18:35.923367"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111))  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5))) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:35.928654"], ["updated_at", "2017-11-11 00:18:35.928654"]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:35.929735"], ["updated_at", "2017-11-11 00:18:35.929735"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.929837"], ["updated_at", "2017-11-11 00:18:35.929837"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.930752"], ["updated_at", "2017-11-11 00:18:35.930752"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:35.932285"], ["updated_at", "2017-11-11 00:18:35.932285"]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:35.933817"], ["updated_at", "2017-11-11 00:18:35.933817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.934168"], ["updated_at", "2017-11-11 00:18:35.934168"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.939669"], ["updated_at", "2017-11-11 00:18:35.939669"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.942108"], ["updated_at", "2017-11-11 00:18:35.942108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.944380"], ["updated_at", "2017-11-11 00:18:35.944380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:35.941265"], ["updated_at", "2017-11-11 00:18:35.941265"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:35.946606"], ["updated_at", "2017-11-11 00:18:35.946606"]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.948161"], ["updated_at", "2017-11-11 00:18:35.948161"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:35.949411"], ["updated_at", "2017-11-11 00:18:35.949411"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:35.950779"], ["updated_at", "2017-11-11 00:18:35.950779"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.950895"], ["updated_at", "2017-11-11 00:18:35.950895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.954680"], ["updated_at", "2017-11-11 00:18:35.954680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.955627"], ["updated_at", "2017-11-11 00:18:35.955627"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.959192"], ["updated_at", "2017-11-11 00:18:35.959192"]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:35.960425"], ["updated_at", "2017-11-11 00:18:35.960425"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.960446"], ["updated_at", "2017-11-11 00:18:35.960446"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.961616"], ["updated_at", "2017-11-11 00:18:35.961616"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.966703"], ["updated_at", "2017-11-11 00:18:35.966703"]] SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.972875"], ["updated_at", "2017-11-11 00:18:35.972875"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:35.973618"], ["updated_at", "2017-11-11 00:18:35.973618"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.973925"], ["updated_at", "2017-11-11 00:18:35.973925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:35.974753"], ["updated_at", "2017-11-11 00:18:35.974753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.975645"], ["updated_at", "2017-11-11 00:18:35.975645"]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla'))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.977960"], ["updated_at", "2017-11-11 00:18:35.977960"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.978909"], ["updated_at", "2017-11-11 00:18:35.978909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.981274"], ["updated_at", "2017-11-11 00:18:35.981274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:35.982983"], ["updated_at", "2017-11-11 00:18:35.982983"]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction ------------------------------------------  (0.0ms) begin transaction DeepNameSpacedControllerTest: test_context ------------------------------------------ SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction Processing by Deep::NameSpaced::ThingsController#show as HTML  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by PeopleController#show as HTML  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.995033"], ["updated_at", "2017-11-11 00:18:35.995033"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.996162"], ["updated_at", "2017-11-11 00:18:35.996162"]]  (0.1ms) commit transaction ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.998364"], ["updated_at", "2017-11-11 00:18:35.998364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by SpecificMocksController#test_action as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:35.999336"], ["updated_at", "2017-11-11 00:18:35.999336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.006444"], ["updated_at", "2017-11-11 00:18:36.006444"]] ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test -----------------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions -----------------------------------------------------  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by SpecificMocksController#create as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.008997"], ["updated_at", "2017-11-11 00:18:36.008997"]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ----------------------------------------------------------------------  (0.1ms) begin transaction Processing by SpecificMocksController#action_group_action_2 as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_attrs" Processing by SpecificMocksController#action_group_action_2 as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.013014"], ["updated_at", "2017-11-11 00:18:36.013014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by SpecificMocksController#show as HTML SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.015470"], ["updated_at", "2017-11-11 00:18:36.015470"]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.021217"], ["updated_at", "2017-11-11 00:18:36.021217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.022636"], ["updated_at", "2017-11-11 00:18:36.022636"]]  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.024726"], ["updated_at", "2017-11-11 00:18:36.024726"]] ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction Processing by AllMocksController#show as HTML TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.028551"], ["updated_at", "2017-11-11 00:18:36.028551"]] Processing by AllMocksController#view as HTML Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.035076"], ["updated_at", "2017-11-11 00:18:36.035076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.036210"], ["updated_at", "2017-11-11 00:18:36.036210"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.039530"], ["updated_at", "2017-11-11 00:18:36.039530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:36.040680"], ["updated_at", "2017-11-11 00:18:36.040680"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.043408"], ["updated_at", "2017-11-11 00:18:36.043408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.044533"], ["updated_at", "2017-11-11 00:18:36.044533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.054004"], ["updated_at", "2017-11-11 00:18:36.054004"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:36.068099"], ["updated_at", "2017-11-11 00:18:36.068099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:36.069153"], ["updated_at", "2017-11-11 00:18:36.069153"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:36.071923"], ["updated_at", "2017-11-11 00:18:36.071923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:36.072978"], ["updated_at", "2017-11-11 00:18:36.072978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.081718"], ["updated_at", "2017-11-11 00:18:36.081718"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.083262"], ["updated_at", "2017-11-11 00:18:36.083262"]]  (0.1ms) commit transaction ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:36.087645"], ["updated_at", "2017-11-11 00:18:36.087645"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:18:36.089184"], ["id", 1]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:36.090750"], ["updated_at", "2017-11-11 00:18:36.090750"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:36.091742"], ["updated_at", "2017-11-11 00:18:36.091742"]]  (0.0ms) commit transaction Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"}  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.095969"], ["updated_at", "2017-11-11 00:18:36.095969"]] Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction Processing by ShallowNestedResourcesController#show as HTML  (0.0ms) begin transaction Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.097041"], ["updated_at", "2017-11-11 00:18:36.097041"]] -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index --------------------------------------------------------------  (0.0ms) commit transaction Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"}  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"}  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]] Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] ----------------------------------------------- HelperTest: test_permit_with_object_and_context -----------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]] Processing by HelperMocksController#action as HTML  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" Rendered text template (0.0ms) SQL (0.0ms) DELETE FROM "test_attrs" Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by Deep::NameSpaced::ThingsController#show as HTML Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Rendered text template (0.0ms) Processing by HelperMocksController#action as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by HelperMocksController#action as HTML Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Rendered text template (0.0ms) Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by HelperMocksController#action as HTML ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by PeopleController#show as HTML Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Rendered text template (0.0ms) Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Processing by ShallowNestedResourcesController#additional_member_action as HTML Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"}  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES ----------------------------- HelperTest: test_has_any_role -----------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user -----------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML  (0.0ms) rollback transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] Rendered text template (0.0ms) SQL (0.1ms) DELETE FROM "test_attrs" Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.150067"], ["updated_at", "2017-11-11 00:18:36.150067"]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------  (0.0ms) begin transaction Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction Processing by SpecificMocksController#edit_2 as HTML  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.161732"], ["updated_at", "2017-11-11 00:18:36.161732"]] Processing by SpecificMocksController#test_action as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.1ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.165797"], ["updated_at", "2017-11-11 00:18:36.165797"]] Processing by SpecificMocksController#show as HTML  (0.1ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.0ms) begin transaction ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.186023"], ["updated_at", "2017-11-11 00:18:36.186023"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:36.201806"], ["updated_at", "2017-11-11 00:18:36.201806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:36.202974"], ["updated_at", "2017-11-11 00:18:36.202974"]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index -----------------------------------------------------  (0.0ms) begin transaction Processing by BasicResourcesController#index as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Rendered text template (0.0ms)  (0.0ms) commit transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) commit transaction Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs" Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"}  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]] -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new --------------------------------------------------------------------------------------------  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 6], ["id", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}}  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:36.224950"], ["updated_at", "2017-11-11 00:18:36.224950"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Processing by ExplicitContextResourceController#index as HTML SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected -------------------------------------------------------------------------------------------- Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Rendered text template (0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:36.237596"], ["updated_at", "2017-11-11 00:18:36.237596"]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} SQL (0.1ms) DELETE FROM "test_models" Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"}  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"}  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES Processing by AdditionalMembersCollectionsResourceController#search as HTML  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]] Processing by AdditionalMembersCollectionsResourceController#index as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction Processing by AccessOverwritesController#test_action_2 as HTML TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]] -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction Processing by NestedResourcesController#show as HTML  (0.0ms) begin transaction Parameters: {"parent_mock_id"=>"2", "id"=>"2"}  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms) TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by NestedResourcesController#new as HTML SQL (0.0ms) DELETE FROM "test_attr_throughs" Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}}  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:36.269887"], ["updated_at", "2017-11-11 00:18:36.269887"]] ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:36.270956"], ["updated_at", "2017-11-11 00:18:36.270956"]] Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]] Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"}  (0.1ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ----------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] Rendered text template (0.0ms) TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) Rendered text template (0.0ms) SQL (0.1ms) DELETE FROM "test_models" Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs" Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params -----------------------------------------------------------------------------------  (0.1ms) begin transaction Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.292671"], ["updated_at", "2017-11-11 00:18:36.292671"]] Processing by LoadMockObjectsController#delete as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) commit transaction Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by LoadMockObjectsController#view as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.297268"], ["updated_at", "2017-11-11 00:18:36.297268"]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ----------------------------------------------------------------------  (0.0ms) begin transaction Processing by LoadMockObjectsController#show as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Rendered text template (0.0ms)  (0.0ms) commit transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]] Processing by LoadMockObjectsController#create as HTML  (0.1ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML  (0.1ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]] ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load -------------------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.303773"], ["updated_at", "2017-11-11 00:18:36.303773"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.1ms) begin transaction Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.307408"], ["updated_at", "2017-11-11 00:18:36.307408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.739559"], ["updated_at", "2017-11-11 00:18:36.739559"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.822810"], ["updated_at", "2017-11-11 00:18:36.822810"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.832998"], ["updated_at", "2017-11-11 00:18:36.832998"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:36.836170"], ["updated_at", "2017-11-11 00:18:36.836170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:36.841880"], ["updated_at", "2017-11-11 00:18:36.841880"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:36.864460"], ["updated_at", "2017-11-11 00:18:36.864460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:36.865544"], ["updated_at", "2017-11-11 00:18:36.865544"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.052445"], ["updated_at", "2017-11-11 00:18:37.052445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:37.053783"], ["updated_at", "2017-11-11 00:18:37.053783"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:37.056742"], ["updated_at", "2017-11-11 00:18:37.056742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:37.057753"], ["updated_at", "2017-11-11 00:18:37.057753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.058696"], ["updated_at", "2017-11-11 00:18:37.058696"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:37.063387"], ["updated_at", "2017-11-11 00:18:37.063387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:18:37.065235"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:37.067148"], ["updated_at", "2017-11-11 00:18:37.067148"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:37.069159"], ["updated_at", "2017-11-11 00:18:37.069159"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.077148"], ["updated_at", "2017-11-11 00:18:37.077148"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.085486"], ["updated_at", "2017-11-11 00:18:37.085486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.086574"], ["updated_at", "2017-11-11 00:18:37.086574"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.101481"], ["updated_at", "2017-11-11 00:18:37.101481"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.107905"], ["updated_at", "2017-11-11 00:18:37.107905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.108946"], ["updated_at", "2017-11-11 00:18:37.108946"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:37.130658"], ["updated_at", "2017-11-11 00:18:37.130658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.135882"], ["updated_at", "2017-11-11 00:18:37.135882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.140120"], ["updated_at", "2017-11-11 00:18:37.140120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.146077"], ["updated_at", "2017-11-11 00:18:37.146077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.150769"], ["updated_at", "2017-11-11 00:18:37.150769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.151781"], ["updated_at", "2017-11-11 00:18:37.151781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.161815"], ["updated_at", "2017-11-11 00:18:37.161815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.162710"], ["updated_at", "2017-11-11 00:18:37.162710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.163636"], ["updated_at", "2017-11-11 00:18:37.163636"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.166241"], ["updated_at", "2017-11-11 00:18:37.166241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.169279"], ["updated_at", "2017-11-11 00:18:37.169279"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.174204"], ["updated_at", "2017-11-11 00:18:37.174204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.175234"], ["updated_at", "2017-11-11 00:18:37.175234"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.187480"], ["updated_at", "2017-11-11 00:18:37.187480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.188524"], ["updated_at", "2017-11-11 00:18:37.188524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.190829"], ["updated_at", "2017-11-11 00:18:37.190829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.194834"], ["updated_at", "2017-11-11 00:18:37.194834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.195836"], ["updated_at", "2017-11-11 00:18:37.195836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.196680"], ["updated_at", "2017-11-11 00:18:37.196680"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.204501"], ["updated_at", "2017-11-11 00:18:37.204501"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.210145"], ["updated_at", "2017-11-11 00:18:37.210145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.211412"], ["updated_at", "2017-11-11 00:18:37.211412"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.214556"], ["updated_at", "2017-11-11 00:18:37.214556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.217223"], ["updated_at", "2017-11-11 00:18:37.217223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.219736"], ["updated_at", "2017-11-11 00:18:37.219736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:37.223512"], ["updated_at", "2017-11-11 00:18:37.223512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.225750"], ["updated_at", "2017-11-11 00:18:37.225750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.230295"], ["updated_at", "2017-11-11 00:18:37.230295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.231217"], ["updated_at", "2017-11-11 00:18:37.231217"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.234360"], ["updated_at", "2017-11-11 00:18:37.234360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.236692"], ["updated_at", "2017-11-11 00:18:37.236692"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.240385"], ["updated_at", "2017-11-11 00:18:37.240385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.245748"], ["updated_at", "2017-11-11 00:18:37.245748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.248020"], ["updated_at", "2017-11-11 00:18:37.248020"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.251739"], ["updated_at", "2017-11-11 00:18:37.251739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.252631"], ["updated_at", "2017-11-11 00:18:37.252631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:37.260138"], ["updated_at", "2017-11-11 00:18:37.260138"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:37.263133"], ["updated_at", "2017-11-11 00:18:37.263133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.273446"], ["updated_at", "2017-11-11 00:18:37.273446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.274936"], ["updated_at", "2017-11-11 00:18:37.274936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.280944"], ["updated_at", "2017-11-11 00:18:37.280944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.287657"], ["updated_at", "2017-11-11 00:18:37.287657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.293277"], ["updated_at", "2017-11-11 00:18:37.293277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.294518"], ["updated_at", "2017-11-11 00:18:37.294518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.304148"], ["updated_at", "2017-11-11 00:18:37.304148"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.305159"], ["updated_at", "2017-11-11 00:18:37.305159"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.320252"], ["updated_at", "2017-11-11 00:18:37.320252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.321269"], ["updated_at", "2017-11-11 00:18:37.321269"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:37.323950"], ["updated_at", "2017-11-11 00:18:37.323950"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:37.325481"], ["updated_at", "2017-11-11 00:18:37.325481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:37.327800"], ["updated_at", "2017-11-11 00:18:37.327800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:37.329046"], ["updated_at", "2017-11-11 00:18:37.329046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.333156"], ["updated_at", "2017-11-11 00:18:37.333156"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.334181"], ["updated_at", "2017-11-11 00:18:37.334181"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.337342"], ["updated_at", "2017-11-11 00:18:37.337342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.343741"], ["updated_at", "2017-11-11 00:18:37.343741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:37.350693"], ["updated_at", "2017-11-11 00:18:37.350693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:37.352007"], ["updated_at", "2017-11-11 00:18:37.352007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:37.354344"], ["updated_at", "2017-11-11 00:18:37.354344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:37.355439"], ["updated_at", "2017-11-11 00:18:37.355439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:37.364348"], ["updated_at", "2017-11-11 00:18:37.364348"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.376423"], ["updated_at", "2017-11-11 00:18:37.376423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.377433"], ["updated_at", "2017-11-11 00:18:37.377433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:37.379696"], ["updated_at", "2017-11-11 00:18:37.379696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.2ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.0ms) begin transaction  (0.3ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 4], ["id", 2]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:39.631641"], ["updated_at", "2017-11-11 00:18:39.631641"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:39.633296"], ["updated_at", "2017-11-11 00:18:39.633296"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.655635"], ["updated_at", "2017-11-11 00:18:39.655635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller -----------------------------------------------------------------  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:39.661882"], ["updated_at", "2017-11-11 00:18:39.661882"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" Processing by PeopleController#show as HTML  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ----------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction Processing by LoadMockObjectsController#show as HTML TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.2ms) begin transaction Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) commit transaction Processing by LoadMockObjectsController#show as HTML  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- SQL (0.3ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by LoadMockObjectsController#create as HTML SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction Processing by LoadMockObjectsController#create as HTML TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.1ms) commit transaction Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML  (0.2ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by LoadMockObjectsController#view as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.1ms) commit transaction Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Processing by LoadMockObjectsController#update as HTML SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- SQL (0.3ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user -----------------------------------------  (0.1ms) begin transaction  (0.1ms) rollback transaction Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction Processing by HelperMocksController#action as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.704321"], ["updated_at", "2017-11-11 00:18:39.704321"]] ---------------------------------------- HelperTest: test_has_role_with_hierarchy ----------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]] HelperTest: test_has_role -------------------------  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -----------------------  (0.1ms) commit transaction HelperTest: test_permit -----------------------  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML  (0.1ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by HelperMocksController#action as HTML SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.713613"], ["updated_at", "2017-11-11 00:18:39.713613"]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}}  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.719346"], ["updated_at", "2017-11-11 00:18:39.719346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" Rendered text template (0.0ms) SQL (0.1ms) DELETE FROM "branches" Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_attrs" Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by HelperMocksController#action as HTML Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by HelperMocksController#action as HTML Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Processing by SpecificMocksController#new as HTML Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by SpecificMocksController#create as HTML Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.1ms) Processing by HelperMocksController#action as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by SpecificMocksController#test_action as HTML Processing by HelperMocksController#action as HTML Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Processing by AllMocksController#show as HTML Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action_2 as HTML Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#create as HTML ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ Processing by StrongResourcesController#show as HTML BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params -----------------------------------------------------------------  (0.0ms) begin transaction Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.828455"], ["updated_at", "2017-11-11 00:18:39.828455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:39.831518"], ["updated_at", "2017-11-11 00:18:39.831518"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.873856"], ["updated_at", "2017-11-11 00:18:39.873856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.875023"], ["updated_at", "2017-11-11 00:18:39.875023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.876088"], ["updated_at", "2017-11-11 00:18:39.876088"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.878969"], ["updated_at", "2017-11-11 00:18:39.878969"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.883818"], ["updated_at", "2017-11-11 00:18:39.883818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.886504"], ["updated_at", "2017-11-11 00:18:39.886504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.890664"], ["updated_at", "2017-11-11 00:18:39.890664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.891711"], ["updated_at", "2017-11-11 00:18:39.891711"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:39.897072"], ["updated_at", "2017-11-11 00:18:39.897072"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:39.898213"], ["updated_at", "2017-11-11 00:18:39.898213"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:39.901955"], ["updated_at", "2017-11-11 00:18:39.901955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:39.903017"], ["updated_at", "2017-11-11 00:18:39.903017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.913937"], ["updated_at", "2017-11-11 00:18:39.913937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.914996"], ["updated_at", "2017-11-11 00:18:39.914996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.917441"], ["updated_at", "2017-11-11 00:18:39.917441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.921410"], ["updated_at", "2017-11-11 00:18:39.921410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.922619"], ["updated_at", "2017-11-11 00:18:39.922619"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES Processing by Name::SpacedThingsController#show as HTML  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Rendered text template (0.0ms)  (0.0ms) begin transaction Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.933823"], ["updated_at", "2017-11-11 00:18:39.933823"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected  (0.0ms) begin transaction Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.934861"], ["updated_at", "2017-11-11 00:18:39.934861"]] Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction Processing by Name::SpacedThingsController#update as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom ---------------------------------------------------  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction Processing by LoadMockObjectsController#create as HTML  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.950010"], ["updated_at", "2017-11-11 00:18:39.950010"]] Processing by LoadMockObjectsController#view as HTML  (0.0ms) commit transaction Rendered text template (0.0ms)  (0.0ms) begin transaction Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.951310"], ["updated_at", "2017-11-11 00:18:39.951310"]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Processing by PeopleController#show as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.953993"], ["updated_at", "2017-11-11 00:18:39.953993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.955212"], ["updated_at", "2017-11-11 00:18:39.955212"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction Processing by ExplicitContextResourceController#new as HTML  (0.0ms) begin transaction Parameters: {"basic_resource"=>{"id"=>"2"}} SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id --------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:39.962484"], ["updated_at", "2017-11-11 00:18:39.962484"]] Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:39.963620"], ["updated_at", "2017-11-11 00:18:39.963620"]] Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:39.966237"], ["updated_at", "2017-11-11 00:18:39.966237"]] Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) commit transaction Processing by ExplicitContextResourceController#index as HTML  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:39.967933"], ["updated_at", "2017-11-11 00:18:39.967933"]]  (0.0ms) commit transaction ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.972620"], ["updated_at", "2017-11-11 00:18:39.972620"]] Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"}  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] Processing by BasicResourcesController#index as HTML  (0.0ms) commit transaction  (0.0ms) begin transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.975268"], ["updated_at", "2017-11-11 00:18:39.975268"]] Rendered text template (0.0ms)  (0.0ms) commit transaction Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params ---------------------------------------------------------------  (0.0ms) begin transaction Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.979414"], ["updated_at", "2017-11-11 00:18:39.979414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by AllMocksController#show as HTML SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.985787"], ["updated_at", "2017-11-11 00:18:39.985787"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.986817"], ["updated_at", "2017-11-11 00:18:39.986817"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:39.989252"], ["updated_at", "2017-11-11 00:18:39.989252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:39.993028"], ["updated_at", "2017-11-11 00:18:39.993028"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:39.994462"], ["updated_at", "2017-11-11 00:18:39.994462"]] SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]] SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]] SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.002130"], ["updated_at", "2017-11-11 00:18:40.002130"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.010540"], ["updated_at", "2017-11-11 00:18:40.010540"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.011136"], ["updated_at", "2017-11-11 00:18:40.011136"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.011997"], ["updated_at", "2017-11-11 00:18:40.011997"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.012356"], ["updated_at", "2017-11-11 00:18:40.012356"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.015790"], ["updated_at", "2017-11-11 00:18:40.015790"]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:40.021062"], ["updated_at", "2017-11-11 00:18:40.021062"]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.026405"], ["updated_at", "2017-11-11 00:18:40.026405"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.027451"], ["updated_at", "2017-11-11 00:18:40.027451"]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.030759"], ["updated_at", "2017-11-11 00:18:40.030759"]] SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.032103"], ["updated_at", "2017-11-11 00:18:40.032103"]] SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:40.032359"], ["updated_at", "2017-11-11 00:18:40.032359"]]  (0.0ms) commit transaction  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1))  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:18:40.034278"], ["id", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:40.035363"], ["updated_at", "2017-11-11 00:18:40.035363"]] SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:40.036322"], ["updated_at", "2017-11-11 00:18:40.036322"]] SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.040429"], ["updated_at", "2017-11-11 00:18:40.040429"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:40.040771"], ["updated_at", "2017-11-11 00:18:40.040771"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:18:40.042304"], ["id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]] SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:40.044084"], ["updated_at", "2017-11-11 00:18:40.044084"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:40.045260"], ["updated_at", "2017-11-11 00:18:40.045260"]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.047132"], ["updated_at", "2017-11-11 00:18:40.047132"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.048182"], ["updated_at", "2017-11-11 00:18:40.048182"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.050406"], ["updated_at", "2017-11-11 00:18:40.050406"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.054738"], ["updated_at", "2017-11-11 00:18:40.054738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.055877"], ["updated_at", "2017-11-11 00:18:40.055877"]] SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.055872"], ["updated_at", "2017-11-11 00:18:40.055872"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.057044"], ["updated_at", "2017-11-11 00:18:40.057044"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.066723"], ["updated_at", "2017-11-11 00:18:40.066723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.071079"], ["updated_at", "2017-11-11 00:18:40.071079"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.071996"], ["updated_at", "2017-11-11 00:18:40.071996"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.071922"], ["updated_at", "2017-11-11 00:18:40.071922"]]  (0.0ms) commit transaction  (0.2ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.074194"], ["updated_at", "2017-11-11 00:18:40.074194"]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.075115"], ["updated_at", "2017-11-11 00:18:40.075115"]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.077317"], ["updated_at", "2017-11-11 00:18:40.077317"]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:40.078238"], ["updated_at", "2017-11-11 00:18:40.078238"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.078453"], ["updated_at", "2017-11-11 00:18:40.078453"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.083735"], ["updated_at", "2017-11-11 00:18:40.083735"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:40.084207"], ["updated_at", "2017-11-11 00:18:40.084207"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.086161"], ["updated_at", "2017-11-11 00:18:40.086161"]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:40.086740"], ["updated_at", "2017-11-11 00:18:40.086740"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.092770"], ["updated_at", "2017-11-11 00:18:40.092770"]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.095350"], ["updated_at", "2017-11-11 00:18:40.095350"]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.096900"], ["updated_at", "2017-11-11 00:18:40.096900"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.098248"], ["updated_at", "2017-11-11 00:18:40.098248"]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1))  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.100957"], ["updated_at", "2017-11-11 00:18:40.100957"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.103223"], ["updated_at", "2017-11-11 00:18:40.103223"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.2ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.107871"], ["updated_at", "2017-11-11 00:18:40.107871"]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.109293"], ["updated_at", "2017-11-11 00:18:40.109293"]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.113272"], ["updated_at", "2017-11-11 00:18:40.113272"]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.116395"], ["updated_at", "2017-11-11 00:18:40.116395"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.122754"], ["updated_at", "2017-11-11 00:18:40.122754"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.125220"], ["updated_at", "2017-11-11 00:18:40.125220"]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1))  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.127752"], ["updated_at", "2017-11-11 00:18:40.127752"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.128727"], ["updated_at", "2017-11-11 00:18:40.128727"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.130364"], ["updated_at", "2017-11-11 00:18:40.130364"]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.131396"], ["updated_at", "2017-11-11 00:18:40.131396"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.135292"], ["updated_at", "2017-11-11 00:18:40.135292"]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:40.136727"], ["updated_at", "2017-11-11 00:18:40.136727"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.139453"], ["updated_at", "2017-11-11 00:18:40.139453"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:40.141158"], ["updated_at", "2017-11-11 00:18:40.141158"]]  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:40.142703"], ["updated_at", "2017-11-11 00:18:40.142703"]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog'))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.145149"], ["updated_at", "2017-11-11 00:18:40.145149"]] SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:40.145518"], ["updated_at", "2017-11-11 00:18:40.145518"]]  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:40.146594"], ["updated_at", "2017-11-11 00:18:40.146594"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.150008"], ["updated_at", "2017-11-11 00:18:40.150008"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.151032"], ["updated_at", "2017-11-11 00:18:40.151032"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.151162"], ["updated_at", "2017-11-11 00:18:40.151162"]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.153836"], ["updated_at", "2017-11-11 00:18:40.153836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.160079"], ["updated_at", "2017-11-11 00:18:40.160079"]]  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.161499"], ["updated_at", "2017-11-11 00:18:40.161499"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.169678"], ["updated_at", "2017-11-11 00:18:40.169678"]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.172636"], ["updated_at", "2017-11-11 00:18:40.172636"]]  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1))  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.178940"], ["updated_at", "2017-11-11 00:18:40.178940"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.180421"], ["updated_at", "2017-11-11 00:18:40.180421"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.181742"], ["updated_at", "2017-11-11 00:18:40.181742"]]  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.182654"], ["updated_at", "2017-11-11 00:18:40.182654"]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2))  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.185790"], ["updated_at", "2017-11-11 00:18:40.185790"]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.186791"], ["updated_at", "2017-11-11 00:18:40.186791"]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1))  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.192811"], ["updated_at", "2017-11-11 00:18:40.192811"]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:40.199507"], ["updated_at", "2017-11-11 00:18:40.199507"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:40.200828"], ["updated_at", "2017-11-11 00:18:40.200828"]]  (0.0ms) begin transaction  (0.1ms) commit transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.202312"], ["updated_at", "2017-11-11 00:18:40.202312"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.205242"], ["updated_at", "2017-11-11 00:18:40.205242"]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.206515"], ["updated_at", "2017-11-11 00:18:40.206515"]] Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.208470"], ["updated_at", "2017-11-11 00:18:40.208470"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.209526"], ["updated_at", "2017-11-11 00:18:40.209526"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.209949"], ["updated_at", "2017-11-11 00:18:40.209949"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.216467"], ["updated_at", "2017-11-11 00:18:40.216467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.217023"], ["updated_at", "2017-11-11 00:18:40.217023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.217598"], ["updated_at", "2017-11-11 00:18:40.217598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.218125"], ["updated_at", "2017-11-11 00:18:40.218125"]]  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.218866"], ["updated_at", "2017-11-11 00:18:40.218866"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.221097"], ["updated_at", "2017-11-11 00:18:40.221097"]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.222371"], ["updated_at", "2017-11-11 00:18:40.222371"]] SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:40.222527"], ["updated_at", "2017-11-11 00:18:40.222527"]]  (0.1ms) commit transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:40.226172"], ["updated_at", "2017-11-11 00:18:40.226172"]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.231318"], ["updated_at", "2017-11-11 00:18:40.231318"]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1))  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.234067"], ["updated_at", "2017-11-11 00:18:40.234067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_attrs" TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.238327"], ["updated_at", "2017-11-11 00:18:40.238327"]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.239331"], ["updated_at", "2017-11-11 00:18:40.239331"]]  (0.0ms) commit transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.245081"], ["updated_at", "2017-11-11 00:18:40.245081"]] SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.246242"], ["updated_at", "2017-11-11 00:18:40.246242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.247572"], ["updated_at", "2017-11-11 00:18:40.247572"]] SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.250177"], ["updated_at", "2017-11-11 00:18:40.250177"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.250846"], ["updated_at", "2017-11-11 00:18:40.250846"]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.251882"], ["updated_at", "2017-11-11 00:18:40.251882"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:40.255263"], ["updated_at", "2017-11-11 00:18:40.255263"]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:40.256310"], ["updated_at", "2017-11-11 00:18:40.256310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.257293"], ["updated_at", "2017-11-11 00:18:40.257293"]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.257213"], ["updated_at", "2017-11-11 00:18:40.257213"]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:40.259552"], ["updated_at", "2017-11-11 00:18:40.259552"]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:40.260738"], ["updated_at", "2017-11-11 00:18:40.260738"]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.260904"], ["updated_at", "2017-11-11 00:18:40.260904"]]  (0.1ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:40.264011"], ["updated_at", "2017-11-11 00:18:40.264011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:40.265059"], ["updated_at", "2017-11-11 00:18:40.265059"]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:40.268532"], ["updated_at", "2017-11-11 00:18:40.268532"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:40.270188"], ["updated_at", "2017-11-11 00:18:40.270188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) begin transaction  (0.1ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1))  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.275610"], ["updated_at", "2017-11-11 00:18:40.275610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.276636"], ["updated_at", "2017-11-11 00:18:40.276636"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.279859"], ["updated_at", "2017-11-11 00:18:40.279859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2'))  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1))  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:40.284476"], ["updated_at", "2017-11-11 00:18:40.284476"]]  (0.1ms) commit transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.286990"], ["updated_at", "2017-11-11 00:18:40.286990"]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog'))  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:40.293042"], ["updated_at", "2017-11-11 00:18:40.293042"]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) rollback transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.301116"], ["updated_at", "2017-11-11 00:18:40.301116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.306212"], ["updated_at", "2017-11-11 00:18:40.306212"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2))  (0.1ms) begin transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.313824"], ["updated_at", "2017-11-11 00:18:40.313824"]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:40.315431"], ["updated_at", "2017-11-11 00:18:40.315431"]] SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 8], ["id", 1]] Processing by AccessOverwritesController#test_action_2 as HTML SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:40.329348"], ["updated_at", "2017-11-11 00:18:40.329348"]]  (0.0ms) commit transaction Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" Processing by AccessOverwritesController#test_action as HTML --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.297231"], ["updated_at", "2017-11-11 00:18:41.297231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:41.366662"], ["updated_at", "2017-11-11 00:18:41.366662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:41.368187"], ["updated_at", "2017-11-11 00:18:41.368187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:41.437230"], ["updated_at", "2017-11-11 00:18:41.437230"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.441068"], ["updated_at", "2017-11-11 00:18:41.441068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.448697"], ["updated_at", "2017-11-11 00:18:41.448697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.452245"], ["updated_at", "2017-11-11 00:18:41.452245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:41.514559"], ["updated_at", "2017-11-11 00:18:41.514559"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:41.516311"], ["updated_at", "2017-11-11 00:18:41.516311"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:41.520523"], ["updated_at", "2017-11-11 00:18:41.520523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:41.521658"], ["updated_at", "2017-11-11 00:18:41.521658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:41.539716"], ["updated_at", "2017-11-11 00:18:41.539716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:41.547475"], ["updated_at", "2017-11-11 00:18:41.547475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-11 00:18:41.550338"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:41.551561"], ["updated_at", "2017-11-11 00:18:41.551561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:41.552551"], ["updated_at", "2017-11-11 00:18:41.552551"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.558186"], ["updated_at", "2017-11-11 00:18:41.558186"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.559562"], ["updated_at", "2017-11-11 00:18:41.559562"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.562697"], ["updated_at", "2017-11-11 00:18:41.562697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:41.563988"], ["updated_at", "2017-11-11 00:18:41.563988"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:41.569202"], ["updated_at", "2017-11-11 00:18:41.569202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.582772"], ["updated_at", "2017-11-11 00:18:41.582772"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.584512"], ["updated_at", "2017-11-11 00:18:41.584512"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.587665"], ["updated_at", "2017-11-11 00:18:41.587665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.588644"], ["updated_at", "2017-11-11 00:18:41.588644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.597237"], ["updated_at", "2017-11-11 00:18:41.597237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.598277"], ["updated_at", "2017-11-11 00:18:41.598277"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.604809"], ["updated_at", "2017-11-11 00:18:41.604809"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.606319"], ["updated_at", "2017-11-11 00:18:41.606319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.613376"], ["updated_at", "2017-11-11 00:18:41.613376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.617040"], ["updated_at", "2017-11-11 00:18:41.617040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:41.637525"], ["updated_at", "2017-11-11 00:18:41.637525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:41.638810"], ["updated_at", "2017-11-11 00:18:41.638810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:41.641290"], ["updated_at", "2017-11-11 00:18:41.641290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:41.642444"], ["updated_at", "2017-11-11 00:18:41.642444"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.646798"], ["updated_at", "2017-11-11 00:18:41.646798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.648383"], ["updated_at", "2017-11-11 00:18:41.648383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.649502"], ["updated_at", "2017-11-11 00:18:41.649502"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.656030"], ["updated_at", "2017-11-11 00:18:41.656030"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.663444"], ["updated_at", "2017-11-11 00:18:41.663444"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.670936"], ["updated_at", "2017-11-11 00:18:41.670936"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.680101"], ["updated_at", "2017-11-11 00:18:41.680101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.681270"], ["updated_at", "2017-11-11 00:18:41.681270"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.685850"], ["updated_at", "2017-11-11 00:18:41.685850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.690799"], ["updated_at", "2017-11-11 00:18:41.690799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.691955"], ["updated_at", "2017-11-11 00:18:41.691955"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.695289"], ["updated_at", "2017-11-11 00:18:41.695289"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.696918"], ["updated_at", "2017-11-11 00:18:41.696918"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:41.700908"], ["updated_at", "2017-11-11 00:18:41.700908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:41.701995"], ["updated_at", "2017-11-11 00:18:41.701995"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.703103"], ["updated_at", "2017-11-11 00:18:41.703103"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.712184"], ["updated_at", "2017-11-11 00:18:41.712184"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.721943"], ["updated_at", "2017-11-11 00:18:41.721943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:41.729000"], ["updated_at", "2017-11-11 00:18:41.729000"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:41.732260"], ["updated_at", "2017-11-11 00:18:41.732260"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.771822"], ["updated_at", "2017-11-11 00:18:41.771822"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.774326"], ["updated_at", "2017-11-11 00:18:41.774326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.775390"], ["updated_at", "2017-11-11 00:18:41.775390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.781629"], ["updated_at", "2017-11-11 00:18:41.781629"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.789181"], ["updated_at", "2017-11-11 00:18:41.789181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.790243"], ["updated_at", "2017-11-11 00:18:41.790243"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.805012"], ["updated_at", "2017-11-11 00:18:41.805012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.808042"], ["updated_at", "2017-11-11 00:18:41.808042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.810882"], ["updated_at", "2017-11-11 00:18:41.810882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.816121"], ["updated_at", "2017-11-11 00:18:41.816121"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.818837"], ["updated_at", "2017-11-11 00:18:41.818837"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:41.822824"], ["updated_at", "2017-11-11 00:18:41.822824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.825595"], ["updated_at", "2017-11-11 00:18:41.825595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.830809"], ["updated_at", "2017-11-11 00:18:41.830809"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.831871"], ["updated_at", "2017-11-11 00:18:41.831871"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.834141"], ["updated_at", "2017-11-11 00:18:41.834141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.835124"], ["updated_at", "2017-11-11 00:18:41.835124"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.846721"], ["updated_at", "2017-11-11 00:18:41.846721"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.848372"], ["updated_at", "2017-11-11 00:18:41.848372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.851078"], ["updated_at", "2017-11-11 00:18:41.851078"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.855310"], ["updated_at", "2017-11-11 00:18:41.855310"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.858832"], ["updated_at", "2017-11-11 00:18:41.858832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.864471"], ["updated_at", "2017-11-11 00:18:41.864471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.866032"], ["updated_at", "2017-11-11 00:18:41.866032"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.870630"], ["updated_at", "2017-11-11 00:18:41.870630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.877850"], ["updated_at", "2017-11-11 00:18:41.877850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.888012"], ["updated_at", "2017-11-11 00:18:41.888012"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.893096"], ["updated_at", "2017-11-11 00:18:41.893096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.894214"], ["updated_at", "2017-11-11 00:18:41.894214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.895368"], ["updated_at", "2017-11-11 00:18:41.895368"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:41.899920"], ["updated_at", "2017-11-11 00:18:41.899920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) SQL (1.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.528604"], ["updated_at", "2017-11-11 00:18:43.528604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.532089"], ["updated_at", "2017-11-11 00:18:43.532089"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.537032"], ["updated_at", "2017-11-11 00:18:43.537032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.555948"], ["updated_at", "2017-11-11 00:18:43.555948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.565527"], ["updated_at", "2017-11-11 00:18:43.565527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.566835"], ["updated_at", "2017-11-11 00:18:43.566835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.567857"], ["updated_at", "2017-11-11 00:18:43.567857"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.570812"], ["updated_at", "2017-11-11 00:18:43.570812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.586044"], ["updated_at", "2017-11-11 00:18:43.586044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.595453"], ["updated_at", "2017-11-11 00:18:43.595453"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.603053"], ["updated_at", "2017-11-11 00:18:43.603053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.603939"], ["updated_at", "2017-11-11 00:18:43.603939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.604895"], ["updated_at", "2017-11-11 00:18:43.604895"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:43.611827"], ["updated_at", "2017-11-11 00:18:43.611827"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:43.637720"], ["updated_at", "2017-11-11 00:18:43.637720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:43.640437"], ["updated_at", "2017-11-11 00:18:43.640437"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.649901"], ["updated_at", "2017-11-11 00:18:43.649901"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.650998"], ["updated_at", "2017-11-11 00:18:43.650998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.658189"], ["updated_at", "2017-11-11 00:18:43.658189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.663423"], ["updated_at", "2017-11-11 00:18:43.663423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.664661"], ["updated_at", "2017-11-11 00:18:43.664661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.667113"], ["updated_at", "2017-11-11 00:18:43.667113"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:43.671007"], ["updated_at", "2017-11-11 00:18:43.671007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.673300"], ["updated_at", "2017-11-11 00:18:43.673300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:43.678576"], ["updated_at", "2017-11-11 00:18:43.678576"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:18:43.679983"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:43.683993"], ["updated_at", "2017-11-11 00:18:43.683993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:43.685194"], ["updated_at", "2017-11-11 00:18:43.685194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:43.689092"], ["updated_at", "2017-11-11 00:18:43.689092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:43.690203"], ["updated_at", "2017-11-11 00:18:43.690203"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.691524"], ["updated_at", "2017-11-11 00:18:43.691524"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.694506"], ["updated_at", "2017-11-11 00:18:43.694506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.695358"], ["updated_at", "2017-11-11 00:18:43.695358"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.698171"], ["updated_at", "2017-11-11 00:18:43.698171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.702939"], ["updated_at", "2017-11-11 00:18:43.702939"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.705119"], ["updated_at", "2017-11-11 00:18:43.705119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.707241"], ["updated_at", "2017-11-11 00:18:43.707241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:43.714263"], ["updated_at", "2017-11-11 00:18:43.714263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.719079"], ["updated_at", "2017-11-11 00:18:43.719079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.720015"], ["updated_at", "2017-11-11 00:18:43.720015"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:43.722550"], ["updated_at", "2017-11-11 00:18:43.722550"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:43.723684"], ["updated_at", "2017-11-11 00:18:43.723684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:43.726615"], ["updated_at", "2017-11-11 00:18:43.726615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:43.727808"], ["updated_at", "2017-11-11 00:18:43.727808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.731681"], ["updated_at", "2017-11-11 00:18:43.731681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.734223"], ["updated_at", "2017-11-11 00:18:43.734223"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.739204"], ["updated_at", "2017-11-11 00:18:43.739204"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.745375"], ["updated_at", "2017-11-11 00:18:43.745375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.746286"], ["updated_at", "2017-11-11 00:18:43.746286"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.748741"], ["updated_at", "2017-11-11 00:18:43.748741"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.753739"], ["updated_at", "2017-11-11 00:18:43.753739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.754642"], ["updated_at", "2017-11-11 00:18:43.754642"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.761222"], ["updated_at", "2017-11-11 00:18:43.761222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.762141"], ["updated_at", "2017-11-11 00:18:43.762141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.764320"], ["updated_at", "2017-11-11 00:18:43.764320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.768497"], ["updated_at", "2017-11-11 00:18:43.768497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.773048"], ["updated_at", "2017-11-11 00:18:43.773048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.775172"], ["updated_at", "2017-11-11 00:18:43.775172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.778878"], ["updated_at", "2017-11-11 00:18:43.778878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.784456"], ["updated_at", "2017-11-11 00:18:43.784456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.785376"], ["updated_at", "2017-11-11 00:18:43.785376"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.794663"], ["updated_at", "2017-11-11 00:18:43.794663"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.796611"], ["updated_at", "2017-11-11 00:18:43.796611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.797571"], ["updated_at", "2017-11-11 00:18:43.797571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.810574"], ["updated_at", "2017-11-11 00:18:43.810574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.811610"], ["updated_at", "2017-11-11 00:18:43.811610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.822251"], ["updated_at", "2017-11-11 00:18:43.822251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.823170"], ["updated_at", "2017-11-11 00:18:43.823170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:43.829024"], ["updated_at", "2017-11-11 00:18:43.829024"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:43.830465"], ["updated_at", "2017-11-11 00:18:43.830465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:43.833210"], ["updated_at", "2017-11-11 00:18:43.833210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:43.834163"], ["updated_at", "2017-11-11 00:18:43.834163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.841744"], ["updated_at", "2017-11-11 00:18:43.841744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (4.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.846594"], ["updated_at", "2017-11-11 00:18:43.846594"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:43.852151"], ["updated_at", "2017-11-11 00:18:43.852151"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.875946"], ["updated_at", "2017-11-11 00:18:43.875946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.876957"], ["updated_at", "2017-11-11 00:18:43.876957"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.879044"], ["updated_at", "2017-11-11 00:18:43.879044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.880031"], ["updated_at", "2017-11-11 00:18:43.880031"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:43.951725"], ["updated_at", "2017-11-11 00:18:43.951725"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:43.970355"], ["updated_at", "2017-11-11 00:18:43.970355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:43.971339"], ["updated_at", "2017-11-11 00:18:43.971339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:43.999518"], ["updated_at", "2017-11-11 00:18:43.999518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.006539"], ["updated_at", "2017-11-11 00:18:44.006539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.009463"], ["updated_at", "2017-11-11 00:18:44.009463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.031541"], ["updated_at", "2017-11-11 00:18:44.031541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.559373"], ["updated_at", "2017-11-11 00:18:44.559373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.569263"], ["updated_at", "2017-11-11 00:18:44.569263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.572642"], ["updated_at", "2017-11-11 00:18:44.572642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.586816"], ["updated_at", "2017-11-11 00:18:44.586816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:44.615133"], ["updated_at", "2017-11-11 00:18:44.615133"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:44.624238"], ["updated_at", "2017-11-11 00:18:44.624238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:44.625107"], ["updated_at", "2017-11-11 00:18:44.625107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.696282"], ["updated_at", "2017-11-11 00:18:44.696282"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.697532"], ["updated_at", "2017-11-11 00:18:44.697532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.700177"], ["updated_at", "2017-11-11 00:18:44.700177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.703753"], ["updated_at", "2017-11-11 00:18:44.703753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.704539"], ["updated_at", "2017-11-11 00:18:44.704539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.709605"], ["updated_at", "2017-11-11 00:18:44.709605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.710517"], ["updated_at", "2017-11-11 00:18:44.710517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.711335"], ["updated_at", "2017-11-11 00:18:44.711335"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.726541"], ["updated_at", "2017-11-11 00:18:44.726541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.732373"], ["updated_at", "2017-11-11 00:18:44.732373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.736098"], ["updated_at", "2017-11-11 00:18:44.736098"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.739940"], ["updated_at", "2017-11-11 00:18:44.739940"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.741539"], ["updated_at", "2017-11-11 00:18:44.741539"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.745166"], ["updated_at", "2017-11-11 00:18:44.745166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.753411"], ["updated_at", "2017-11-11 00:18:44.753411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.760070"], ["updated_at", "2017-11-11 00:18:44.760070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.766369"], ["updated_at", "2017-11-11 00:18:44.766369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.767193"], ["updated_at", "2017-11-11 00:18:44.767193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.769162"], ["updated_at", "2017-11-11 00:18:44.769162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.772437"], ["updated_at", "2017-11-11 00:18:44.772437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.773264"], ["updated_at", "2017-11-11 00:18:44.773264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.778267"], ["updated_at", "2017-11-11 00:18:44.778267"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.781269"], ["updated_at", "2017-11-11 00:18:44.781269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.783579"], ["updated_at", "2017-11-11 00:18:44.783579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.787063"], ["updated_at", "2017-11-11 00:18:44.787063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.787910"], ["updated_at", "2017-11-11 00:18:44.787910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.797367"], ["updated_at", "2017-11-11 00:18:44.797367"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.798411"], ["updated_at", "2017-11-11 00:18:44.798411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:44.808754"], ["updated_at", "2017-11-11 00:18:44.808754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:44.809810"], ["updated_at", "2017-11-11 00:18:44.809810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:44.811720"], ["updated_at", "2017-11-11 00:18:44.811720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:44.812570"], ["updated_at", "2017-11-11 00:18:44.812570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:44.819868"], ["updated_at", "2017-11-11 00:18:44.819868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:44.822415"], ["updated_at", "2017-11-11 00:18:44.822415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:44.832206"], ["updated_at", "2017-11-11 00:18:44.832206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.834590"], ["updated_at", "2017-11-11 00:18:44.834590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.838651"], ["updated_at", "2017-11-11 00:18:44.838651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.842760"], ["updated_at", "2017-11-11 00:18:44.842760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.843791"], ["updated_at", "2017-11-11 00:18:44.843791"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:44.850519"], ["updated_at", "2017-11-11 00:18:44.850519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (2.0ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.863233"], ["updated_at", "2017-11-11 00:18:44.863233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:44.870850"], ["updated_at", "2017-11-11 00:18:44.870850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:44.871728"], ["updated_at", "2017-11-11 00:18:44.871728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:44.873350"], ["updated_at", "2017-11-11 00:18:44.873350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:44.874168"], ["updated_at", "2017-11-11 00:18:44.874168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.877534"], ["updated_at", "2017-11-11 00:18:44.877534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.878442"], ["updated_at", "2017-11-11 00:18:44.878442"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.880889"], ["updated_at", "2017-11-11 00:18:44.880889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.881642"], ["updated_at", "2017-11-11 00:18:44.881642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.882360"], ["updated_at", "2017-11-11 00:18:44.882360"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.884675"], ["updated_at", "2017-11-11 00:18:44.884675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.886842"], ["updated_at", "2017-11-11 00:18:44.886842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:44.890968"], ["updated_at", "2017-11-11 00:18:44.890968"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:18:44.892174"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:44.893210"], ["updated_at", "2017-11-11 00:18:44.893210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:44.894069"], ["updated_at", "2017-11-11 00:18:44.894069"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.898201"], ["updated_at", "2017-11-11 00:18:44.898201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.900740"], ["updated_at", "2017-11-11 00:18:44.900740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.904328"], ["updated_at", "2017-11-11 00:18:44.904328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.908232"], ["updated_at", "2017-11-11 00:18:44.908232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.909112"], ["updated_at", "2017-11-11 00:18:44.909112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:44.920602"], ["updated_at", "2017-11-11 00:18:44.920602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.924800"], ["updated_at", "2017-11-11 00:18:44.924800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.926071"], ["updated_at", "2017-11-11 00:18:44.926071"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.929051"], ["updated_at", "2017-11-11 00:18:44.929051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.942419"], ["updated_at", "2017-11-11 00:18:44.942419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.943424"], ["updated_at", "2017-11-11 00:18:44.943424"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.947085"], ["updated_at", "2017-11-11 00:18:44.947085"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.955283"], ["updated_at", "2017-11-11 00:18:44.955283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.956118"], ["updated_at", "2017-11-11 00:18:44.956118"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.958219"], ["updated_at", "2017-11-11 00:18:44.958219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:44.959037"], ["updated_at", "2017-11-11 00:18:44.959037"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.964813"], ["updated_at", "2017-11-11 00:18:44.964813"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.966885"], ["updated_at", "2017-11-11 00:18:44.966885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.969324"], ["updated_at", "2017-11-11 00:18:44.969324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.973117"], ["updated_at", "2017-11-11 00:18:44.973117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:44.980785"], ["updated_at", "2017-11-11 00:18:44.980785"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:44.983145"], ["updated_at", "2017-11-11 00:18:44.983145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:44.984028"], ["updated_at", "2017-11-11 00:18:44.984028"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:46.710915"], ["updated_at", "2017-11-11 00:18:46.710915"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:46.732562"], ["updated_at", "2017-11-11 00:18:46.732562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:46.737050"], ["updated_at", "2017-11-11 00:18:46.737050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-11 00:18:46.760343"], ["updated_at", "2017-11-11 00:18:46.760343"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:46.775352"], ["updated_at", "2017-11-11 00:18:46.775352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 9], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-11 00:18:46.797108"], ["updated_at", "2017-11-11 00:18:46.797108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-11 00:18:46.798102"], ["updated_at", "2017-11-11 00:18:46.798102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:46.971458"], ["updated_at", "2017-11-11 00:18:46.971458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:46.972600"], ["updated_at", "2017-11-11 00:18:46.972600"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-11 00:18:46.978621"], ["updated_at", "2017-11-11 00:18:46.978621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:46.990098"], ["updated_at", "2017-11-11 00:18:46.990098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:46.994121"], ["updated_at", "2017-11-11 00:18:46.994121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:46.994952"], ["updated_at", "2017-11-11 00:18:46.994952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:46.997296"], ["updated_at", "2017-11-11 00:18:46.997296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.000812"], ["updated_at", "2017-11-11 00:18:47.000812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-11 00:18:47.001797"], ["updated_at", "2017-11-11 00:18:47.001797"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:47.004482"], ["updated_at", "2017-11-11 00:18:47.004482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-11 00:18:47.005423"], ["updated_at", "2017-11-11 00:18:47.005423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.006217"], ["updated_at", "2017-11-11 00:18:47.006217"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.008068"], ["updated_at", "2017-11-11 00:18:47.008068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.010222"], ["updated_at", "2017-11-11 00:18:47.010222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-11 00:18:47.013578"], ["updated_at", "2017-11-11 00:18:47.013578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-11 00:18:47.015748"], ["updated_at", "2017-11-11 00:18:47.015748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-11 00:18:47.025589"], ["updated_at", "2017-11-11 00:18:47.025589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-11 00:18:47.027059"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:47.028011"], ["updated_at", "2017-11-11 00:18:47.028011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-11 00:18:47.028896"], ["updated_at", "2017-11-11 00:18:47.028896"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.032225"], ["updated_at", "2017-11-11 00:18:47.032225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.033157"], ["updated_at", "2017-11-11 00:18:47.033157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-11 00:18:47.045585"], ["updated_at", "2017-11-11 00:18:47.045585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.059741"], ["updated_at", "2017-11-11 00:18:47.059741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.062558"], ["updated_at", "2017-11-11 00:18:47.062558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.064736"], ["updated_at", "2017-11-11 00:18:47.064736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.068126"], ["updated_at", "2017-11-11 00:18:47.068126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.068921"], ["updated_at", "2017-11-11 00:18:47.068921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.080961"], ["updated_at", "2017-11-11 00:18:47.080961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.088252"], ["updated_at", "2017-11-11 00:18:47.088252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.093746"], ["updated_at", "2017-11-11 00:18:47.093746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.102330"], ["updated_at", "2017-11-11 00:18:47.102330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.103415"], ["updated_at", "2017-11-11 00:18:47.103415"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-11 00:18:47.106244"], ["updated_at", "2017-11-11 00:18:47.106244"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.108670"], ["updated_at", "2017-11-11 00:18:47.108670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.112644"], ["updated_at", "2017-11-11 00:18:47.112644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.113435"], ["updated_at", "2017-11-11 00:18:47.113435"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.119176"], ["updated_at", "2017-11-11 00:18:47.119176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.120079"], ["updated_at", "2017-11-11 00:18:47.120079"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.134676"], ["updated_at", "2017-11-11 00:18:47.134676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.135648"], ["updated_at", "2017-11-11 00:18:47.135648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.140668"], ["updated_at", "2017-11-11 00:18:47.140668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.141416"], ["updated_at", "2017-11-11 00:18:47.141416"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.143750"], ["updated_at", "2017-11-11 00:18:47.143750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.144529"], ["updated_at", "2017-11-11 00:18:47.144529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.149234"], ["updated_at", "2017-11-11 00:18:47.149234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.150356"], ["updated_at", "2017-11-11 00:18:47.150356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.151184"], ["updated_at", "2017-11-11 00:18:47.151184"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.153820"], ["updated_at", "2017-11-11 00:18:47.153820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.158574"], ["updated_at", "2017-11-11 00:18:47.158574"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.160521"], ["updated_at", "2017-11-11 00:18:47.160521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.165163"], ["updated_at", "2017-11-11 00:18:47.165163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.171379"], ["updated_at", "2017-11-11 00:18:47.171379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.174156"], ["updated_at", "2017-11-11 00:18:47.174156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.178144"], ["updated_at", "2017-11-11 00:18:47.178144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.178961"], ["updated_at", "2017-11-11 00:18:47.178961"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.180882"], ["updated_at", "2017-11-11 00:18:47.180882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.181640"], ["updated_at", "2017-11-11 00:18:47.181640"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:47.195122"], ["updated_at", "2017-11-11 00:18:47.195122"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:47.196361"], ["updated_at", "2017-11-11 00:18:47.196361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:47.198580"], ["updated_at", "2017-11-11 00:18:47.198580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:47.199616"], ["updated_at", "2017-11-11 00:18:47.199616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.204065"], ["updated_at", "2017-11-11 00:18:47.204065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.210428"], ["updated_at", "2017-11-11 00:18:47.210428"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.215315"], ["updated_at", "2017-11-11 00:18:47.215315"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.216388"], ["updated_at", "2017-11-11 00:18:47.216388"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.219158"], ["updated_at", "2017-11-11 00:18:47.219158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.220035"], ["updated_at", "2017-11-11 00:18:47.220035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.222518"], ["updated_at", "2017-11-11 00:18:47.222518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.229732"], ["updated_at", "2017-11-11 00:18:47.229732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.237132"], ["updated_at", "2017-11-11 00:18:47.237132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.239966"], ["updated_at", "2017-11-11 00:18:47.239966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.243649"], ["updated_at", "2017-11-11 00:18:47.243649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.244518"], ["updated_at", "2017-11-11 00:18:47.244518"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-11 00:18:47.245311"], ["updated_at", "2017-11-11 00:18:47.245311"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-11 00:18:47.248079"], ["updated_at", "2017-11-11 00:18:47.248079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-11 00:18:47.249058"], ["updated_at", "2017-11-11 00:18:47.249058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-11 00:18:47.251114"], ["updated_at", "2017-11-11 00:18:47.251114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-11 00:18:47.252076"], ["updated_at", "2017-11-11 00:18:47.252076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context --------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 00:45:19.380215"], ["updated_at", "2017-11-21 00:45:19.380215"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.425409"], ["updated_at", "2017-11-21 00:45:19.425409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.433482"], ["updated_at", "2017-11-21 00:45:19.433482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.437236"], ["updated_at", "2017-11-21 00:45:19.437236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 00:45:19.443713"], ["updated_at", "2017-11-21 00:45:19.443713"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 00:45:19.444698"], ["updated_at", "2017-11-21 00:45:19.444698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.474914"], ["updated_at", "2017-11-21 00:45:19.474914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.508244"], ["updated_at", "2017-11-21 00:45:19.508244"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.509527"], ["updated_at", "2017-11-21 00:45:19.509527"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.512119"], ["updated_at", "2017-11-21 00:45:19.512119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.514311"], ["updated_at", "2017-11-21 00:45:19.514311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.517469"], ["updated_at", "2017-11-21 00:45:19.517469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.518251"], ["updated_at", "2017-11-21 00:45:19.518251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.529705"], ["updated_at", "2017-11-21 00:45:19.529705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.530643"], ["updated_at", "2017-11-21 00:45:19.530643"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 00:45:19.532804"], ["updated_at", "2017-11-21 00:45:19.532804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 00:45:19.535088"], ["updated_at", "2017-11-21 00:45:19.535088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 00:45:19.548957"], ["updated_at", "2017-11-21 00:45:19.548957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.561503"], ["updated_at", "2017-11-21 00:45:19.561503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.563761"], ["updated_at", "2017-11-21 00:45:19.563761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.565670"], ["updated_at", "2017-11-21 00:45:19.565670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.3ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 00:45:19.582391"], ["updated_at", "2017-11-21 00:45:19.582391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.585102"], ["updated_at", "2017-11-21 00:45:19.585102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.590136"], ["updated_at", "2017-11-21 00:45:19.590136"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.592817"], ["updated_at", "2017-11-21 00:45:19.592817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.596417"], ["updated_at", "2017-11-21 00:45:19.596417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.601532"], ["updated_at", "2017-11-21 00:45:19.601532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.602960"], ["updated_at", "2017-11-21 00:45:19.602960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.612441"], ["updated_at", "2017-11-21 00:45:19.612441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.616809"], ["updated_at", "2017-11-21 00:45:19.616809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.617937"], ["updated_at", "2017-11-21 00:45:19.617937"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.624738"], ["updated_at", "2017-11-21 00:45:19.624738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.625951"], ["updated_at", "2017-11-21 00:45:19.625951"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 00:45:19.632305"], ["updated_at", "2017-11-21 00:45:19.632305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.638083"], ["updated_at", "2017-11-21 00:45:19.638083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.641300"], ["updated_at", "2017-11-21 00:45:19.641300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.645295"], ["updated_at", "2017-11-21 00:45:19.645295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.651424"], ["updated_at", "2017-11-21 00:45:19.651424"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.652813"], ["updated_at", "2017-11-21 00:45:19.652813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.656099"], ["updated_at", "2017-11-21 00:45:19.656099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 00:45:19.660876"], ["updated_at", "2017-11-21 00:45:19.660876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 00:45:19.661946"], ["updated_at", "2017-11-21 00:45:19.661946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 00:45:19.663724"], ["updated_at", "2017-11-21 00:45:19.663724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 00:45:19.664535"], ["updated_at", "2017-11-21 00:45:19.664535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.672403"], ["updated_at", "2017-11-21 00:45:19.672403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.673369"], ["updated_at", "2017-11-21 00:45:19.673369"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.676474"], ["updated_at", "2017-11-21 00:45:19.676474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.686260"], ["updated_at", "2017-11-21 00:45:19.686260"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.687751"], ["updated_at", "2017-11-21 00:45:19.687751"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.690948"], ["updated_at", "2017-11-21 00:45:19.690948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.692109"], ["updated_at", "2017-11-21 00:45:19.692109"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.693362"], ["updated_at", "2017-11-21 00:45:19.693362"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.696068"], ["updated_at", "2017-11-21 00:45:19.696068"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.697037"], ["updated_at", "2017-11-21 00:45:19.697037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.699742"], ["updated_at", "2017-11-21 00:45:19.699742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 00:45:19.703867"], ["updated_at", "2017-11-21 00:45:19.703867"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 00:45:19.704967"], ["updated_at", "2017-11-21 00:45:19.704967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 00:45:19.707136"], ["updated_at", "2017-11-21 00:45:19.707136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 00:45:19.708316"], ["updated_at", "2017-11-21 00:45:19.708316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.729115"], ["updated_at", "2017-11-21 00:45:19.729115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (7.4ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.752590"], ["updated_at", "2017-11-21 00:45:19.752590"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.754665"], ["updated_at", "2017-11-21 00:45:19.754665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 00:45:19.755547"], ["updated_at", "2017-11-21 00:45:19.755547"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.757741"], ["updated_at", "2017-11-21 00:45:19.757741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.758604"], ["updated_at", "2017-11-21 00:45:19.758604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.759347"], ["updated_at", "2017-11-21 00:45:19.759347"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.762253"], ["updated_at", "2017-11-21 00:45:19.762253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.769687"], ["updated_at", "2017-11-21 00:45:19.769687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.776344"], ["updated_at", "2017-11-21 00:45:19.776344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.777279"], ["updated_at", "2017-11-21 00:45:19.777279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.786753"], ["updated_at", "2017-11-21 00:45:19.786753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.792855"], ["updated_at", "2017-11-21 00:45:19.792855"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.794091"], ["updated_at", "2017-11-21 00:45:19.794091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.801285"], ["updated_at", "2017-11-21 00:45:19.801285"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.802268"], ["updated_at", "2017-11-21 00:45:19.802268"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 00:45:19.805117"], ["updated_at", "2017-11-21 00:45:19.805117"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-21 00:45:19.806328"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 00:45:19.807307"], ["updated_at", "2017-11-21 00:45:19.807307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 00:45:19.808200"], ["updated_at", "2017-11-21 00:45:19.808200"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 00:45:19.811772"], ["updated_at", "2017-11-21 00:45:19.811772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 00:45:19.812698"], ["updated_at", "2017-11-21 00:45:19.812698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.813580"], ["updated_at", "2017-11-21 00:45:19.813580"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.816302"], ["updated_at", "2017-11-21 00:45:19.816302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.822638"], ["updated_at", "2017-11-21 00:45:19.822638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.827417"], ["updated_at", "2017-11-21 00:45:19.827417"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:19.828288"], ["updated_at", "2017-11-21 00:45:19.828288"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------- HelperTest: test_permit ----------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource -------------------------------------------------------  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)   (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms) CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms) CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.562664"], ["updated_at", "2017-11-21 00:45:33.562664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.563900"], ["updated_at", "2017-11-21 00:45:33.563900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.564741"], ["updated_at", "2017-11-21 00:45:33.564741"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.570345"], ["updated_at", "2017-11-21 00:45:33.570345"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.572077"], ["updated_at", "2017-11-21 00:45:33.572077"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.581615"], ["updated_at", "2017-11-21 00:45:33.581615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.582468"], ["updated_at", "2017-11-21 00:45:33.582468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.591002"], ["updated_at", "2017-11-21 00:45:33.591002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.595628"], ["updated_at", "2017-11-21 00:45:33.595628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.599609"], ["updated_at", "2017-11-21 00:45:33.599609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.605053"], ["updated_at", "2017-11-21 00:45:33.605053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.606190"], ["updated_at", "2017-11-21 00:45:33.606190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 00:45:33.615938"], ["updated_at", "2017-11-21 00:45:33.615938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-21 00:45:33.617714"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 00:45:33.619093"], ["updated_at", "2017-11-21 00:45:33.619093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 00:45:33.620071"], ["updated_at", "2017-11-21 00:45:33.620071"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 00:45:33.624157"], ["updated_at", "2017-11-21 00:45:33.624157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 00:45:33.626788"], ["updated_at", "2017-11-21 00:45:33.626788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.635417"], ["updated_at", "2017-11-21 00:45:33.635417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.636245"], ["updated_at", "2017-11-21 00:45:33.636245"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 00:45:33.638524"], ["updated_at", "2017-11-21 00:45:33.638524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 00:45:33.639358"], ["updated_at", "2017-11-21 00:45:33.639358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.640197"], ["updated_at", "2017-11-21 00:45:33.640197"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 00:45:33.647933"], ["updated_at", "2017-11-21 00:45:33.647933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.652615"], ["updated_at", "2017-11-21 00:45:33.652615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.654796"], ["updated_at", "2017-11-21 00:45:33.654796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.656771"], ["updated_at", "2017-11-21 00:45:33.656771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.660484"], ["updated_at", "2017-11-21 00:45:33.660484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.671922"], ["updated_at", "2017-11-21 00:45:33.671922"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 00:45:33.678406"], ["updated_at", "2017-11-21 00:45:33.678406"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 00:45:33.679264"], ["updated_at", "2017-11-21 00:45:33.679264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 00:45:33.681066"], ["updated_at", "2017-11-21 00:45:33.681066"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 00:45:33.682008"], ["updated_at", "2017-11-21 00:45:33.682008"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.685358"], ["updated_at", "2017-11-21 00:45:33.685358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.686114"], ["updated_at", "2017-11-21 00:45:33.686114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.703777"], ["updated_at", "2017-11-21 00:45:33.703777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 00:45:33.704623"], ["updated_at", "2017-11-21 00:45:33.704623"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.707045"], ["updated_at", "2017-11-21 00:45:33.707045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.707806"], ["updated_at", "2017-11-21 00:45:33.707806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.715496"], ["updated_at", "2017-11-21 00:45:33.715496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.716447"], ["updated_at", "2017-11-21 00:45:33.716447"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.718442"], ["updated_at", "2017-11-21 00:45:33.718442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.719265"], ["updated_at", "2017-11-21 00:45:33.719265"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.721152"], ["updated_at", "2017-11-21 00:45:33.721152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.726312"], ["updated_at", "2017-11-21 00:45:33.726312"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.727173"], ["updated_at", "2017-11-21 00:45:33.727173"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.734042"], ["updated_at", "2017-11-21 00:45:33.734042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 00:45:33.741383"], ["updated_at", "2017-11-21 00:45:33.741383"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.752907"], ["updated_at", "2017-11-21 00:45:33.752907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.758124"], ["updated_at", "2017-11-21 00:45:33.758124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.759176"], ["updated_at", "2017-11-21 00:45:33.759176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.760223"], ["updated_at", "2017-11-21 00:45:33.760223"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 00:45:33.763322"], ["updated_at", "2017-11-21 00:45:33.763322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 00:45:33.764463"], ["updated_at", "2017-11-21 00:45:33.764463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 00:45:33.766989"], ["updated_at", "2017-11-21 00:45:33.766989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 00:45:33.768054"], ["updated_at", "2017-11-21 00:45:33.768054"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 00:45:33.775631"], ["updated_at", "2017-11-21 00:45:33.775631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.778336"], ["updated_at", "2017-11-21 00:45:33.778336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.783817"], ["updated_at", "2017-11-21 00:45:33.783817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.790416"], ["updated_at", "2017-11-21 00:45:33.790416"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.2ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.797464"], ["updated_at", "2017-11-21 00:45:33.797464"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.800215"], ["updated_at", "2017-11-21 00:45:33.800215"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.805619"], ["updated_at", "2017-11-21 00:45:33.805619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.811632"], ["updated_at", "2017-11-21 00:45:33.811632"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.814285"], ["updated_at", "2017-11-21 00:45:33.814285"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.818701"], ["updated_at", "2017-11-21 00:45:33.818701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.819588"], ["updated_at", "2017-11-21 00:45:33.819588"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.821857"], ["updated_at", "2017-11-21 00:45:33.821857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.825542"], ["updated_at", "2017-11-21 00:45:33.825542"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.826712"], ["updated_at", "2017-11-21 00:45:33.826712"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.829840"], ["updated_at", "2017-11-21 00:45:33.829840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.834236"], ["updated_at", "2017-11-21 00:45:33.834236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.835166"], ["updated_at", "2017-11-21 00:45:33.835166"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.837736"], ["updated_at", "2017-11-21 00:45:33.837736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.847635"], ["updated_at", "2017-11-21 00:45:33.847635"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.850333"], ["updated_at", "2017-11-21 00:45:33.850333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.851680"], ["updated_at", "2017-11-21 00:45:33.851680"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.854580"], ["updated_at", "2017-11-21 00:45:33.854580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.857040"], ["updated_at", "2017-11-21 00:45:33.857040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index -----------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:33.977717"], ["updated_at", "2017-11-21 00:45:33.977717"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 00:45:33.997097"], ["updated_at", "2017-11-21 00:45:33.997097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 00:45:33.997925"], ["updated_at", "2017-11-21 00:45:33.997925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:34.014989"], ["updated_at", "2017-11-21 00:45:34.014989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:34.019617"], ["updated_at", "2017-11-21 00:45:34.019617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 00:45:34.022043"], ["updated_at", "2017-11-21 00:45:34.022043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 00:45:34.037879"], ["updated_at", "2017-11-21 00:45:34.037879"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller -----------------------------------------------------------------  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)   (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms) CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms) CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load -------------------------------------------------------------  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.203144"], ["updated_at", "2017-11-21 22:26:24.203144"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.206789"], ["updated_at", "2017-11-21 22:26:24.206789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.240409"], ["updated_at", "2017-11-21 22:26:24.240409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.255349"], ["updated_at", "2017-11-21 22:26:24.255349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.256443"], ["updated_at", "2017-11-21 22:26:24.256443"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.258682"], ["updated_at", "2017-11-21 22:26:24.258682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.259526"], ["updated_at", "2017-11-21 22:26:24.259526"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.261921"], ["updated_at", "2017-11-21 22:26:24.261921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.264189"], ["updated_at", "2017-11-21 22:26:24.264189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.267489"], ["updated_at", "2017-11-21 22:26:24.267489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.273308"], ["updated_at", "2017-11-21 22:26:24.273308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.274593"], ["updated_at", "2017-11-21 22:26:24.274593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 22:26:24.287535"], ["updated_at", "2017-11-21 22:26:24.287535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 22:26:24.290373"], ["updated_at", "2017-11-21 22:26:24.290373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.307987"], ["updated_at", "2017-11-21 22:26:24.307987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.308910"], ["updated_at", "2017-11-21 22:26:24.308910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.309742"], ["updated_at", "2017-11-21 22:26:24.309742"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.312354"], ["updated_at", "2017-11-21 22:26:24.312354"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.313245"], ["updated_at", "2017-11-21 22:26:24.313245"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.316060"], ["updated_at", "2017-11-21 22:26:24.316060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.316895"], ["updated_at", "2017-11-21 22:26:24.316895"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.319388"], ["updated_at", "2017-11-21 22:26:24.319388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.320200"], ["updated_at", "2017-11-21 22:26:24.320200"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.329842"], ["updated_at", "2017-11-21 22:26:24.329842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.331926"], ["updated_at", "2017-11-21 22:26:24.331926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.333698"], ["updated_at", "2017-11-21 22:26:24.333698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.337283"], ["updated_at", "2017-11-21 22:26:24.337283"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.338554"], ["updated_at", "2017-11-21 22:26:24.338554"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 22:26:24.345871"], ["updated_at", "2017-11-21 22:26:24.345871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.348556"], ["updated_at", "2017-11-21 22:26:24.348556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 22:26:24.357898"], ["updated_at", "2017-11-21 22:26:24.357898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.362525"], ["updated_at", "2017-11-21 22:26:24.362525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.363420"], ["updated_at", "2017-11-21 22:26:24.363420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.364388"], ["updated_at", "2017-11-21 22:26:24.364388"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.367261"], ["updated_at", "2017-11-21 22:26:24.367261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.368214"], ["updated_at", "2017-11-21 22:26:24.368214"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 22:26:24.372675"], ["updated_at", "2017-11-21 22:26:24.372675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-21 22:26:24.374729"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 22:26:24.376157"], ["updated_at", "2017-11-21 22:26:24.376157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 22:26:24.377030"], ["updated_at", "2017-11-21 22:26:24.377030"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.381746"], ["updated_at", "2017-11-21 22:26:24.381746"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.388269"], ["updated_at", "2017-11-21 22:26:24.388269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.389217"], ["updated_at", "2017-11-21 22:26:24.389217"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.392268"], ["updated_at", "2017-11-21 22:26:24.392268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 22:26:24.398071"], ["updated_at", "2017-11-21 22:26:24.398071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.412636"], ["updated_at", "2017-11-21 22:26:24.412636"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.415330"], ["updated_at", "2017-11-21 22:26:24.415330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.418975"], ["updated_at", "2017-11-21 22:26:24.418975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.419828"], ["updated_at", "2017-11-21 22:26:24.419828"]]  (0.3ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.421962"], ["updated_at", "2017-11-21 22:26:24.421962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.424261"], ["updated_at", "2017-11-21 22:26:24.424261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.428427"], ["updated_at", "2017-11-21 22:26:24.428427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.429244"], ["updated_at", "2017-11-21 22:26:24.429244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.431326"], ["updated_at", "2017-11-21 22:26:24.431326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.434965"], ["updated_at", "2017-11-21 22:26:24.434965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.435798"], ["updated_at", "2017-11-21 22:26:24.435798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.441220"], ["updated_at", "2017-11-21 22:26:24.441220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.444773"], ["updated_at", "2017-11-21 22:26:24.444773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.445649"], ["updated_at", "2017-11-21 22:26:24.445649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.463920"], ["updated_at", "2017-11-21 22:26:24.463920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.469510"], ["updated_at", "2017-11-21 22:26:24.469510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.482341"], ["updated_at", "2017-11-21 22:26:24.482341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.491003"], ["updated_at", "2017-11-21 22:26:24.491003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.495545"], ["updated_at", "2017-11-21 22:26:24.495545"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.497376"], ["updated_at", "2017-11-21 22:26:24.497376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.514236"], ["updated_at", "2017-11-21 22:26:24.514236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 22:26:24.517820"], ["updated_at", "2017-11-21 22:26:24.517820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 22:26:24.518661"], ["updated_at", "2017-11-21 22:26:24.518661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 22:26:24.520277"], ["updated_at", "2017-11-21 22:26:24.520277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 22:26:24.521100"], ["updated_at", "2017-11-21 22:26:24.521100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 22:26:24.527512"], ["updated_at", "2017-11-21 22:26:24.527512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 22:26:24.528304"], ["updated_at", "2017-11-21 22:26:24.528304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.529007"], ["updated_at", "2017-11-21 22:26:24.529007"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.531098"], ["updated_at", "2017-11-21 22:26:24.531098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 22:26:24.532009"], ["updated_at", "2017-11-21 22:26:24.532009"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 22:26:24.534291"], ["updated_at", "2017-11-21 22:26:24.534291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 22:26:24.535070"], ["updated_at", "2017-11-21 22:26:24.535070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 22:26:24.536788"], ["updated_at", "2017-11-21 22:26:24.536788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 22:26:24.537615"], ["updated_at", "2017-11-21 22:26:24.537615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller -----------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.555122"], ["updated_at", "2017-11-21 22:26:24.555122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 22:26:24.559726"], ["updated_at", "2017-11-21 22:26:24.559726"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.561507"], ["updated_at", "2017-11-21 22:26:24.561507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.566340"], ["updated_at", "2017-11-21 22:26:24.566340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 22:26:24.568808"], ["updated_at", "2017-11-21 22:26:24.568808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 22:26:24.584317"], ["updated_at", "2017-11-21 22:26:24.584317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 22:26:24.585176"], ["updated_at", "2017-11-21 22:26:24.585176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------  (2.9ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 12ms (Views: 6.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:16:37.212920"], ["updated_at", "2017-11-21 23:16:37.212920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:16:37.214311"], ["updated_at", "2017-11-21 23:16:37.214311"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:16:37.227625"], ["updated_at", "2017-11-21 23:16:37.227625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:16:37.228537"], ["updated_at", "2017-11-21 23:16:37.228537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.240180"], ["updated_at", "2017-11-21 23:16:37.240180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.241205"], ["updated_at", "2017-11-21 23:16:37.241205"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.252169"], ["updated_at", "2017-11-21 23:16:37.252169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:16:37.256244"], ["updated_at", "2017-11-21 23:16:37.256244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:16:37.258683"], ["updated_at", "2017-11-21 23:16:37.258683"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.271007"], ["updated_at", "2017-11-21 23:16:37.271007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.276724"], ["updated_at", "2017-11-21 23:16:37.276724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.280581"], ["updated_at", "2017-11-21 23:16:37.280581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.281311"], ["updated_at", "2017-11-21 23:16:37.281311"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.294546"], ["updated_at", "2017-11-21 23:16:37.294546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.295564"], ["updated_at", "2017-11-21 23:16:37.295564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.303119"], ["updated_at", "2017-11-21 23:16:37.303119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.307741"], ["updated_at", "2017-11-21 23:16:37.307741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.308585"], ["updated_at", "2017-11-21 23:16:37.308585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.309448"], ["updated_at", "2017-11-21 23:16:37.309448"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.315664"], ["updated_at", "2017-11-21 23:16:37.315664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.316670"], ["updated_at", "2017-11-21 23:16:37.316670"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.319085"], ["updated_at", "2017-11-21 23:16:37.319085"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:16:37.321124"], ["updated_at", "2017-11-21 23:16:37.321124"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.332799"], ["updated_at", "2017-11-21 23:16:37.332799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.337528"], ["updated_at", "2017-11-21 23:16:37.337528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.343869"], ["updated_at", "2017-11-21 23:16:37.343869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.353101"], ["updated_at", "2017-11-21 23:16:37.353101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.357749"], ["updated_at", "2017-11-21 23:16:37.357749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.358582"], ["updated_at", "2017-11-21 23:16:37.358582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.363745"], ["updated_at", "2017-11-21 23:16:37.363745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.364518"], ["updated_at", "2017-11-21 23:16:37.364518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.366424"], ["updated_at", "2017-11-21 23:16:37.366424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.369405"], ["updated_at", "2017-11-21 23:16:37.369405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.371286"], ["updated_at", "2017-11-21 23:16:37.371286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.374274"], ["updated_at", "2017-11-21 23:16:37.374274"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.376422"], ["updated_at", "2017-11-21 23:16:37.376422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.380198"], ["updated_at", "2017-11-21 23:16:37.380198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.380948"], ["updated_at", "2017-11-21 23:16:37.380948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.381619"], ["updated_at", "2017-11-21 23:16:37.381619"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.383990"], ["updated_at", "2017-11-21 23:16:37.383990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.384733"], ["updated_at", "2017-11-21 23:16:37.384733"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.386819"], ["updated_at", "2017-11-21 23:16:37.386819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.387655"], ["updated_at", "2017-11-21 23:16:37.387655"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.389829"], ["updated_at", "2017-11-21 23:16:37.389829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.393389"], ["updated_at", "2017-11-21 23:16:37.393389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.409689"], ["updated_at", "2017-11-21 23:16:37.409689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.410522"], ["updated_at", "2017-11-21 23:16:37.410522"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:16:37.417814"], ["updated_at", "2017-11-21 23:16:37.417814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:16:37.422150"], ["updated_at", "2017-11-21 23:16:37.422150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:16:37.423219"], ["updated_at", "2017-11-21 23:16:37.423219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:16:37.425216"], ["updated_at", "2017-11-21 23:16:37.425216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:16:37.426188"], ["updated_at", "2017-11-21 23:16:37.426188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:16:37.434440"], ["updated_at", "2017-11-21 23:16:37.434440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-21 23:16:37.435902"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:16:37.437214"], ["updated_at", "2017-11-21 23:16:37.437214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:16:37.437984"], ["updated_at", "2017-11-21 23:16:37.437984"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.441230"], ["updated_at", "2017-11-21 23:16:37.441230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.445392"], ["updated_at", "2017-11-21 23:16:37.445392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.446215"], ["updated_at", "2017-11-21 23:16:37.446215"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.447830"], ["updated_at", "2017-11-21 23:16:37.447830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.448528"], ["updated_at", "2017-11-21 23:16:37.448528"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:16:37.451871"], ["updated_at", "2017-11-21 23:16:37.451871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.462735"], ["updated_at", "2017-11-21 23:16:37.462735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.465321"], ["updated_at", "2017-11-21 23:16:37.465321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.467576"], ["updated_at", "2017-11-21 23:16:37.467576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.470878"], ["updated_at", "2017-11-21 23:16:37.470878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.475453"], ["updated_at", "2017-11-21 23:16:37.475453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:16:37.476293"], ["updated_at", "2017-11-21 23:16:37.476293"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.478485"], ["updated_at", "2017-11-21 23:16:37.478485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.479412"], ["updated_at", "2017-11-21 23:16:37.479412"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.483949"], ["updated_at", "2017-11-21 23:16:37.483949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.484840"], ["updated_at", "2017-11-21 23:16:37.484840"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.493370"], ["updated_at", "2017-11-21 23:16:37.493370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.495481"], ["updated_at", "2017-11-21 23:16:37.495481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:16:37.498574"], ["updated_at", "2017-11-21 23:16:37.498574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:16:37.499508"], ["updated_at", "2017-11-21 23:16:37.499508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.500279"], ["updated_at", "2017-11-21 23:16:37.500279"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.509896"], ["updated_at", "2017-11-21 23:16:37.509896"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.511295"], ["updated_at", "2017-11-21 23:16:37.511295"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.621159"], ["updated_at", "2017-11-21 23:16:37.621159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:16:37.656198"], ["updated_at", "2017-11-21 23:16:37.656198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:16:37.657024"], ["updated_at", "2017-11-21 23:16:37.657024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.671864"], ["updated_at", "2017-11-21 23:16:37.671864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.677140"], ["updated_at", "2017-11-21 23:16:37.677140"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:16:37.680993"], ["updated_at", "2017-11-21 23:16:37.680993"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:16:37.693932"], ["updated_at", "2017-11-21 23:16:37.693932"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.608663"], ["updated_at", "2017-11-21 23:22:16.608663"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.611861"], ["updated_at", "2017-11-21 23:22:16.611861"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.612777"], ["updated_at", "2017-11-21 23:22:16.612777"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:22:16.623355"], ["updated_at", "2017-11-21 23:22:16.623355"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.640099"], ["updated_at", "2017-11-21 23:22:16.640099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.641067"], ["updated_at", "2017-11-21 23:22:16.641067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.641841"], ["updated_at", "2017-11-21 23:22:16.641841"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.644903"], ["updated_at", "2017-11-21 23:22:16.644903"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.660105"], ["updated_at", "2017-11-21 23:22:16.660105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.665069"], ["updated_at", "2017-11-21 23:22:16.665069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:22:16.670205"], ["updated_at", "2017-11-21 23:22:16.670205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:22:16.671845"], ["updated_at", "2017-11-21 23:22:16.671845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:22:16.674709"], ["updated_at", "2017-11-21 23:22:16.674709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:22:16.675698"], ["updated_at", "2017-11-21 23:22:16.675698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.687158"], ["updated_at", "2017-11-21 23:22:16.687158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.688262"], ["updated_at", "2017-11-21 23:22:16.688262"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.708449"], ["updated_at", "2017-11-21 23:22:16.708449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.713414"], ["updated_at", "2017-11-21 23:22:16.713414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.714380"], ["updated_at", "2017-11-21 23:22:16.714380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.716603"], ["updated_at", "2017-11-21 23:22:16.716603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:22:16.719996"], ["updated_at", "2017-11-21 23:22:16.719996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:22:16.720898"], ["updated_at", "2017-11-21 23:22:16.720898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:22:16.722736"], ["updated_at", "2017-11-21 23:22:16.722736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:22:16.723603"], ["updated_at", "2017-11-21 23:22:16.723603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.727120"], ["updated_at", "2017-11-21 23:22:16.727120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.728134"], ["updated_at", "2017-11-21 23:22:16.728134"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.730187"], ["updated_at", "2017-11-21 23:22:16.730187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.731085"], ["updated_at", "2017-11-21 23:22:16.731085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.736737"], ["updated_at", "2017-11-21 23:22:16.736737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.737498"], ["updated_at", "2017-11-21 23:22:16.737498"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.739367"], ["updated_at", "2017-11-21 23:22:16.739367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.740186"], ["updated_at", "2017-11-21 23:22:16.740186"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.742541"], ["updated_at", "2017-11-21 23:22:16.742541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.744930"], ["updated_at", "2017-11-21 23:22:16.744930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.748495"], ["updated_at", "2017-11-21 23:22:16.748495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.749547"], ["updated_at", "2017-11-21 23:22:16.749547"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.751939"], ["updated_at", "2017-11-21 23:22:16.751939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.752769"], ["updated_at", "2017-11-21 23:22:16.752769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.2ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:22:16.774072"], ["updated_at", "2017-11-21 23:22:16.774072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-21 23:22:16.775888"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:22:16.777719"], ["updated_at", "2017-11-21 23:22:16.777719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:22:16.778700"], ["updated_at", "2017-11-21 23:22:16.778700"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:22:16.792514"], ["updated_at", "2017-11-21 23:22:16.792514"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:22:16.793837"], ["updated_at", "2017-11-21 23:22:16.793837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.794781"], ["updated_at", "2017-11-21 23:22:16.794781"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.796797"], ["updated_at", "2017-11-21 23:22:16.796797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.802580"], ["updated_at", "2017-11-21 23:22:16.802580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.803639"], ["updated_at", "2017-11-21 23:22:16.803639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.813078"], ["updated_at", "2017-11-21 23:22:16.813078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.815227"], ["updated_at", "2017-11-21 23:22:16.815227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.817290"], ["updated_at", "2017-11-21 23:22:16.817290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.820752"], ["updated_at", "2017-11-21 23:22:16.820752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.821747"], ["updated_at", "2017-11-21 23:22:16.821747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.824157"], ["updated_at", "2017-11-21 23:22:16.824157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.828169"], ["updated_at", "2017-11-21 23:22:16.828169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.829105"], ["updated_at", "2017-11-21 23:22:16.829105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.834866"], ["updated_at", "2017-11-21 23:22:16.834866"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.835683"], ["updated_at", "2017-11-21 23:22:16.835683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.844296"], ["updated_at", "2017-11-21 23:22:16.844296"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.849291"], ["updated_at", "2017-11-21 23:22:16.849291"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:22:16.850104"], ["updated_at", "2017-11-21 23:22:16.850104"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.855585"], ["updated_at", "2017-11-21 23:22:16.855585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.860668"], ["updated_at", "2017-11-21 23:22:16.860668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.865478"], ["updated_at", "2017-11-21 23:22:16.865478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.866360"], ["updated_at", "2017-11-21 23:22:16.866360"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.868945"], ["updated_at", "2017-11-21 23:22:16.868945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.874175"], ["updated_at", "2017-11-21 23:22:16.874175"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.881504"], ["updated_at", "2017-11-21 23:22:16.881504"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:22:16.888349"], ["updated_at", "2017-11-21 23:22:16.888349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:22:16.890335"], ["updated_at", "2017-11-21 23:22:16.890335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.898163"], ["updated_at", "2017-11-21 23:22:16.898163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.900444"], ["updated_at", "2017-11-21 23:22:16.900444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.903654"], ["updated_at", "2017-11-21 23:22:16.903654"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.908010"], ["updated_at", "2017-11-21 23:22:16.908010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.908883"], ["updated_at", "2017-11-21 23:22:16.908883"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.911043"], ["updated_at", "2017-11-21 23:22:16.911043"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:22:16.917628"], ["updated_at", "2017-11-21 23:22:16.917628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:22:16.927206"], ["updated_at", "2017-11-21 23:22:16.927206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:16.929504"], ["updated_at", "2017-11-21 23:22:16.929504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:17.096971"], ["updated_at", "2017-11-21 23:22:17.096971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:22:17.109790"], ["updated_at", "2017-11-21 23:22:17.109790"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:22:17.111275"], ["updated_at", "2017-11-21 23:22:17.111275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:22:17.123668"], ["updated_at", "2017-11-21 23:22:17.123668"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:17.125384"], ["updated_at", "2017-11-21 23:22:17.125384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:17.130580"], ["updated_at", "2017-11-21 23:22:17.130580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:17.133231"], ["updated_at", "2017-11-21 23:22:17.133231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.375490"], ["updated_at", "2017-11-21 23:22:46.375490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:22:46.393708"], ["updated_at", "2017-11-21 23:22:46.393708"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.397251"], ["updated_at", "2017-11-21 23:22:46.397251"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.405214"], ["updated_at", "2017-11-21 23:22:46.405214"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.408481"], ["updated_at", "2017-11-21 23:22:46.408481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:22:46.428771"], ["updated_at", "2017-11-21 23:22:46.428771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:22:46.429795"], ["updated_at", "2017-11-21 23:22:46.429795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.609356"], ["updated_at", "2017-11-21 23:22:46.609356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.610396"], ["updated_at", "2017-11-21 23:22:46.610396"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.613250"], ["updated_at", "2017-11-21 23:22:46.613250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.619292"], ["updated_at", "2017-11-21 23:22:46.619292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.620168"], ["updated_at", "2017-11-21 23:22:46.620168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.630254"], ["updated_at", "2017-11-21 23:22:46.630254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:22:46.631244"], ["updated_at", "2017-11-21 23:22:46.631244"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.636588"], ["updated_at", "2017-11-21 23:22:46.636588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.643740"], ["updated_at", "2017-11-21 23:22:46.643740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.644707"], ["updated_at", "2017-11-21 23:22:46.644707"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.647025"], ["updated_at", "2017-11-21 23:22:46.647025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:22:46.650490"], ["updated_at", "2017-11-21 23:22:46.650490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:22:46.651340"], ["updated_at", "2017-11-21 23:22:46.651340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:22:46.653036"], ["updated_at", "2017-11-21 23:22:46.653036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:22:46.653816"], ["updated_at", "2017-11-21 23:22:46.653816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:22:46.666191"], ["updated_at", "2017-11-21 23:22:46.666191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.677596"], ["updated_at", "2017-11-21 23:22:46.677596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.682543"], ["updated_at", "2017-11-21 23:22:46.682543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.683320"], ["updated_at", "2017-11-21 23:22:46.683320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.692119"], ["updated_at", "2017-11-21 23:22:46.692119"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.701323"], ["updated_at", "2017-11-21 23:22:46.701323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.710624"], ["updated_at", "2017-11-21 23:22:46.710624"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.712875"], ["updated_at", "2017-11-21 23:22:46.712875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.714852"], ["updated_at", "2017-11-21 23:22:46.714852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.718440"], ["updated_at", "2017-11-21 23:22:46.718440"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.719314"], ["updated_at", "2017-11-21 23:22:46.719314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.724610"], ["updated_at", "2017-11-21 23:22:46.724610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.725445"], ["updated_at", "2017-11-21 23:22:46.725445"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.728492"], ["updated_at", "2017-11-21 23:22:46.728492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.734133"], ["updated_at", "2017-11-21 23:22:46.734133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.738948"], ["updated_at", "2017-11-21 23:22:46.738948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.740509"], ["updated_at", "2017-11-21 23:22:46.740509"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.742785"], ["updated_at", "2017-11-21 23:22:46.742785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.743535"], ["updated_at", "2017-11-21 23:22:46.743535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.745628"], ["updated_at", "2017-11-21 23:22:46.745628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.748809"], ["updated_at", "2017-11-21 23:22:46.748809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.749573"], ["updated_at", "2017-11-21 23:22:46.749573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.750364"], ["updated_at", "2017-11-21 23:22:46.750364"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:22:46.753435"], ["updated_at", "2017-11-21 23:22:46.753435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-21 23:22:46.754625"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:22:46.755619"], ["updated_at", "2017-11-21 23:22:46.755619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:22:46.756898"], ["updated_at", "2017-11-21 23:22:46.756898"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.761135"], ["updated_at", "2017-11-21 23:22:46.761135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.762113"], ["updated_at", "2017-11-21 23:22:46.762113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.767540"], ["updated_at", "2017-11-21 23:22:46.767540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.768489"], ["updated_at", "2017-11-21 23:22:46.768489"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.770496"], ["updated_at", "2017-11-21 23:22:46.770496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.772499"], ["updated_at", "2017-11-21 23:22:46.772499"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.776175"], ["updated_at", "2017-11-21 23:22:46.776175"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.778521"], ["updated_at", "2017-11-21 23:22:46.778521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:22:46.781773"], ["updated_at", "2017-11-21 23:22:46.781773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:22:46.783647"], ["updated_at", "2017-11-21 23:22:46.783647"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.792864"], ["updated_at", "2017-11-21 23:22:46.792864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:22:46.797329"], ["updated_at", "2017-11-21 23:22:46.797329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.799243"], ["updated_at", "2017-11-21 23:22:46.799243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.802706"], ["updated_at", "2017-11-21 23:22:46.802706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.803463"], ["updated_at", "2017-11-21 23:22:46.803463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.804207"], ["updated_at", "2017-11-21 23:22:46.804207"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.806630"], ["updated_at", "2017-11-21 23:22:46.806630"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.807416"], ["updated_at", "2017-11-21 23:22:46.807416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.809179"], ["updated_at", "2017-11-21 23:22:46.809179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.812465"], ["updated_at", "2017-11-21 23:22:46.812465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.813255"], ["updated_at", "2017-11-21 23:22:46.813255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:22:46.821552"], ["updated_at", "2017-11-21 23:22:46.821552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:22:46.826307"], ["updated_at", "2017-11-21 23:22:46.826307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:22:46.827236"], ["updated_at", "2017-11-21 23:22:46.827236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:22:46.829395"], ["updated_at", "2017-11-21 23:22:46.829395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:22:46.830262"], ["updated_at", "2017-11-21 23:22:46.830262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.835982"], ["updated_at", "2017-11-21 23:22:46.835982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.836679"], ["updated_at", "2017-11-21 23:22:46.836679"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:22:46.838477"], ["updated_at", "2017-11-21 23:22:46.838477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:22:46.839741"], ["updated_at", "2017-11-21 23:22:46.839741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.840593"], ["updated_at", "2017-11-21 23:22:46.840593"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.842410"], ["updated_at", "2017-11-21 23:22:46.842410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.844295"], ["updated_at", "2017-11-21 23:22:46.844295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.859745"], ["updated_at", "2017-11-21 23:22:46.859745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.860874"], ["updated_at", "2017-11-21 23:22:46.860874"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.864251"], ["updated_at", "2017-11-21 23:22:46.864251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:46.869871"], ["updated_at", "2017-11-21 23:22:46.869871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.527324"], ["updated_at", "2017-11-21 23:22:54.527324"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:22:54.544959"], ["updated_at", "2017-11-21 23:22:54.544959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:22:54.545971"], ["updated_at", "2017-11-21 23:22:54.545971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:22:54.571265"], ["updated_at", "2017-11-21 23:22:54.571265"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.573923"], ["updated_at", "2017-11-21 23:22:54.573923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.584456"], ["updated_at", "2017-11-21 23:22:54.584456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.588429"], ["updated_at", "2017-11-21 23:22:54.588429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.681795"], ["updated_at", "2017-11-21 23:22:54.681795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.683133"], ["updated_at", "2017-11-21 23:22:54.683133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:22:54.688614"], ["updated_at", "2017-11-21 23:22:54.688614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:22:54.689368"], ["updated_at", "2017-11-21 23:22:54.689368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:22:54.691677"], ["updated_at", "2017-11-21 23:22:54.691677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:22:54.692631"], ["updated_at", "2017-11-21 23:22:54.692631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.709191"], ["updated_at", "2017-11-21 23:22:54.709191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.710245"], ["updated_at", "2017-11-21 23:22:54.710245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.717314"], ["updated_at", "2017-11-21 23:22:54.717314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.718299"], ["updated_at", "2017-11-21 23:22:54.718299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.727862"], ["updated_at", "2017-11-21 23:22:54.727862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.728764"], ["updated_at", "2017-11-21 23:22:54.728764"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.731505"], ["updated_at", "2017-11-21 23:22:54.731505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.732555"], ["updated_at", "2017-11-21 23:22:54.732555"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.734729"], ["updated_at", "2017-11-21 23:22:54.734729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.735641"], ["updated_at", "2017-11-21 23:22:54.735641"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.738669"], ["updated_at", "2017-11-21 23:22:54.738669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.745446"], ["updated_at", "2017-11-21 23:22:54.745446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.758943"], ["updated_at", "2017-11-21 23:22:54.758943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.760483"], ["updated_at", "2017-11-21 23:22:54.760483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.763463"], ["updated_at", "2017-11-21 23:22:54.763463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.768112"], ["updated_at", "2017-11-21 23:22:54.768112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:22:54.769139"], ["updated_at", "2017-11-21 23:22:54.769139"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.771760"], ["updated_at", "2017-11-21 23:22:54.771760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.780243"], ["updated_at", "2017-11-21 23:22:54.780243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.781594"], ["updated_at", "2017-11-21 23:22:54.781594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.782638"], ["updated_at", "2017-11-21 23:22:54.782638"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.785814"], ["updated_at", "2017-11-21 23:22:54.785814"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.791150"], ["updated_at", "2017-11-21 23:22:54.791150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.792066"], ["updated_at", "2017-11-21 23:22:54.792066"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:22:54.795262"], ["updated_at", "2017-11-21 23:22:54.795262"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:22:54.796220"], ["updated_at", "2017-11-21 23:22:54.796220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:22:54.798001"], ["updated_at", "2017-11-21 23:22:54.798001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:22:54.799077"], ["updated_at", "2017-11-21 23:22:54.799077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.803371"], ["updated_at", "2017-11-21 23:22:54.803371"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.804545"], ["updated_at", "2017-11-21 23:22:54.804545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.807906"], ["updated_at", "2017-11-21 23:22:54.807906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.812633"], ["updated_at", "2017-11-21 23:22:54.812633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.815341"], ["updated_at", "2017-11-21 23:22:54.815341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.821783"], ["updated_at", "2017-11-21 23:22:54.821783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.824023"], ["updated_at", "2017-11-21 23:22:54.824023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.829086"], ["updated_at", "2017-11-21 23:22:54.829086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.849099"], ["updated_at", "2017-11-21 23:22:54.849099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.850136"], ["updated_at", "2017-11-21 23:22:54.850136"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.861935"], ["updated_at", "2017-11-21 23:22:54.861935"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.866944"], ["updated_at", "2017-11-21 23:22:54.866944"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.868873"], ["updated_at", "2017-11-21 23:22:54.868873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.869749"], ["updated_at", "2017-11-21 23:22:54.869749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.870485"], ["updated_at", "2017-11-21 23:22:54.870485"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:22:54.875104"], ["updated_at", "2017-11-21 23:22:54.875104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-21 23:22:54.877580"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:22:54.878752"], ["updated_at", "2017-11-21 23:22:54.878752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:22:54.879634"], ["updated_at", "2017-11-21 23:22:54.879634"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:22:54.884004"], ["updated_at", "2017-11-21 23:22:54.884004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:22:54.886571"], ["updated_at", "2017-11-21 23:22:54.886571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.895570"], ["updated_at", "2017-11-21 23:22:54.895570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.896480"], ["updated_at", "2017-11-21 23:22:54.896480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:22:54.902346"], ["updated_at", "2017-11-21 23:22:54.902346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.904882"], ["updated_at", "2017-11-21 23:22:54.904882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.908620"], ["updated_at", "2017-11-21 23:22:54.908620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.909591"], ["updated_at", "2017-11-21 23:22:54.909591"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.911884"], ["updated_at", "2017-11-21 23:22:54.911884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.914008"], ["updated_at", "2017-11-21 23:22:54.914008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.917784"], ["updated_at", "2017-11-21 23:22:54.917784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.920293"], ["updated_at", "2017-11-21 23:22:54.920293"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.922443"], ["updated_at", "2017-11-21 23:22:54.922443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.926025"], ["updated_at", "2017-11-21 23:22:54.926025"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:22:54.930841"], ["updated_at", "2017-11-21 23:22:54.930841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:22:54.931948"], ["updated_at", "2017-11-21 23:22:54.931948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.932851"], ["updated_at", "2017-11-21 23:22:54.932851"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.934812"], ["updated_at", "2017-11-21 23:22:54.934812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.935580"], ["updated_at", "2017-11-21 23:22:54.935580"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.937814"], ["updated_at", "2017-11-21 23:22:54.937814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:22:54.944794"], ["updated_at", "2017-11-21 23:22:54.944794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.949844"], ["updated_at", "2017-11-21 23:22:54.949844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:22:54.956475"], ["updated_at", "2017-11-21 23:22:54.956475"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.967991"], ["updated_at", "2017-11-21 23:22:54.967991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.968962"], ["updated_at", "2017-11-21 23:22:54.968962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:22:54.980693"], ["updated_at", "2017-11-21 23:22:54.980693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test -----------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:28:56.443634"], ["updated_at", "2017-11-21 23:28:56.443634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:28:56.452844"], ["updated_at", "2017-11-21 23:28:56.452844"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:28:56.465531"], ["updated_at", "2017-11-21 23:28:56.465531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:28:56.466636"], ["updated_at", "2017-11-21 23:28:56.466636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:28:56.495477"], ["updated_at", "2017-11-21 23:28:56.495477"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.499034"], ["updated_at", "2017-11-21 23:28:56.499034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.503246"], ["updated_at", "2017-11-21 23:28:56.503246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.508169"], ["updated_at", "2017-11-21 23:28:56.508169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.508945"], ["updated_at", "2017-11-21 23:28:56.508945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.514635"], ["updated_at", "2017-11-21 23:28:56.514635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:28:56.515616"], ["updated_at", "2017-11-21 23:28:56.515616"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.527174"], ["updated_at", "2017-11-21 23:28:56.527174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.529323"], ["updated_at", "2017-11-21 23:28:56.529323"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.531816"], ["updated_at", "2017-11-21 23:28:56.531816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.535039"], ["updated_at", "2017-11-21 23:28:56.535039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.537155"], ["updated_at", "2017-11-21 23:28:56.537155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:28:56.540253"], ["updated_at", "2017-11-21 23:28:56.540253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:28:56.542183"], ["updated_at", "2017-11-21 23:28:56.542183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.550949"], ["updated_at", "2017-11-21 23:28:56.550949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.551808"], ["updated_at", "2017-11-21 23:28:56.551808"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.553818"], ["updated_at", "2017-11-21 23:28:56.553818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.554572"], ["updated_at", "2017-11-21 23:28:56.554572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.556915"], ["updated_at", "2017-11-21 23:28:56.556915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.560062"], ["updated_at", "2017-11-21 23:28:56.560062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.562024"], ["updated_at", "2017-11-21 23:28:56.562024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:28:56.570897"], ["updated_at", "2017-11-21 23:28:56.570897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-21 23:28:56.572814"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:28:56.574265"], ["updated_at", "2017-11-21 23:28:56.574265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:28:56.575036"], ["updated_at", "2017-11-21 23:28:56.575036"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.578639"], ["updated_at", "2017-11-21 23:28:56.578639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.579456"], ["updated_at", "2017-11-21 23:28:56.579456"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.593610"], ["updated_at", "2017-11-21 23:28:56.593610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.594395"], ["updated_at", "2017-11-21 23:28:56.594395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.595095"], ["updated_at", "2017-11-21 23:28:56.595095"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.598124"], ["updated_at", "2017-11-21 23:28:56.598124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:28:56.603841"], ["updated_at", "2017-11-21 23:28:56.603841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:28:56.604746"], ["updated_at", "2017-11-21 23:28:56.604746"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:28:56.622041"], ["updated_at", "2017-11-21 23:28:56.622041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:28:56.623021"], ["updated_at", "2017-11-21 23:28:56.623021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.627262"], ["updated_at", "2017-11-21 23:28:56.627262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.637054"], ["updated_at", "2017-11-21 23:28:56.637054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.643632"], ["updated_at", "2017-11-21 23:28:56.643632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.644452"], ["updated_at", "2017-11-21 23:28:56.644452"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.646978"], ["updated_at", "2017-11-21 23:28:56.646978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.650521"], ["updated_at", "2017-11-21 23:28:56.650521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.655302"], ["updated_at", "2017-11-21 23:28:56.655302"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:28:56.660024"], ["updated_at", "2017-11-21 23:28:56.660024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:28:56.672624"], ["updated_at", "2017-11-21 23:28:56.672624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:28:56.674110"], ["updated_at", "2017-11-21 23:28:56.674110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.675400"], ["updated_at", "2017-11-21 23:28:56.675400"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.678315"], ["updated_at", "2017-11-21 23:28:56.678315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.684176"], ["updated_at", "2017-11-21 23:28:56.684176"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.690570"], ["updated_at", "2017-11-21 23:28:56.690570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:28:56.700563"], ["updated_at", "2017-11-21 23:28:56.700563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.706082"], ["updated_at", "2017-11-21 23:28:56.706082"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.711469"], ["updated_at", "2017-11-21 23:28:56.711469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.712632"], ["updated_at", "2017-11-21 23:28:56.712632"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.715592"], ["updated_at", "2017-11-21 23:28:56.715592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.720958"], ["updated_at", "2017-11-21 23:28:56.720958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.728260"], ["updated_at", "2017-11-21 23:28:56.728260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.729320"], ["updated_at", "2017-11-21 23:28:56.729320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.737512"], ["updated_at", "2017-11-21 23:28:56.737512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.738823"], ["updated_at", "2017-11-21 23:28:56.738823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.739898"], ["updated_at", "2017-11-21 23:28:56.739898"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.743761"], ["updated_at", "2017-11-21 23:28:56.743761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.745039"], ["updated_at", "2017-11-21 23:28:56.745039"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.748522"], ["updated_at", "2017-11-21 23:28:56.748522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.753458"], ["updated_at", "2017-11-21 23:28:56.753458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.754619"], ["updated_at", "2017-11-21 23:28:56.754619"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.759162"], ["updated_at", "2017-11-21 23:28:56.759162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.760161"], ["updated_at", "2017-11-21 23:28:56.760161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.772874"], ["updated_at", "2017-11-21 23:28:56.772874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.773883"], ["updated_at", "2017-11-21 23:28:56.773883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.815863"], ["updated_at", "2017-11-21 23:28:56.815863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.816917"], ["updated_at", "2017-11-21 23:28:56.816917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.824193"], ["updated_at", "2017-11-21 23:28:56.824193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.825115"], ["updated_at", "2017-11-21 23:28:56.825115"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.827494"], ["updated_at", "2017-11-21 23:28:56.827494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.828322"], ["updated_at", "2017-11-21 23:28:56.828322"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.852179"], ["updated_at", "2017-11-21 23:28:56.852179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.858652"], ["updated_at", "2017-11-21 23:28:56.858652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.862075"], ["updated_at", "2017-11-21 23:28:56.862075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:28:56.902726"], ["updated_at", "2017-11-21 23:28:56.902726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:28:56.903703"], ["updated_at", "2017-11-21 23:28:56.903703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:28:56.916721"], ["updated_at", "2017-11-21 23:28:56.916721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:28:56.922828"], ["updated_at", "2017-11-21 23:28:56.922828"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:29:09.846043"], ["updated_at", "2017-11-21 23:29:09.846043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:29:09.847070"], ["updated_at", "2017-11-21 23:29:09.847070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:09.880917"], ["updated_at", "2017-11-21 23:29:09.880917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:09.888931"], ["updated_at", "2017-11-21 23:29:09.888931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:09.891470"], ["updated_at", "2017-11-21 23:29:09.891470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:29:09.921065"], ["updated_at", "2017-11-21 23:29:09.921065"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:09.925701"], ["updated_at", "2017-11-21 23:29:09.925701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:29:10.009662"], ["updated_at", "2017-11-21 23:29:10.009662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.020333"], ["updated_at", "2017-11-21 23:29:10.020333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.021270"], ["updated_at", "2017-11-21 23:29:10.021270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.021983"], ["updated_at", "2017-11-21 23:29:10.021983"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:29:10.024872"], ["updated_at", "2017-11-21 23:29:10.024872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:29:10.026086"], ["updated_at", "2017-11-21 23:29:10.026086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:29:10.028739"], ["updated_at", "2017-11-21 23:29:10.028739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:29:10.029848"], ["updated_at", "2017-11-21 23:29:10.029848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.040359"], ["updated_at", "2017-11-21 23:29:10.040359"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.041474"], ["updated_at", "2017-11-21 23:29:10.041474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.044228"], ["updated_at", "2017-11-21 23:29:10.044228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.048067"], ["updated_at", "2017-11-21 23:29:10.048067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.050363"], ["updated_at", "2017-11-21 23:29:10.050363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.052807"], ["updated_at", "2017-11-21 23:29:10.052807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.056580"], ["updated_at", "2017-11-21 23:29:10.056580"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.057731"], ["updated_at", "2017-11-21 23:29:10.057731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.065097"], ["updated_at", "2017-11-21 23:29:10.065097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.065940"], ["updated_at", "2017-11-21 23:29:10.065940"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.077907"], ["updated_at", "2017-11-21 23:29:10.077907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.078929"], ["updated_at", "2017-11-21 23:29:10.078929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.079844"], ["updated_at", "2017-11-21 23:29:10.079844"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.083175"], ["updated_at", "2017-11-21 23:29:10.083175"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.084032"], ["updated_at", "2017-11-21 23:29:10.084032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.086788"], ["updated_at", "2017-11-21 23:29:10.086788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.091647"], ["updated_at", "2017-11-21 23:29:10.091647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.097222"], ["updated_at", "2017-11-21 23:29:10.097222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.098084"], ["updated_at", "2017-11-21 23:29:10.098084"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.100742"], ["updated_at", "2017-11-21 23:29:10.100742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.103943"], ["updated_at", "2017-11-21 23:29:10.103943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.111102"], ["updated_at", "2017-11-21 23:29:10.111102"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.117792"], ["updated_at", "2017-11-21 23:29:10.117792"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.125673"], ["updated_at", "2017-11-21 23:29:10.125673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.126701"], ["updated_at", "2017-11-21 23:29:10.126701"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.129241"], ["updated_at", "2017-11-21 23:29:10.129241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.136620"], ["updated_at", "2017-11-21 23:29:10.136620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.141754"], ["updated_at", "2017-11-21 23:29:10.141754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:29:10.142710"], ["updated_at", "2017-11-21 23:29:10.142710"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.145474"], ["updated_at", "2017-11-21 23:29:10.145474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.146328"], ["updated_at", "2017-11-21 23:29:10.146328"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.148311"], ["updated_at", "2017-11-21 23:29:10.148311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.151033"], ["updated_at", "2017-11-21 23:29:10.151033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.155128"], ["updated_at", "2017-11-21 23:29:10.155128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.156198"], ["updated_at", "2017-11-21 23:29:10.156198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.168816"], ["updated_at", "2017-11-21 23:29:10.168816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.170182"], ["updated_at", "2017-11-21 23:29:10.170182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:29:10.180137"], ["updated_at", "2017-11-21 23:29:10.180137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:29:10.186047"], ["updated_at", "2017-11-21 23:29:10.186047"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-21 23:29:10.187706"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:29:10.189156"], ["updated_at", "2017-11-21 23:29:10.189156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:29:10.190267"], ["updated_at", "2017-11-21 23:29:10.190267"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.194656"], ["updated_at", "2017-11-21 23:29:10.194656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.197170"], ["updated_at", "2017-11-21 23:29:10.197170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.208199"], ["updated_at", "2017-11-21 23:29:10.208199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.209054"], ["updated_at", "2017-11-21 23:29:10.209054"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.211285"], ["updated_at", "2017-11-21 23:29:10.211285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.215043"], ["updated_at", "2017-11-21 23:29:10.215043"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:29:10.216697"], ["updated_at", "2017-11-21 23:29:10.216697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.218856"], ["updated_at", "2017-11-21 23:29:10.218856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.222713"], ["updated_at", "2017-11-21 23:29:10.222713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.223558"], ["updated_at", "2017-11-21 23:29:10.223558"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:29:10.225955"], ["updated_at", "2017-11-21 23:29:10.225955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:29:10.226738"], ["updated_at", "2017-11-21 23:29:10.226738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.227482"], ["updated_at", "2017-11-21 23:29:10.227482"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:29:10.229170"], ["updated_at", "2017-11-21 23:29:10.229170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:29:10.229950"], ["updated_at", "2017-11-21 23:29:10.229950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:29:10.231520"], ["updated_at", "2017-11-21 23:29:10.231520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:29:10.232297"], ["updated_at", "2017-11-21 23:29:10.232297"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.235412"], ["updated_at", "2017-11-21 23:29:10.235412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.236793"], ["updated_at", "2017-11-21 23:29:10.236793"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.247511"], ["updated_at", "2017-11-21 23:29:10.247511"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.248353"], ["updated_at", "2017-11-21 23:29:10.248353"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:29:10.250329"], ["updated_at", "2017-11-21 23:29:10.250329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:29:10.253072"], ["updated_at", "2017-11-21 23:29:10.253072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.278619"], ["updated_at", "2017-11-21 23:29:10.278619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.285034"], ["updated_at", "2017-11-21 23:29:10.285034"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.292425"], ["updated_at", "2017-11-21 23:29:10.292425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.297163"], ["updated_at", "2017-11-21 23:29:10.297163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.301267"], ["updated_at", "2017-11-21 23:29:10.301267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:29:10.302123"], ["updated_at", "2017-11-21 23:29:10.302123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.400072"], ["updated_at", "2017-11-21 23:30:43.400072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.404981"], ["updated_at", "2017-11-21 23:30:43.404981"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:30:43.419023"], ["updated_at", "2017-11-21 23:30:43.419023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.448603"], ["updated_at", "2017-11-21 23:30:43.448603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:30:43.455819"], ["updated_at", "2017-11-21 23:30:43.455819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:30:43.459120"], ["updated_at", "2017-11-21 23:30:43.459120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.468319"], ["updated_at", "2017-11-21 23:30:43.468319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.469304"], ["updated_at", "2017-11-21 23:30:43.469304"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.480129"], ["updated_at", "2017-11-21 23:30:43.480129"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.480979"], ["updated_at", "2017-11-21 23:30:43.480979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.481856"], ["updated_at", "2017-11-21 23:30:43.481856"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.484543"], ["updated_at", "2017-11-21 23:30:43.484543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.485453"], ["updated_at", "2017-11-21 23:30:43.485453"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.487545"], ["updated_at", "2017-11-21 23:30:43.487545"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.494584"], ["updated_at", "2017-11-21 23:30:43.494584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.497093"], ["updated_at", "2017-11-21 23:30:43.497093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.500715"], ["updated_at", "2017-11-21 23:30:43.500715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.501671"], ["updated_at", "2017-11-21 23:30:43.501671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.513051"], ["updated_at", "2017-11-21 23:30:43.513051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.515449"], ["updated_at", "2017-11-21 23:30:43.515449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.517510"], ["updated_at", "2017-11-21 23:30:43.517510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.520716"], ["updated_at", "2017-11-21 23:30:43.520716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:30:43.528191"], ["updated_at", "2017-11-21 23:30:43.528191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-21 23:30:43.529460"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:30:43.530861"], ["updated_at", "2017-11-21 23:30:43.530861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:30:43.531625"], ["updated_at", "2017-11-21 23:30:43.531625"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:30:43.535028"], ["updated_at", "2017-11-21 23:30:43.535028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:30:43.535798"], ["updated_at", "2017-11-21 23:30:43.535798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.536555"], ["updated_at", "2017-11-21 23:30:43.536555"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.538425"], ["updated_at", "2017-11-21 23:30:43.538425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.539451"], ["updated_at", "2017-11-21 23:30:43.539451"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.541920"], ["updated_at", "2017-11-21 23:30:43.541920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:30:43.542776"], ["updated_at", "2017-11-21 23:30:43.542776"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.544929"], ["updated_at", "2017-11-21 23:30:43.544929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.545667"], ["updated_at", "2017-11-21 23:30:43.545667"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.547910"], ["updated_at", "2017-11-21 23:30:43.547910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.548634"], ["updated_at", "2017-11-21 23:30:43.548634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.553635"], ["updated_at", "2017-11-21 23:30:43.553635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.560249"], ["updated_at", "2017-11-21 23:30:43.560249"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:30:43.568077"], ["updated_at", "2017-11-21 23:30:43.568077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.574625"], ["updated_at", "2017-11-21 23:30:43.574625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.582731"], ["updated_at", "2017-11-21 23:30:43.582731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.585321"], ["updated_at", "2017-11-21 23:30:43.585321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.589767"], ["updated_at", "2017-11-21 23:30:43.589767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.597912"], ["updated_at", "2017-11-21 23:30:43.597912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.605733"], ["updated_at", "2017-11-21 23:30:43.605733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.606655"], ["updated_at", "2017-11-21 23:30:43.606655"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:30:43.614624"], ["updated_at", "2017-11-21 23:30:43.614624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:30:43.615875"], ["updated_at", "2017-11-21 23:30:43.615875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:30:43.618142"], ["updated_at", "2017-11-21 23:30:43.618142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:30:43.619006"], ["updated_at", "2017-11-21 23:30:43.619006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.627684"], ["updated_at", "2017-11-21 23:30:43.627684"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.633737"], ["updated_at", "2017-11-21 23:30:43.633737"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.646468"], ["updated_at", "2017-11-21 23:30:43.646468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.647376"], ["updated_at", "2017-11-21 23:30:43.647376"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.649174"], ["updated_at", "2017-11-21 23:30:43.649174"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.649955"], ["updated_at", "2017-11-21 23:30:43.649955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.652167"], ["updated_at", "2017-11-21 23:30:43.652167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.655261"], ["updated_at", "2017-11-21 23:30:43.655261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.656226"], ["updated_at", "2017-11-21 23:30:43.656226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.676989"], ["updated_at", "2017-11-21 23:30:43.676989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.684108"], ["updated_at", "2017-11-21 23:30:43.684108"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.690710"], ["updated_at", "2017-11-21 23:30:43.690710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.696110"], ["updated_at", "2017-11-21 23:30:43.696110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.697080"], ["updated_at", "2017-11-21 23:30:43.697080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.697995"], ["updated_at", "2017-11-21 23:30:43.697995"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.700966"], ["updated_at", "2017-11-21 23:30:43.700966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.701953"], ["updated_at", "2017-11-21 23:30:43.701953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:30:43.714492"], ["updated_at", "2017-11-21 23:30:43.714492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:30:43.715476"], ["updated_at", "2017-11-21 23:30:43.715476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:30:43.717197"], ["updated_at", "2017-11-21 23:30:43.717197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:30:43.718057"], ["updated_at", "2017-11-21 23:30:43.718057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:30:43.721554"], ["updated_at", "2017-11-21 23:30:43.721554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.724376"], ["updated_at", "2017-11-21 23:30:43.724376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.729569"], ["updated_at", "2017-11-21 23:30:43.729569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.730445"], ["updated_at", "2017-11-21 23:30:43.730445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.732519"], ["updated_at", "2017-11-21 23:30:43.732519"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.735885"], ["updated_at", "2017-11-21 23:30:43.735885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:43.738077"], ["updated_at", "2017-11-21 23:30:43.738077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:30:43.976372"], ["updated_at", "2017-11-21 23:30:43.976372"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:30:43.989670"], ["updated_at", "2017-11-21 23:30:43.989670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:30:43.990487"], ["updated_at", "2017-11-21 23:30:43.990487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:44.019288"], ["updated_at", "2017-11-21 23:30:44.019288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:44.024845"], ["updated_at", "2017-11-21 23:30:44.024845"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:44.028860"], ["updated_at", "2017-11-21 23:30:44.028860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:30:44.036894"], ["updated_at", "2017-11-21 23:30:44.036894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.520095"], ["updated_at", "2017-11-21 23:32:05.520095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:32:05.533844"], ["updated_at", "2017-11-21 23:32:05.533844"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.539212"], ["updated_at", "2017-11-21 23:32:05.539212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.547144"], ["updated_at", "2017-11-21 23:32:05.547144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.549979"], ["updated_at", "2017-11-21 23:32:05.549979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:32:05.556333"], ["updated_at", "2017-11-21 23:32:05.556333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:32:05.557216"], ["updated_at", "2017-11-21 23:32:05.557216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.619024"], ["updated_at", "2017-11-21 23:32:05.619024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:32:05.623820"], ["updated_at", "2017-11-21 23:32:05.623820"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:32:05.624757"], ["updated_at", "2017-11-21 23:32:05.624757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:32:05.626948"], ["updated_at", "2017-11-21 23:32:05.626948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:32:05.627990"], ["updated_at", "2017-11-21 23:32:05.627990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.632562"], ["updated_at", "2017-11-21 23:32:05.632562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.639024"], ["updated_at", "2017-11-21 23:32:05.639024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.639930"], ["updated_at", "2017-11-21 23:32:05.639930"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.642249"], ["updated_at", "2017-11-21 23:32:05.642249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.644992"], ["updated_at", "2017-11-21 23:32:05.644992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.648658"], ["updated_at", "2017-11-21 23:32:05.648658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.649454"], ["updated_at", "2017-11-21 23:32:05.649454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.654493"], ["updated_at", "2017-11-21 23:32:05.654493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.655619"], ["updated_at", "2017-11-21 23:32:05.655619"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.658364"], ["updated_at", "2017-11-21 23:32:05.658364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.659286"], ["updated_at", "2017-11-21 23:32:05.659286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.661914"], ["updated_at", "2017-11-21 23:32:05.661914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.665804"], ["updated_at", "2017-11-21 23:32:05.665804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.666660"], ["updated_at", "2017-11-21 23:32:05.666660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.682938"], ["updated_at", "2017-11-21 23:32:05.682938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.683998"], ["updated_at", "2017-11-21 23:32:05.683998"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.686724"], ["updated_at", "2017-11-21 23:32:05.686724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.687584"], ["updated_at", "2017-11-21 23:32:05.687584"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.701020"], ["updated_at", "2017-11-21 23:32:05.701020"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.702315"], ["updated_at", "2017-11-21 23:32:05.702315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.703369"], ["updated_at", "2017-11-21 23:32:05.703369"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:32:05.706458"], ["updated_at", "2017-11-21 23:32:05.706458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.708978"], ["updated_at", "2017-11-21 23:32:05.708978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.714374"], ["updated_at", "2017-11-21 23:32:05.714374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.715343"], ["updated_at", "2017-11-21 23:32:05.715343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.717682"], ["updated_at", "2017-11-21 23:32:05.717682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.723922"], ["updated_at", "2017-11-21 23:32:05.723922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.726447"], ["updated_at", "2017-11-21 23:32:05.726447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.730455"], ["updated_at", "2017-11-21 23:32:05.730455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:32:05.731511"], ["updated_at", "2017-11-21 23:32:05.731511"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.735112"], ["updated_at", "2017-11-21 23:32:05.735112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.741301"], ["updated_at", "2017-11-21 23:32:05.741301"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.747618"], ["updated_at", "2017-11-21 23:32:05.747618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.754052"], ["updated_at", "2017-11-21 23:32:05.754052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:32:05.765233"], ["updated_at", "2017-11-21 23:32:05.765233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-21 23:32:05.767628"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:32:05.768966"], ["updated_at", "2017-11-21 23:32:05.768966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:32:05.770022"], ["updated_at", "2017-11-21 23:32:05.770022"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:32:05.774483"], ["updated_at", "2017-11-21 23:32:05.774483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:32:05.777396"], ["updated_at", "2017-11-21 23:32:05.777396"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.788114"], ["updated_at", "2017-11-21 23:32:05.788114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.790793"], ["updated_at", "2017-11-21 23:32:05.790793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.797292"], ["updated_at", "2017-11-21 23:32:05.797292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.798358"], ["updated_at", "2017-11-21 23:32:05.798358"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:32:05.800815"], ["updated_at", "2017-11-21 23:32:05.800815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:32:05.801909"], ["updated_at", "2017-11-21 23:32:05.801909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:32:05.803832"], ["updated_at", "2017-11-21 23:32:05.803832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:32:05.804769"], ["updated_at", "2017-11-21 23:32:05.804769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.813928"], ["updated_at", "2017-11-21 23:32:05.813928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.815288"], ["updated_at", "2017-11-21 23:32:05.815288"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.825625"], ["updated_at", "2017-11-21 23:32:05.825625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.828689"], ["updated_at", "2017-11-21 23:32:05.828689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.831122"], ["updated_at", "2017-11-21 23:32:05.831122"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.835136"], ["updated_at", "2017-11-21 23:32:05.835136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:32:05.840876"], ["updated_at", "2017-11-21 23:32:05.840876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.850542"], ["updated_at", "2017-11-21 23:32:05.850542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.851363"], ["updated_at", "2017-11-21 23:32:05.851363"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.853958"], ["updated_at", "2017-11-21 23:32:05.853958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.854771"], ["updated_at", "2017-11-21 23:32:05.854771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.855531"], ["updated_at", "2017-11-21 23:32:05.855531"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.857828"], ["updated_at", "2017-11-21 23:32:05.857828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.875694"], ["updated_at", "2017-11-21 23:32:05.875694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.876534"], ["updated_at", "2017-11-21 23:32:05.876534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.888925"], ["updated_at", "2017-11-21 23:32:05.888925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.892548"], ["updated_at", "2017-11-21 23:32:05.892548"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.893330"], ["updated_at", "2017-11-21 23:32:05.893330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:32:05.906033"], ["updated_at", "2017-11-21 23:32:05.906033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.909991"], ["updated_at", "2017-11-21 23:32:05.909991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.910977"], ["updated_at", "2017-11-21 23:32:05.910977"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:32:05.912978"], ["updated_at", "2017-11-21 23:32:05.912978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:32:05.913752"], ["updated_at", "2017-11-21 23:32:05.913752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.914620"], ["updated_at", "2017-11-21 23:32:05.914620"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.916450"], ["updated_at", "2017-11-21 23:32:05.916450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:05.921300"], ["updated_at", "2017-11-21 23:32:05.921300"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.454234"], ["updated_at", "2017-11-21 23:32:21.454234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.483252"], ["updated_at", "2017-11-21 23:32:21.483252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:32:21.487022"], ["updated_at", "2017-11-21 23:32:21.487022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:32:21.487890"], ["updated_at", "2017-11-21 23:32:21.487890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:32:21.489940"], ["updated_at", "2017-11-21 23:32:21.489940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:32:21.490668"], ["updated_at", "2017-11-21 23:32:21.490668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.493590"], ["updated_at", "2017-11-21 23:32:21.493590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.494369"], ["updated_at", "2017-11-21 23:32:21.494369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.511295"], ["updated_at", "2017-11-21 23:32:21.511295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.513934"], ["updated_at", "2017-11-21 23:32:21.513934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.516174"], ["updated_at", "2017-11-21 23:32:21.516174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.520936"], ["updated_at", "2017-11-21 23:32:21.520936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.529783"], ["updated_at", "2017-11-21 23:32:21.529783"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.537061"], ["updated_at", "2017-11-21 23:32:21.537061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.538266"], ["updated_at", "2017-11-21 23:32:21.538266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:32:21.551297"], ["updated_at", "2017-11-21 23:32:21.551297"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.568900"], ["updated_at", "2017-11-21 23:32:21.568900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.569781"], ["updated_at", "2017-11-21 23:32:21.569781"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.572842"], ["updated_at", "2017-11-21 23:32:21.572842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:32:21.573736"], ["updated_at", "2017-11-21 23:32:21.573736"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.576156"], ["updated_at", "2017-11-21 23:32:21.576156"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.576997"], ["updated_at", "2017-11-21 23:32:21.576997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.579177"], ["updated_at", "2017-11-21 23:32:21.579177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.582456"], ["updated_at", "2017-11-21 23:32:21.582456"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.584494"], ["updated_at", "2017-11-21 23:32:21.584494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.589068"], ["updated_at", "2017-11-21 23:32:21.589068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.594191"], ["updated_at", "2017-11-21 23:32:21.594191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.595045"], ["updated_at", "2017-11-21 23:32:21.595045"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:32:21.605751"], ["updated_at", "2017-11-21 23:32:21.605751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:32:21.606792"], ["updated_at", "2017-11-21 23:32:21.606792"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:32:21.608573"], ["updated_at", "2017-11-21 23:32:21.608573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:32:21.609393"], ["updated_at", "2017-11-21 23:32:21.609393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.616938"], ["updated_at", "2017-11-21 23:32:21.616938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.619714"], ["updated_at", "2017-11-21 23:32:21.619714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.624144"], ["updated_at", "2017-11-21 23:32:21.624144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.625242"], ["updated_at", "2017-11-21 23:32:21.625242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.626323"], ["updated_at", "2017-11-21 23:32:21.626323"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:32:21.629157"], ["updated_at", "2017-11-21 23:32:21.629157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:32:21.630050"], ["updated_at", "2017-11-21 23:32:21.630050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.630876"], ["updated_at", "2017-11-21 23:32:21.630876"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:32:21.636150"], ["updated_at", "2017-11-21 23:32:21.636150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.644018"], ["updated_at", "2017-11-21 23:32:21.644018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.644957"], ["updated_at", "2017-11-21 23:32:21.644957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.651162"], ["updated_at", "2017-11-21 23:32:21.651162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.652073"], ["updated_at", "2017-11-21 23:32:21.652073"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.654249"], ["updated_at", "2017-11-21 23:32:21.654249"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.659681"], ["updated_at", "2017-11-21 23:32:21.659681"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.660524"], ["updated_at", "2017-11-21 23:32:21.660524"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.661354"], ["updated_at", "2017-11-21 23:32:21.661354"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.663891"], ["updated_at", "2017-11-21 23:32:21.663891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.666645"], ["updated_at", "2017-11-21 23:32:21.666645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.670901"], ["updated_at", "2017-11-21 23:32:21.670901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.677727"], ["updated_at", "2017-11-21 23:32:21.677727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.688128"], ["updated_at", "2017-11-21 23:32:21.688128"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:32:21.711637"], ["updated_at", "2017-11-21 23:32:21.711637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-21 23:32:21.713111"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:32:21.714631"], ["updated_at", "2017-11-21 23:32:21.714631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:32:21.715588"], ["updated_at", "2017-11-21 23:32:21.715588"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:32:21.724247"], ["updated_at", "2017-11-21 23:32:21.724247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.726855"], ["updated_at", "2017-11-21 23:32:21.726855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.743790"], ["updated_at", "2017-11-21 23:32:21.743790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.745946"], ["updated_at", "2017-11-21 23:32:21.745946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.748926"], ["updated_at", "2017-11-21 23:32:21.748926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.749686"], ["updated_at", "2017-11-21 23:32:21.749686"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.751972"], ["updated_at", "2017-11-21 23:32:21.751972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.752731"], ["updated_at", "2017-11-21 23:32:21.752731"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.763081"], ["updated_at", "2017-11-21 23:32:21.763081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.763876"], ["updated_at", "2017-11-21 23:32:21.763876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.766006"], ["updated_at", "2017-11-21 23:32:21.766006"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.769670"], ["updated_at", "2017-11-21 23:32:21.769670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.770581"], ["updated_at", "2017-11-21 23:32:21.770581"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.773002"], ["updated_at", "2017-11-21 23:32:21.773002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.773795"], ["updated_at", "2017-11-21 23:32:21.773795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.780337"], ["updated_at", "2017-11-21 23:32:21.780337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.781116"], ["updated_at", "2017-11-21 23:32:21.781116"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.783424"], ["updated_at", "2017-11-21 23:32:21.783424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.784413"], ["updated_at", "2017-11-21 23:32:21.784413"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:32:21.787020"], ["updated_at", "2017-11-21 23:32:21.787020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:32:21.789671"], ["updated_at", "2017-11-21 23:32:21.789671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.889963"], ["updated_at", "2017-11-21 23:32:21.889963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.895529"], ["updated_at", "2017-11-21 23:32:21.895529"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.899419"], ["updated_at", "2017-11-21 23:32:21.899419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:21.911840"], ["updated_at", "2017-11-21 23:32:21.911840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:32:21.921832"], ["updated_at", "2017-11-21 23:32:21.921832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:32:21.922678"], ["updated_at", "2017-11-21 23:32:21.922678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:32:21.963048"], ["updated_at", "2017-11-21 23:32:21.963048"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:32:26.425340"], ["updated_at", "2017-11-21 23:32:26.425340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:32:26.426328"], ["updated_at", "2017-11-21 23:32:26.426328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.450754"], ["updated_at", "2017-11-21 23:32:26.450754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:32:26.478554"], ["updated_at", "2017-11-21 23:32:26.478554"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.486773"], ["updated_at", "2017-11-21 23:32:26.486773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.492063"], ["updated_at", "2017-11-21 23:32:26.492063"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.495117"], ["updated_at", "2017-11-21 23:32:26.495117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.631145"], ["updated_at", "2017-11-21 23:32:26.631145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:32:26.647921"], ["updated_at", "2017-11-21 23:32:26.647921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.659803"], ["updated_at", "2017-11-21 23:32:26.659803"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:32:26.660734"], ["updated_at", "2017-11-21 23:32:26.660734"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.663710"], ["updated_at", "2017-11-21 23:32:26.663710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:32:26.671832"], ["updated_at", "2017-11-21 23:32:26.671832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.676744"], ["updated_at", "2017-11-21 23:32:26.676744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.677896"], ["updated_at", "2017-11-21 23:32:26.677896"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.680633"], ["updated_at", "2017-11-21 23:32:26.680633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.681455"], ["updated_at", "2017-11-21 23:32:26.681455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.682317"], ["updated_at", "2017-11-21 23:32:26.682317"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:32:26.685103"], ["updated_at", "2017-11-21 23:32:26.685103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:32:26.688322"], ["updated_at", "2017-11-21 23:32:26.688322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.698904"], ["updated_at", "2017-11-21 23:32:26.698904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.2ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:32:26.732470"], ["updated_at", "2017-11-21 23:32:26.732470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:32:26.733402"], ["updated_at", "2017-11-21 23:32:26.733402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:32:26.735982"], ["updated_at", "2017-11-21 23:32:26.735982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:32:26.737072"], ["updated_at", "2017-11-21 23:32:26.737072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.740867"], ["updated_at", "2017-11-21 23:32:26.740867"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.742100"], ["updated_at", "2017-11-21 23:32:26.742100"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.745832"], ["updated_at", "2017-11-21 23:32:26.745832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.754231"], ["updated_at", "2017-11-21 23:32:26.754231"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:32:26.764842"], ["updated_at", "2017-11-21 23:32:26.764842"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:32:26.765804"], ["updated_at", "2017-11-21 23:32:26.765804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:32:26.767599"], ["updated_at", "2017-11-21 23:32:26.767599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:32:26.768472"], ["updated_at", "2017-11-21 23:32:26.768472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.777967"], ["updated_at", "2017-11-21 23:32:26.777967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:32:26.783301"], ["updated_at", "2017-11-21 23:32:26.783301"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:32:26.784276"], ["updated_at", "2017-11-21 23:32:26.784276"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.785093"], ["updated_at", "2017-11-21 23:32:26.785093"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.787257"], ["updated_at", "2017-11-21 23:32:26.787257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.788163"], ["updated_at", "2017-11-21 23:32:26.788163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.788965"], ["updated_at", "2017-11-21 23:32:26.788965"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.791639"], ["updated_at", "2017-11-21 23:32:26.791639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.792710"], ["updated_at", "2017-11-21 23:32:26.792710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.801961"], ["updated_at", "2017-11-21 23:32:26.801961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.802931"], ["updated_at", "2017-11-21 23:32:26.802931"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.805469"], ["updated_at", "2017-11-21 23:32:26.805469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.806274"], ["updated_at", "2017-11-21 23:32:26.806274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.816977"], ["updated_at", "2017-11-21 23:32:26.816977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.823643"], ["updated_at", "2017-11-21 23:32:26.823643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.824724"], ["updated_at", "2017-11-21 23:32:26.824724"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.833560"], ["updated_at", "2017-11-21 23:32:26.833560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.840158"], ["updated_at", "2017-11-21 23:32:26.840158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:32:26.847130"], ["updated_at", "2017-11-21 23:32:26.847130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.849503"], ["updated_at", "2017-11-21 23:32:26.849503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.854637"], ["updated_at", "2017-11-21 23:32:26.854637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.855563"], ["updated_at", "2017-11-21 23:32:26.855563"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.858004"], ["updated_at", "2017-11-21 23:32:26.858004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.862199"], ["updated_at", "2017-11-21 23:32:26.862199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.867834"], ["updated_at", "2017-11-21 23:32:26.867834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.868816"], ["updated_at", "2017-11-21 23:32:26.868816"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.871732"], ["updated_at", "2017-11-21 23:32:26.871732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.874318"], ["updated_at", "2017-11-21 23:32:26.874318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:32:26.878956"], ["updated_at", "2017-11-21 23:32:26.878956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-21 23:32:26.880266"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:32:26.881512"], ["updated_at", "2017-11-21 23:32:26.881512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:32:26.882438"], ["updated_at", "2017-11-21 23:32:26.882438"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.890873"], ["updated_at", "2017-11-21 23:32:26.890873"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.892895"], ["updated_at", "2017-11-21 23:32:26.892895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.895687"], ["updated_at", "2017-11-21 23:32:26.895687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.898206"], ["updated_at", "2017-11-21 23:32:26.898206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.902016"], ["updated_at", "2017-11-21 23:32:26.902016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.908763"], ["updated_at", "2017-11-21 23:32:26.908763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.911635"], ["updated_at", "2017-11-21 23:32:26.911635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.917806"], ["updated_at", "2017-11-21 23:32:26.917806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.918882"], ["updated_at", "2017-11-21 23:32:26.918882"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.921881"], ["updated_at", "2017-11-21 23:32:26.921881"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.922807"], ["updated_at", "2017-11-21 23:32:26.922807"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.924943"], ["updated_at", "2017-11-21 23:32:26.924943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.930835"], ["updated_at", "2017-11-21 23:32:26.930835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.931788"], ["updated_at", "2017-11-21 23:32:26.931788"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.934349"], ["updated_at", "2017-11-21 23:32:26.934349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.938745"], ["updated_at", "2017-11-21 23:32:26.938745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.940884"], ["updated_at", "2017-11-21 23:32:26.940884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.944917"], ["updated_at", "2017-11-21 23:32:26.944917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.946011"], ["updated_at", "2017-11-21 23:32:26.946011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.952155"], ["updated_at", "2017-11-21 23:32:26.952155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:26.953214"], ["updated_at", "2017-11-21 23:32:26.953214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.903879"], ["updated_at", "2017-11-21 23:32:35.903879"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.909802"], ["updated_at", "2017-11-21 23:32:35.909802"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.916009"], ["updated_at", "2017-11-21 23:32:35.916009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.937936"], ["updated_at", "2017-11-21 23:32:35.937936"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.952231"], ["updated_at", "2017-11-21 23:32:35.952231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.953033"], ["updated_at", "2017-11-21 23:32:35.953033"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.954644"], ["updated_at", "2017-11-21 23:32:35.954644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.955395"], ["updated_at", "2017-11-21 23:32:35.955395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.964746"], ["updated_at", "2017-11-21 23:32:35.964746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.965752"], ["updated_at", "2017-11-21 23:32:35.965752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.971695"], ["updated_at", "2017-11-21 23:32:35.971695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.976609"], ["updated_at", "2017-11-21 23:32:35.976609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.977495"], ["updated_at", "2017-11-21 23:32:35.977495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.982900"], ["updated_at", "2017-11-21 23:32:35.982900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.988418"], ["updated_at", "2017-11-21 23:32:35.988418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.996459"], ["updated_at", "2017-11-21 23:32:35.996459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:35.999084"], ["updated_at", "2017-11-21 23:32:35.999084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.009222"], ["updated_at", "2017-11-21 23:32:36.009222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.010048"], ["updated_at", "2017-11-21 23:32:36.010048"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.011957"], ["updated_at", "2017-11-21 23:32:36.011957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.012714"], ["updated_at", "2017-11-21 23:32:36.012714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.013449"], ["updated_at", "2017-11-21 23:32:36.013449"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (4.7ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:32:36.024319"], ["updated_at", "2017-11-21 23:32:36.024319"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.029346"], ["updated_at", "2017-11-21 23:32:36.029346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.030145"], ["updated_at", "2017-11-21 23:32:36.030145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.032409"], ["updated_at", "2017-11-21 23:32:36.032409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.038159"], ["updated_at", "2017-11-21 23:32:36.038159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.039387"], ["updated_at", "2017-11-21 23:32:36.039387"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.052681"], ["updated_at", "2017-11-21 23:32:36.052681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.075616"], ["updated_at", "2017-11-21 23:32:36.075616"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.078349"], ["updated_at", "2017-11-21 23:32:36.078349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.081064"], ["updated_at", "2017-11-21 23:32:36.081064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.085142"], ["updated_at", "2017-11-21 23:32:36.085142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.092178"], ["updated_at", "2017-11-21 23:32:36.092178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.093220"], ["updated_at", "2017-11-21 23:32:36.093220"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-21 23:32:36.095873"], ["updated_at", "2017-11-21 23:32:36.095873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.098586"], ["updated_at", "2017-11-21 23:32:36.098586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-21 23:32:36.107497"], ["updated_at", "2017-11-21 23:32:36.107497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-21 23:32:36.120010"], ["updated_at", "2017-11-21 23:32:36.120010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-21 23:32:36.122837"], ["updated_at", "2017-11-21 23:32:36.122837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.132754"], ["updated_at", "2017-11-21 23:32:36.132754"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-21 23:32:36.140373"], ["updated_at", "2017-11-21 23:32:36.140373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-21 23:32:36.142241"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-21 23:32:36.143833"], ["updated_at", "2017-11-21 23:32:36.143833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-21 23:32:36.144782"], ["updated_at", "2017-11-21 23:32:36.144782"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:32:36.149359"], ["updated_at", "2017-11-21 23:32:36.149359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-21 23:32:36.150425"], ["updated_at", "2017-11-21 23:32:36.150425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.151356"], ["updated_at", "2017-11-21 23:32:36.151356"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.153475"], ["updated_at", "2017-11-21 23:32:36.153475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.154314"], ["updated_at", "2017-11-21 23:32:36.154314"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.156939"], ["updated_at", "2017-11-21 23:32:36.156939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.173810"], ["updated_at", "2017-11-21 23:32:36.173810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.174917"], ["updated_at", "2017-11-21 23:32:36.174917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.182576"], ["updated_at", "2017-11-21 23:32:36.182576"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.183490"], ["updated_at", "2017-11-21 23:32:36.183490"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.186330"], ["updated_at", "2017-11-21 23:32:36.186330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.192263"], ["updated_at", "2017-11-21 23:32:36.192263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.193186"], ["updated_at", "2017-11-21 23:32:36.193186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.194034"], ["updated_at", "2017-11-21 23:32:36.194034"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.196782"], ["updated_at", "2017-11-21 23:32:36.196782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.197654"], ["updated_at", "2017-11-21 23:32:36.197654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.199944"], ["updated_at", "2017-11-21 23:32:36.199944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.203980"], ["updated_at", "2017-11-21 23:32:36.203980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.206185"], ["updated_at", "2017-11-21 23:32:36.206185"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:32:36.211185"], ["updated_at", "2017-11-21 23:32:36.211185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:32:36.212427"], ["updated_at", "2017-11-21 23:32:36.212427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:32:36.214474"], ["updated_at", "2017-11-21 23:32:36.214474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:32:36.215604"], ["updated_at", "2017-11-21 23:32:36.215604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.223599"], ["updated_at", "2017-11-21 23:32:36.223599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.224650"], ["updated_at", "2017-11-21 23:32:36.224650"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-21 23:32:36.226763"], ["updated_at", "2017-11-21 23:32:36.226763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-21 23:32:36.227764"], ["updated_at", "2017-11-21 23:32:36.227764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-21 23:32:36.229670"], ["updated_at", "2017-11-21 23:32:36.229670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-21 23:32:36.230587"], ["updated_at", "2017-11-21 23:32:36.230587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.234470"], ["updated_at", "2017-11-21 23:32:36.234470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-21 23:32:36.235733"], ["updated_at", "2017-11-21 23:32:36.235733"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.238576"], ["updated_at", "2017-11-21 23:32:36.238576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.241205"], ["updated_at", "2017-11-21 23:32:36.241205"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.243724"], ["updated_at", "2017-11-21 23:32:36.243724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-21 23:32:36.393152"], ["updated_at", "2017-11-21 23:32:36.393152"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-21 23:32:36.410341"], ["updated_at", "2017-11-21 23:32:36.410341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-21 23:32:36.411271"], ["updated_at", "2017-11-21 23:32:36.411271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.429358"], ["updated_at", "2017-11-21 23:32:36.429358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.435263"], ["updated_at", "2017-11-21 23:32:36.435263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.438923"], ["updated_at", "2017-11-21 23:32:36.438923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-21 23:32:36.468711"], ["updated_at", "2017-11-21 23:32:36.468711"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.8ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.568476"], ["updated_at", "2017-11-22 00:20:53.568476"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.607536"], ["updated_at", "2017-11-22 00:20:53.607536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.610197"], ["updated_at", "2017-11-22 00:20:53.610197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.615164"], ["updated_at", "2017-11-22 00:20:53.615164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.615907"], ["updated_at", "2017-11-22 00:20:53.615907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.625487"], ["updated_at", "2017-11-22 00:20:53.625487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.626264"], ["updated_at", "2017-11-22 00:20:53.626264"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-22 00:20:53.632936"], ["updated_at", "2017-11-22 00:20:53.632936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.636769"], ["updated_at", "2017-11-22 00:20:53.636769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.637559"], ["updated_at", "2017-11-22 00:20:53.637559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.646136"], ["updated_at", "2017-11-22 00:20:53.646136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.649958"], ["updated_at", "2017-11-22 00:20:53.649958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.651919"], ["updated_at", "2017-11-22 00:20:53.651919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-22 00:20:53.655219"], ["updated_at", "2017-11-22 00:20:53.655219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-22 00:20:53.655998"], ["updated_at", "2017-11-22 00:20:53.655998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.656732"], ["updated_at", "2017-11-22 00:20:53.656732"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.658844"], ["updated_at", "2017-11-22 00:20:53.658844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.659876"], ["updated_at", "2017-11-22 00:20:53.659876"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.662064"], ["updated_at", "2017-11-22 00:20:53.662064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.662848"], ["updated_at", "2017-11-22 00:20:53.662848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.663604"], ["updated_at", "2017-11-22 00:20:53.663604"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-22 00:20:53.669386"], ["updated_at", "2017-11-22 00:20:53.669386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.695806"], ["updated_at", "2017-11-22 00:20:53.695806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.696654"], ["updated_at", "2017-11-22 00:20:53.696654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.698695"], ["updated_at", "2017-11-22 00:20:53.698695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.701634"], ["updated_at", "2017-11-22 00:20:53.701634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.705582"], ["updated_at", "2017-11-22 00:20:53.705582"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.707805"], ["updated_at", "2017-11-22 00:20:53.707805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.710693"], ["updated_at", "2017-11-22 00:20:53.710693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.720936"], ["updated_at", "2017-11-22 00:20:53.720936"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-22 00:20:53.726906"], ["updated_at", "2017-11-22 00:20:53.726906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2017-11-22 00:20:53.728358"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-22 00:20:53.729773"], ["updated_at", "2017-11-22 00:20:53.729773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-22 00:20:53.730601"], ["updated_at", "2017-11-22 00:20:53.730601"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.734097"], ["updated_at", "2017-11-22 00:20:53.734097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.734860"], ["updated_at", "2017-11-22 00:20:53.734860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.739881"], ["updated_at", "2017-11-22 00:20:53.739881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.745332"], ["updated_at", "2017-11-22 00:20:53.745332"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.746775"], ["updated_at", "2017-11-22 00:20:53.746775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.753207"], ["updated_at", "2017-11-22 00:20:53.753207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-22 00:20:53.754236"], ["updated_at", "2017-11-22 00:20:53.754236"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.756938"], ["updated_at", "2017-11-22 00:20:53.756938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.757799"], ["updated_at", "2017-11-22 00:20:53.757799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.766943"], ["updated_at", "2017-11-22 00:20:53.766943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.767707"], ["updated_at", "2017-11-22 00:20:53.767707"]]  (0.1ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.770016"], ["updated_at", "2017-11-22 00:20:53.770016"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.771776"], ["updated_at", "2017-11-22 00:20:53.771776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.774139"], ["updated_at", "2017-11-22 00:20:53.774139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.776072"], ["updated_at", "2017-11-22 00:20:53.776072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-22 00:20:53.779234"], ["updated_at", "2017-11-22 00:20:53.779234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-22 00:20:53.780038"], ["updated_at", "2017-11-22 00:20:53.780038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-22 00:20:53.781655"], ["updated_at", "2017-11-22 00:20:53.781655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-22 00:20:53.782536"], ["updated_at", "2017-11-22 00:20:53.782536"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.788186"], ["updated_at", "2017-11-22 00:20:53.788186"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.795695"], ["updated_at", "2017-11-22 00:20:53.795695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.802758"], ["updated_at", "2017-11-22 00:20:53.802758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.803586"], ["updated_at", "2017-11-22 00:20:53.803586"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-22 00:20:53.805318"], ["updated_at", "2017-11-22 00:20:53.805318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-22 00:20:53.807936"], ["updated_at", "2017-11-22 00:20:53.807936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-22 00:20:53.816608"], ["updated_at", "2017-11-22 00:20:53.816608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.819196"], ["updated_at", "2017-11-22 00:20:53.819196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.823703"], ["updated_at", "2017-11-22 00:20:53.823703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.824723"], ["updated_at", "2017-11-22 00:20:53.824723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.827115"], ["updated_at", "2017-11-22 00:20:53.827115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.830876"], ["updated_at", "2017-11-22 00:20:53.830876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.836273"], ["updated_at", "2017-11-22 00:20:53.836273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.837231"], ["updated_at", "2017-11-22 00:20:53.837231"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.839753"], ["updated_at", "2017-11-22 00:20:53.839753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.840616"], ["updated_at", "2017-11-22 00:20:53.840616"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.2ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-22 00:20:53.860216"], ["updated_at", "2017-11-22 00:20:53.860216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-22 00:20:53.861131"], ["updated_at", "2017-11-22 00:20:53.861131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-22 00:20:53.862938"], ["updated_at", "2017-11-22 00:20:53.862938"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-22 00:20:53.863819"], ["updated_at", "2017-11-22 00:20:53.863819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.870596"], ["updated_at", "2017-11-22 00:20:53.870596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.871531"], ["updated_at", "2017-11-22 00:20:53.871531"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.874930"], ["updated_at", "2017-11-22 00:20:53.874930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.883563"], ["updated_at", "2017-11-22 00:20:53.883563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.884456"], ["updated_at", "2017-11-22 00:20:53.884456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.885257"], ["updated_at", "2017-11-22 00:20:53.885257"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.944165"], ["updated_at", "2017-11-22 00:20:53.944165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.949824"], ["updated_at", "2017-11-22 00:20:53.949824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:53.952415"], ["updated_at", "2017-11-22 00:20:53.952415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-22 00:20:53.972825"], ["updated_at", "2017-11-22 00:20:53.972825"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-22 00:20:53.975794"], ["updated_at", "2017-11-22 00:20:53.975794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-22 00:20:53.976617"], ["updated_at", "2017-11-22 00:20:53.976617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:20:54.011217"], ["updated_at", "2017-11-22 00:20:54.011217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-22 00:22:26.362047"], ["updated_at", "2017-11-22 00:22:26.362047"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-22 00:22:26.368500"], ["updated_at", "2017-11-22 00:22:26.368500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-22 00:22:26.377280"], ["updated_at", "2017-11-22 00:22:26.377280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.423131"], ["updated_at", "2017-11-22 00:22:26.423131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.428939"], ["updated_at", "2017-11-22 00:22:26.428939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.432406"], ["updated_at", "2017-11-22 00:22:26.432406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.438670"], ["updated_at", "2017-11-22 00:22:26.438670"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-22 00:22:26.473865"], ["updated_at", "2017-11-22 00:22:26.473865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-22 00:22:26.476262"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-22 00:22:26.477600"], ["updated_at", "2017-11-22 00:22:26.477600"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-22 00:22:26.478722"], ["updated_at", "2017-11-22 00:22:26.478722"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.484409"], ["updated_at", "2017-11-22 00:22:26.484409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.485507"], ["updated_at", "2017-11-22 00:22:26.485507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.488192"], ["updated_at", "2017-11-22 00:22:26.488192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.492446"], ["updated_at", "2017-11-22 00:22:26.492446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.493337"], ["updated_at", "2017-11-22 00:22:26.493337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.494331"], ["updated_at", "2017-11-22 00:22:26.494331"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-22 00:22:26.497115"], ["updated_at", "2017-11-22 00:22:26.497115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-22 00:22:26.498085"], ["updated_at", "2017-11-22 00:22:26.498085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-22 00:22:26.500431"], ["updated_at", "2017-11-22 00:22:26.500431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-22 00:22:26.501487"], ["updated_at", "2017-11-22 00:22:26.501487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-22 00:22:26.506111"], ["updated_at", "2017-11-22 00:22:26.506111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-22 00:22:26.507170"], ["updated_at", "2017-11-22 00:22:26.507170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.508088"], ["updated_at", "2017-11-22 00:22:26.508088"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.510288"], ["updated_at", "2017-11-22 00:22:26.510288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.511130"], ["updated_at", "2017-11-22 00:22:26.511130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.517623"], ["updated_at", "2017-11-22 00:22:26.517623"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.518851"], ["updated_at", "2017-11-22 00:22:26.518851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.554275"], ["updated_at", "2017-11-22 00:22:26.554275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-22 00:22:26.562533"], ["updated_at", "2017-11-22 00:22:26.562533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-22 00:22:26.565743"], ["updated_at", "2017-11-22 00:22:26.565743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.577060"], ["updated_at", "2017-11-22 00:22:26.577060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.578188"], ["updated_at", "2017-11-22 00:22:26.578188"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-22 00:22:26.586157"], ["updated_at", "2017-11-22 00:22:26.586157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.598902"], ["updated_at", "2017-11-22 00:22:26.598902"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.602106"], ["updated_at", "2017-11-22 00:22:26.602106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-22 00:22:26.606218"], ["updated_at", "2017-11-22 00:22:26.606218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.609637"], ["updated_at", "2017-11-22 00:22:26.609637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.614551"], ["updated_at", "2017-11-22 00:22:26.614551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.626319"], ["updated_at", "2017-11-22 00:22:26.626319"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.627370"], ["updated_at", "2017-11-22 00:22:26.627370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.651661"], ["updated_at", "2017-11-22 00:22:26.651661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.657866"], ["updated_at", "2017-11-22 00:22:26.657866"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.663131"], ["updated_at", "2017-11-22 00:22:26.663131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.664255"], ["updated_at", "2017-11-22 00:22:26.664255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.667833"], ["updated_at", "2017-11-22 00:22:26.667833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.674529"], ["updated_at", "2017-11-22 00:22:26.674529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.693305"], ["updated_at", "2017-11-22 00:22:26.693305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.697371"], ["updated_at", "2017-11-22 00:22:26.697371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.703032"], ["updated_at", "2017-11-22 00:22:26.703032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.705697"], ["updated_at", "2017-11-22 00:22:26.705697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.707987"], ["updated_at", "2017-11-22 00:22:26.707987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.712690"], ["updated_at", "2017-11-22 00:22:26.712690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.713880"], ["updated_at", "2017-11-22 00:22:26.713880"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.717530"], ["updated_at", "2017-11-22 00:22:26.717530"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-22 00:22:26.735795"], ["updated_at", "2017-11-22 00:22:26.735795"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-22 00:22:26.737229"], ["updated_at", "2017-11-22 00:22:26.737229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-22 00:22:26.739336"], ["updated_at", "2017-11-22 00:22:26.739336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-22 00:22:26.740404"], ["updated_at", "2017-11-22 00:22:26.740404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.747568"], ["updated_at", "2017-11-22 00:22:26.747568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.748499"], ["updated_at", "2017-11-22 00:22:26.748499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.749253"], ["updated_at", "2017-11-22 00:22:26.749253"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-22 00:22:26.756156"], ["updated_at", "2017-11-22 00:22:26.756156"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.762596"], ["updated_at", "2017-11-22 00:22:26.762596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.763427"], ["updated_at", "2017-11-22 00:22:26.763427"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.765893"], ["updated_at", "2017-11-22 00:22:26.765893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.766769"], ["updated_at", "2017-11-22 00:22:26.766769"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.769680"], ["updated_at", "2017-11-22 00:22:26.769680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.775873"], ["updated_at", "2017-11-22 00:22:26.775873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.776807"], ["updated_at", "2017-11-22 00:22:26.776807"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.779611"], ["updated_at", "2017-11-22 00:22:26.779611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.786035"], ["updated_at", "2017-11-22 00:22:26.786035"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.792560"], ["updated_at", "2017-11-22 00:22:26.792560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-22 00:22:26.793531"], ["updated_at", "2017-11-22 00:22:26.793531"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.806073"], ["updated_at", "2017-11-22 00:22:26.806073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.808509"], ["updated_at", "2017-11-22 00:22:26.808509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.811785"], ["updated_at", "2017-11-22 00:22:26.811785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.812585"], ["updated_at", "2017-11-22 00:22:26.812585"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.814376"], ["updated_at", "2017-11-22 00:22:26.814376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.816499"], ["updated_at", "2017-11-22 00:22:26.816499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.820896"], ["updated_at", "2017-11-22 00:22:26.820896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.821839"], ["updated_at", "2017-11-22 00:22:26.821839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.827623"], ["updated_at", "2017-11-22 00:22:26.827623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.828534"], ["updated_at", "2017-11-22 00:22:26.828534"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.830529"], ["updated_at", "2017-11-22 00:22:26.830529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:22:26.831452"], ["updated_at", "2017-11-22 00:22:26.831452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (2.0ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.094575"], ["updated_at", "2017-11-22 00:35:02.094575"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.138949"], ["updated_at", "2017-11-22 00:35:02.138949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.153718"], ["updated_at", "2017-11-22 00:35:02.153718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.157012"], ["updated_at", "2017-11-22 00:35:02.157012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2017-11-22 00:35:02.211128"], ["updated_at", "2017-11-22 00:35:02.211128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2017-11-22 00:35:02.212241"], ["updated_at", "2017-11-22 00:35:02.212241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2017-11-22 00:35:02.234356"], ["updated_at", "2017-11-22 00:35:02.234356"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.290255"], ["updated_at", "2017-11-22 00:35:02.290255"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.291533"], ["updated_at", "2017-11-22 00:35:02.291533"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.300791"], ["updated_at", "2017-11-22 00:35:02.300791"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-22 00:35:02.302868"], ["updated_at", "2017-11-22 00:35:02.302868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-22 00:35:02.303788"], ["updated_at", "2017-11-22 00:35:02.303788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-22 00:35:02.305676"], ["updated_at", "2017-11-22 00:35:02.305676"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-22 00:35:02.307236"], ["updated_at", "2017-11-22 00:35:02.307236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.311867"], ["updated_at", "2017-11-22 00:35:02.311867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.313056"], ["updated_at", "2017-11-22 00:35:02.313056"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.2ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.319671"], ["updated_at", "2017-11-22 00:35:02.319671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2017-11-22 00:35:02.328699"], ["updated_at", "2017-11-22 00:35:02.328699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2017-11-22 00:35:02.330891"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-22 00:35:02.332053"], ["updated_at", "2017-11-22 00:35:02.332053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2017-11-22 00:35:02.333201"], ["updated_at", "2017-11-22 00:35:02.333201"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.337320"], ["updated_at", "2017-11-22 00:35:02.337320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2017-11-22 00:35:02.338194"], ["updated_at", "2017-11-22 00:35:02.338194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.341530"], ["updated_at", "2017-11-22 00:35:02.341530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.342627"], ["updated_at", "2017-11-22 00:35:02.342627"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.344945"], ["updated_at", "2017-11-22 00:35:02.344945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.345940"], ["updated_at", "2017-11-22 00:35:02.345940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2017-11-22 00:35:02.359595"], ["updated_at", "2017-11-22 00:35:02.359595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.364476"], ["updated_at", "2017-11-22 00:35:02.364476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.365492"], ["updated_at", "2017-11-22 00:35:02.365492"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.368198"], ["updated_at", "2017-11-22 00:35:02.368198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.369076"], ["updated_at", "2017-11-22 00:35:02.369076"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.372112"], ["updated_at", "2017-11-22 00:35:02.372112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.378783"], ["updated_at", "2017-11-22 00:35:02.378783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.386766"], ["updated_at", "2017-11-22 00:35:02.386766"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.387761"], ["updated_at", "2017-11-22 00:35:02.387761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.396492"], ["updated_at", "2017-11-22 00:35:02.396492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.416995"], ["updated_at", "2017-11-22 00:35:02.416995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.418203"], ["updated_at", "2017-11-22 00:35:02.418203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.420694"], ["updated_at", "2017-11-22 00:35:02.420694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2017-11-22 00:35:02.425016"], ["updated_at", "2017-11-22 00:35:02.425016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2017-11-22 00:35:02.434202"], ["updated_at", "2017-11-22 00:35:02.434202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2017-11-22 00:35:02.436025"], ["updated_at", "2017-11-22 00:35:02.436025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2017-11-22 00:35:02.436846"], ["updated_at", "2017-11-22 00:35:02.436846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.444992"], ["updated_at", "2017-11-22 00:35:02.444992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.446076"], ["updated_at", "2017-11-22 00:35:02.446076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.448241"], ["updated_at", "2017-11-22 00:35:02.448241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2017-11-22 00:35:02.451550"], ["updated_at", "2017-11-22 00:35:02.451550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2017-11-22 00:35:02.453590"], ["updated_at", "2017-11-22 00:35:02.453590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.462400"], ["updated_at", "2017-11-22 00:35:02.462400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-22 00:35:02.468299"], ["updated_at", "2017-11-22 00:35:02.468299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2017-11-22 00:35:02.469260"], ["updated_at", "2017-11-22 00:35:02.469260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.470229"], ["updated_at", "2017-11-22 00:35:02.470229"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.472434"], ["updated_at", "2017-11-22 00:35:02.472434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.473360"], ["updated_at", "2017-11-22 00:35:02.473360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.474426"], ["updated_at", "2017-11-22 00:35:02.474426"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.477023"], ["updated_at", "2017-11-22 00:35:02.477023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.478026"], ["updated_at", "2017-11-22 00:35:02.478026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.483415"], ["updated_at", "2017-11-22 00:35:02.483415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.485375"], ["updated_at", "2017-11-22 00:35:02.485375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.488458"], ["updated_at", "2017-11-22 00:35:02.488458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.492946"], ["updated_at", "2017-11-22 00:35:02.492946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.495761"], ["updated_at", "2017-11-22 00:35:02.495761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.498443"], ["updated_at", "2017-11-22 00:35:02.498443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.502146"], ["updated_at", "2017-11-22 00:35:02.502146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.507583"], ["updated_at", "2017-11-22 00:35:02.507583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.510238"], ["updated_at", "2017-11-22 00:35:02.510238"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.515804"], ["updated_at", "2017-11-22 00:35:02.515804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.516601"], ["updated_at", "2017-11-22 00:35:02.516601"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.521272"], ["updated_at", "2017-11-22 00:35:02.521272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2017-11-22 00:35:02.529441"], ["updated_at", "2017-11-22 00:35:02.529441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.538604"], ["updated_at", "2017-11-22 00:35:02.538604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.541102"], ["updated_at", "2017-11-22 00:35:02.541102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.544681"], ["updated_at", "2017-11-22 00:35:02.544681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.545473"], ["updated_at", "2017-11-22 00:35:02.545473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.546324"], ["updated_at", "2017-11-22 00:35:02.546324"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2017-11-22 00:35:02.548797"], ["updated_at", "2017-11-22 00:35:02.548797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.551050"], ["updated_at", "2017-11-22 00:35:02.551050"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.555210"], ["updated_at", "2017-11-22 00:35:02.555210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.556012"], ["updated_at", "2017-11-22 00:35:02.556012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.566041"], ["updated_at", "2017-11-22 00:35:02.566041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.566852"], ["updated_at", "2017-11-22 00:35:02.566852"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.569197"], ["updated_at", "2017-11-22 00:35:02.569197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.574635"], ["updated_at", "2017-11-22 00:35:02.574635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.579473"], ["updated_at", "2017-11-22 00:35:02.579473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-11-22 00:35:02.580356"], ["updated_at", "2017-11-22 00:35:02.580356"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.554667"], ["updated_at", "2018-06-08 19:10:58.554667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.569266"], ["updated_at", "2018-06-08 19:10:58.569266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 19:10:58.622349"], ["updated_at", "2018-06-08 19:10:58.622349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 19:10:58.626958"], ["updated_at", "2018-06-08 19:10:58.626958"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.653276"], ["updated_at", "2018-06-08 19:10:58.653276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.654697"], ["updated_at", "2018-06-08 19:10:58.654697"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.657715"], ["updated_at", "2018-06-08 19:10:58.657715"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.664464"], ["updated_at", "2018-06-08 19:10:58.664464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.671380"], ["updated_at", "2018-06-08 19:10:58.671380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.7ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 19:10:58.680142"], ["updated_at", "2018-06-08 19:10:58.680142"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 19:10:58.681763"], ["updated_at", "2018-06-08 19:10:58.681763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 19:10:58.685790"], ["updated_at", "2018-06-08 19:10:58.685790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 19:10:58.687216"], ["updated_at", "2018-06-08 19:10:58.687216"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.694788"], ["updated_at", "2018-06-08 19:10:58.694788"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.704260"], ["updated_at", "2018-06-08 19:10:58.704260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.705565"], ["updated_at", "2018-06-08 19:10:58.705565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.716694"], ["updated_at", "2018-06-08 19:10:58.716694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.718304"], ["updated_at", "2018-06-08 19:10:58.718304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.727097"], ["updated_at", "2018-06-08 19:10:58.727097"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.729604"], ["updated_at", "2018-06-08 19:10:58.729604"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.734942"], ["updated_at", "2018-06-08 19:10:58.734942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.741428"], ["updated_at", "2018-06-08 19:10:58.741428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.746248"], ["updated_at", "2018-06-08 19:10:58.746248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.752690"], ["updated_at", "2018-06-08 19:10:58.752690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.754551"], ["updated_at", "2018-06-08 19:10:58.754551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 19:10:58.783372"], ["updated_at", "2018-06-08 19:10:58.783372"]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.812066"], ["updated_at", "2018-06-08 19:10:58.812066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.813617"], ["updated_at", "2018-06-08 19:10:58.813617"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.818682"], ["updated_at", "2018-06-08 19:10:58.818682"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.828615"], ["updated_at", "2018-06-08 19:10:58.828615"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.833473"], ["updated_at", "2018-06-08 19:10:58.833473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.837472"], ["updated_at", "2018-06-08 19:10:58.837472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 19:10:58.847174"], ["updated_at", "2018-06-08 19:10:58.847174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 19:10:58.849566"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 19:10:58.852315"], ["updated_at", "2018-06-08 19:10:58.852315"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 19:10:58.854019"], ["updated_at", "2018-06-08 19:10:58.854019"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.863137"], ["updated_at", "2018-06-08 19:10:58.863137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.865162"], ["updated_at", "2018-06-08 19:10:58.865162"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.870815"], ["updated_at", "2018-06-08 19:10:58.870815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.872193"], ["updated_at", "2018-06-08 19:10:58.872193"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.3ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.880025"], ["updated_at", "2018-06-08 19:10:58.880025"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.882223"], ["updated_at", "2018-06-08 19:10:58.882223"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.887631"], ["updated_at", "2018-06-08 19:10:58.887631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.895743"], ["updated_at", "2018-06-08 19:10:58.895743"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 19:10:58.906478"], ["updated_at", "2018-06-08 19:10:58.906478"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.912746"], ["updated_at", "2018-06-08 19:10:58.912746"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.951670"], ["updated_at", "2018-06-08 19:10:58.951670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.953205"], ["updated_at", "2018-06-08 19:10:58.953205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.955024"], ["updated_at", "2018-06-08 19:10:58.955024"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 19:10:58.973390"], ["updated_at", "2018-06-08 19:10:58.973390"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.983404"], ["updated_at", "2018-06-08 19:10:58.983404"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.984829"], ["updated_at", "2018-06-08 19:10:58.984829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.986100"], ["updated_at", "2018-06-08 19:10:58.986100"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 19:10:58.990540"], ["updated_at", "2018-06-08 19:10:58.990540"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 19:10:58.993177"], ["updated_at", "2018-06-08 19:10:58.993177"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.995800"], ["updated_at", "2018-06-08 19:10:58.995800"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:58.999707"], ["updated_at", "2018-06-08 19:10:58.999707"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.011176"], ["updated_at", "2018-06-08 19:10:59.011176"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.013378"], ["updated_at", "2018-06-08 19:10:59.013378"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.017487"], ["updated_at", "2018-06-08 19:10:59.017487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.022096"], ["updated_at", "2018-06-08 19:10:59.022096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.7ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.030517"], ["updated_at", "2018-06-08 19:10:59.030517"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.034586"], ["updated_at", "2018-06-08 19:10:59.034586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.046047"], ["updated_at", "2018-06-08 19:10:59.046047"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.084116"], ["updated_at", "2018-06-08 19:10:59.084116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 19:10:59.085781"], ["updated_at", "2018-06-08 19:10:59.085781"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.106579"], ["updated_at", "2018-06-08 19:10:59.106579"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 19:10:59.115669"], ["updated_at", "2018-06-08 19:10:59.115669"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 19:10:59.117493"], ["updated_at", "2018-06-08 19:10:59.117493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 19:10:59.121238"], ["updated_at", "2018-06-08 19:10:59.121238"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 19:10:59.122730"], ["updated_at", "2018-06-08 19:10:59.122730"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.138056"], ["updated_at", "2018-06-08 19:10:59.138056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.152311"], ["updated_at", "2018-06-08 19:10:59.152311"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.167124"], ["updated_at", "2018-06-08 19:10:59.167124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.168770"], ["updated_at", "2018-06-08 19:10:59.168770"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.172034"], ["updated_at", "2018-06-08 19:10:59.172034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.173408"], ["updated_at", "2018-06-08 19:10:59.173408"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.191737"], ["updated_at", "2018-06-08 19:10:59.191737"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.194357"], ["updated_at", "2018-06-08 19:10:59.194357"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.497576"], ["updated_at", "2018-06-08 19:10:59.497576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 19:10:59.526244"], ["updated_at", "2018-06-08 19:10:59.526244"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 19:10:59.528796"], ["updated_at", "2018-06-08 19:10:59.528796"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.3ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.552174"], ["updated_at", "2018-06-08 19:10:59.552174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.562334"], ["updated_at", "2018-06-08 19:10:59.562334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:10:59.567563"], ["updated_at", "2018-06-08 19:10:59.567563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 19:10:59.577705"], ["updated_at", "2018-06-08 19:10:59.577705"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (1.1ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.2ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:11.904170"], ["updated_at", "2018-06-08 19:11:11.904170"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:11.928165"], ["updated_at", "2018-06-08 19:11:11.928165"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:11.937056"], ["updated_at", "2018-06-08 19:11:11.937056"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 19:11:11.970683"], ["updated_at", "2018-06-08 19:11:11.970683"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction TestAttr Exists (0.4ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 19:11:12.041093"], ["updated_at", "2018-06-08 19:11:12.041093"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 19:11:12.043275"], ["updated_at", "2018-06-08 19:11:12.043275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.4ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (1.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.092661"], ["updated_at", "2018-06-08 19:11:12.092661"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 3.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.202164"], ["updated_at", "2018-06-08 19:11:12.202164"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.208833"], ["updated_at", "2018-06-08 19:11:12.208833"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.215482"], ["updated_at", "2018-06-08 19:11:12.215482"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.225219"], ["updated_at", "2018-06-08 19:11:12.225219"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.234402"], ["updated_at", "2018-06-08 19:11:12.234402"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.236692"], ["updated_at", "2018-06-08 19:11:12.236692"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.8ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 19:11:12.277584"], ["updated_at", "2018-06-08 19:11:12.277584"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 19:11:12.281546"], ["updated_at", "2018-06-08 19:11:12.281546"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 19:11:12.288229"], ["updated_at", "2018-06-08 19:11:12.288229"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 19:11:12.295887"], ["updated_at", "2018-06-08 19:11:12.295887"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.306008"], ["updated_at", "2018-06-08 19:11:12.306008"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.319627"], ["updated_at", "2018-06-08 19:11:12.319627"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.332905"], ["updated_at", "2018-06-08 19:11:12.332905"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.343288"], ["updated_at", "2018-06-08 19:11:12.343288"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (1.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 19:11:12.360411"], ["updated_at", "2018-06-08 19:11:12.360411"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 19:11:12.364869"], ["id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 19:11:12.367472"], ["updated_at", "2018-06-08 19:11:12.367472"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 19:11:12.370523"], ["updated_at", "2018-06-08 19:11:12.370523"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.379873"], ["updated_at", "2018-06-08 19:11:12.379873"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.384650"], ["updated_at", "2018-06-08 19:11:12.384650"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.386712"], ["updated_at", "2018-06-08 19:11:12.386712"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.391387"], ["updated_at", "2018-06-08 19:11:12.391387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.393123"], ["updated_at", "2018-06-08 19:11:12.393123"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 19:11:12.400990"], ["updated_at", "2018-06-08 19:11:12.400990"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (1.0ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.424911"], ["updated_at", "2018-06-08 19:11:12.424911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.428885"], ["updated_at", "2018-06-08 19:11:12.428885"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.438840"], ["updated_at", "2018-06-08 19:11:12.438840"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.451293"], ["updated_at", "2018-06-08 19:11:12.451293"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.465281"], ["updated_at", "2018-06-08 19:11:12.465281"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.467657"], ["updated_at", "2018-06-08 19:11:12.467657"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.469830"], ["updated_at", "2018-06-08 19:11:12.469830"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 19:11:12.476424"], ["updated_at", "2018-06-08 19:11:12.476424"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 19:11:12.481381"], ["updated_at", "2018-06-08 19:11:12.481381"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.500246"], ["updated_at", "2018-06-08 19:11:12.500246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 19:11:12.501819"], ["updated_at", "2018-06-08 19:11:12.501819"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.506294"], ["updated_at", "2018-06-08 19:11:12.506294"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.508681"], ["updated_at", "2018-06-08 19:11:12.508681"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.510226"], ["updated_at", "2018-06-08 19:11:12.510226"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.515931"], ["updated_at", "2018-06-08 19:11:12.515931"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.521901"], ["updated_at", "2018-06-08 19:11:12.521901"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.530668"], ["updated_at", "2018-06-08 19:11:12.530668"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.532675"], ["updated_at", "2018-06-08 19:11:12.532675"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.552337"], ["updated_at", "2018-06-08 19:11:12.552337"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.554086"], ["updated_at", "2018-06-08 19:11:12.554086"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.1ms) commit transaction Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.604727"], ["updated_at", "2018-06-08 19:11:12.604727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.606173"], ["updated_at", "2018-06-08 19:11:12.606173"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 19:11:12.610771"], ["updated_at", "2018-06-08 19:11:12.610771"]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.616139"], ["updated_at", "2018-06-08 19:11:12.616139"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.627065"], ["updated_at", "2018-06-08 19:11:12.627065"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.628896"], ["updated_at", "2018-06-08 19:11:12.628896"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.632918"], ["updated_at", "2018-06-08 19:11:12.632918"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 19:11:12.642340"], ["updated_at", "2018-06-08 19:11:12.642340"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 19:11:12.644274"], ["updated_at", "2018-06-08 19:11:12.644274"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 19:11:12.649176"], ["updated_at", "2018-06-08 19:11:12.649176"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 19:11:12.651732"], ["updated_at", "2018-06-08 19:11:12.651732"]]  (0.0ms) commit transaction  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.8ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.668265"], ["updated_at", "2018-06-08 19:11:12.668265"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.670539"], ["updated_at", "2018-06-08 19:11:12.670539"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.688793"], ["updated_at", "2018-06-08 19:11:12.688793"]]  (0.0ms) commit transaction  (0.6ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.692980"], ["updated_at", "2018-06-08 19:11:12.692980"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.701773"], ["updated_at", "2018-06-08 19:11:12.701773"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.711420"], ["updated_at", "2018-06-08 19:11:12.711420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.712953"], ["updated_at", "2018-06-08 19:11:12.712953"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.9ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.727518"], ["updated_at", "2018-06-08 19:11:12.727518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.728976"], ["updated_at", "2018-06-08 19:11:12.728976"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.2ms) commit transaction Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.2ms) DELETE FROM "companies" SQL (0.3ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.753050"], ["updated_at", "2018-06-08 19:11:12.753050"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.755238"], ["updated_at", "2018-06-08 19:11:12.755238"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.760441"], ["updated_at", "2018-06-08 19:11:12.760441"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 19:11:12.777010"], ["updated_at", "2018-06-08 19:11:12.777010"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.789627"], ["updated_at", "2018-06-08 19:11:12.789627"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.792355"], ["updated_at", "2018-06-08 19:11:12.792355"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.795879"], ["updated_at", "2018-06-08 19:11:12.795879"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 19:11:12.804678"], ["updated_at", "2018-06-08 19:11:12.804678"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 19:11:12.806486"], ["updated_at", "2018-06-08 19:11:12.806486"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.808111"], ["updated_at", "2018-06-08 19:11:12.808111"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.817187"], ["updated_at", "2018-06-08 19:11:12.817187"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.2ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.834582"], ["updated_at", "2018-06-08 19:11:12.834582"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.836972"], ["updated_at", "2018-06-08 19:11:12.836972"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.841937"], ["updated_at", "2018-06-08 19:11:12.841937"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:11:12.843436"], ["updated_at", "2018-06-08 19:11:12.843436"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.3ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (4.8ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 17ms (Views: 16.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 19:29:04.367587"], ["updated_at", "2018-06-08 19:29:04.367587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 19:29:04.371383"], ["updated_at", "2018-06-08 19:29:04.371383"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 19:29:04.385470"], ["updated_at", "2018-06-08 19:29:04.385470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 19:29:04.386751"], ["updated_at", "2018-06-08 19:29:04.386751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.403284"], ["updated_at", "2018-06-08 19:29:04.403284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.404873"], ["updated_at", "2018-06-08 19:29:04.404873"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.406134"], ["updated_at", "2018-06-08 19:29:04.406134"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 19:29:04.444969"], ["updated_at", "2018-06-08 19:29:04.444969"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 19:29:04.448586"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 19:29:04.456004"], ["updated_at", "2018-06-08 19:29:04.456004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 19:29:04.457853"], ["updated_at", "2018-06-08 19:29:04.457853"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.464745"], ["updated_at", "2018-06-08 19:29:04.464745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 19:29:04.466384"], ["updated_at", "2018-06-08 19:29:04.466384"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 19:29:04.470908"], ["updated_at", "2018-06-08 19:29:04.470908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.475235"], ["updated_at", "2018-06-08 19:29:04.475235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.485045"], ["updated_at", "2018-06-08 19:29:04.485045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.486717"], ["updated_at", "2018-06-08 19:29:04.486717"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.491389"], ["updated_at", "2018-06-08 19:29:04.491389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.504513"], ["updated_at", "2018-06-08 19:29:04.504513"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.515501"], ["updated_at", "2018-06-08 19:29:04.515501"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.519838"], ["updated_at", "2018-06-08 19:29:04.519838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.525954"], ["updated_at", "2018-06-08 19:29:04.525954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.527324"], ["updated_at", "2018-06-08 19:29:04.527324"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.532656"], ["updated_at", "2018-06-08 19:29:04.532656"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.534162"], ["updated_at", "2018-06-08 19:29:04.534162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 19:29:04.551767"], ["updated_at", "2018-06-08 19:29:04.551767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 19:29:04.553291"], ["updated_at", "2018-06-08 19:29:04.553291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.554553"], ["updated_at", "2018-06-08 19:29:04.554553"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.558639"], ["updated_at", "2018-06-08 19:29:04.558639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.559986"], ["updated_at", "2018-06-08 19:29:04.559986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.563704"], ["updated_at", "2018-06-08 19:29:04.563704"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.571014"], ["updated_at", "2018-06-08 19:29:04.571014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.579610"], ["updated_at", "2018-06-08 19:29:04.579610"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.588130"], ["updated_at", "2018-06-08 19:29:04.588130"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.591567"], ["updated_at", "2018-06-08 19:29:04.591567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.597961"], ["updated_at", "2018-06-08 19:29:04.597961"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.599665"], ["updated_at", "2018-06-08 19:29:04.599665"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.602657"], ["updated_at", "2018-06-08 19:29:04.602657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.603895"], ["updated_at", "2018-06-08 19:29:04.603895"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.607801"], ["updated_at", "2018-06-08 19:29:04.607801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.609105"], ["updated_at", "2018-06-08 19:29:04.609105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.8ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.618639"], ["updated_at", "2018-06-08 19:29:04.618639"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.620131"], ["updated_at", "2018-06-08 19:29:04.620131"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.623393"], ["updated_at", "2018-06-08 19:29:04.623393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.624715"], ["updated_at", "2018-06-08 19:29:04.624715"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.645304"], ["updated_at", "2018-06-08 19:29:04.645304"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.649610"], ["updated_at", "2018-06-08 19:29:04.649610"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.651101"], ["updated_at", "2018-06-08 19:29:04.651101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.654241"], ["updated_at", "2018-06-08 19:29:04.654241"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 19:29:04.665888"], ["updated_at", "2018-06-08 19:29:04.665888"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.683306"], ["updated_at", "2018-06-08 19:29:04.683306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 19:29:04.706694"], ["updated_at", "2018-06-08 19:29:04.706694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.713457"], ["updated_at", "2018-06-08 19:29:04.713457"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.717980"], ["updated_at", "2018-06-08 19:29:04.717980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.720698"], ["updated_at", "2018-06-08 19:29:04.720698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.725503"], ["updated_at", "2018-06-08 19:29:04.725503"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 19:29:04.732732"], ["updated_at", "2018-06-08 19:29:04.732732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 19:29:04.736044"], ["updated_at", "2018-06-08 19:29:04.736044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.754520"], ["updated_at", "2018-06-08 19:29:04.754520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.759870"], ["updated_at", "2018-06-08 19:29:04.759870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.761098"], ["updated_at", "2018-06-08 19:29:04.761098"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.765717"], ["updated_at", "2018-06-08 19:29:04.765717"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.766992"], ["updated_at", "2018-06-08 19:29:04.766992"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 19:29:04.780190"], ["updated_at", "2018-06-08 19:29:04.780190"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 19:29:04.782399"], ["updated_at", "2018-06-08 19:29:04.782399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 19:29:04.785612"], ["updated_at", "2018-06-08 19:29:04.785612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 19:29:04.787030"], ["updated_at", "2018-06-08 19:29:04.787030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.798034"], ["updated_at", "2018-06-08 19:29:04.798034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.804440"], ["updated_at", "2018-06-08 19:29:04.804440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.805579"], ["updated_at", "2018-06-08 19:29:04.805579"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.819815"], ["updated_at", "2018-06-08 19:29:04.819815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.821023"], ["updated_at", "2018-06-08 19:29:04.821023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.822016"], ["updated_at", "2018-06-08 19:29:04.822016"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.825799"], ["updated_at", "2018-06-08 19:29:04.825799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.835352"], ["updated_at", "2018-06-08 19:29:04.835352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.841233"], ["updated_at", "2018-06-08 19:29:04.841233"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.842796"], ["updated_at", "2018-06-08 19:29:04.842796"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.852036"], ["updated_at", "2018-06-08 19:29:04.852036"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.855941"], ["updated_at", "2018-06-08 19:29:04.855941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.886366"], ["updated_at", "2018-06-08 19:29:04.886366"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.894642"], ["updated_at", "2018-06-08 19:29:04.894642"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.900278"], ["updated_at", "2018-06-08 19:29:04.900278"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:04.910543"], ["updated_at", "2018-06-08 19:29:04.910543"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 2]] SQL (0.2ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 19:29:04.955310"], ["updated_at", "2018-06-08 19:29:04.955310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 19:29:04.960248"], ["updated_at", "2018-06-08 19:29:04.960248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 19:29:04.995938"], ["updated_at", "2018-06-08 19:29:04.995938"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 4.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:14.779324"], ["updated_at", "2018-06-08 19:29:14.779324"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 19:29:14.850447"], ["updated_at", "2018-06-08 19:29:14.850447"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:14.861919"], ["updated_at", "2018-06-08 19:29:14.861919"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:14.877383"], ["updated_at", "2018-06-08 19:29:14.877383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:14.883384"], ["updated_at", "2018-06-08 19:29:14.883384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 19:29:14.970703"], ["updated_at", "2018-06-08 19:29:14.970703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 19:29:14.973098"], ["updated_at", "2018-06-08 19:29:14.973098"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.122951"], ["updated_at", "2018-06-08 19:29:15.122951"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.152401"], ["updated_at", "2018-06-08 19:29:15.152401"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.153835"], ["updated_at", "2018-06-08 19:29:15.153835"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.158187"], ["updated_at", "2018-06-08 19:29:15.158187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.169133"], ["updated_at", "2018-06-08 19:29:15.169133"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.170837"], ["updated_at", "2018-06-08 19:29:15.170837"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.178669"], ["updated_at", "2018-06-08 19:29:15.178669"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.183438"], ["updated_at", "2018-06-08 19:29:15.183438"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.199267"], ["updated_at", "2018-06-08 19:29:15.199267"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.205364"], ["updated_at", "2018-06-08 19:29:15.205364"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.222185"], ["updated_at", "2018-06-08 19:29:15.222185"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 19:29:15.228429"], ["updated_at", "2018-06-08 19:29:15.228429"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.233449"], ["updated_at", "2018-06-08 19:29:15.233449"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.242429"], ["updated_at", "2018-06-08 19:29:15.242429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.243673"], ["updated_at", "2018-06-08 19:29:15.243673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.259582"], ["updated_at", "2018-06-08 19:29:15.259582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.260912"], ["updated_at", "2018-06-08 19:29:15.260912"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.262240"], ["updated_at", "2018-06-08 19:29:15.262240"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 19:29:15.266888"], ["updated_at", "2018-06-08 19:29:15.266888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 19:29:15.270770"], ["updated_at", "2018-06-08 19:29:15.270770"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.287602"], ["updated_at", "2018-06-08 19:29:15.287602"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.289628"], ["updated_at", "2018-06-08 19:29:15.289628"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.294437"], ["updated_at", "2018-06-08 19:29:15.294437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.298603"], ["updated_at", "2018-06-08 19:29:15.298603"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.304312"], ["updated_at", "2018-06-08 19:29:15.304312"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.306162"], ["updated_at", "2018-06-08 19:29:15.306162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.315691"], ["updated_at", "2018-06-08 19:29:15.315691"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.317878"], ["updated_at", "2018-06-08 19:29:15.317878"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.322995"], ["updated_at", "2018-06-08 19:29:15.322995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.324691"], ["updated_at", "2018-06-08 19:29:15.324691"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.328103"], ["updated_at", "2018-06-08 19:29:15.328103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 19:29:15.334426"], ["updated_at", "2018-06-08 19:29:15.334426"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 19:29:15.335891"], ["updated_at", "2018-06-08 19:29:15.335891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 19:29:15.339507"], ["updated_at", "2018-06-08 19:29:15.339507"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 19:29:15.341676"], ["updated_at", "2018-06-08 19:29:15.341676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.353694"], ["updated_at", "2018-06-08 19:29:15.353694"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.362070"], ["updated_at", "2018-06-08 19:29:15.362070"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.371877"], ["updated_at", "2018-06-08 19:29:15.371877"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 19:29:15.380370"], ["updated_at", "2018-06-08 19:29:15.380370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 19:29:15.381733"], ["updated_at", "2018-06-08 19:29:15.381733"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.383876"], ["updated_at", "2018-06-08 19:29:15.383876"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.387997"], ["updated_at", "2018-06-08 19:29:15.387997"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.390198"], ["updated_at", "2018-06-08 19:29:15.390198"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.402448"], ["updated_at", "2018-06-08 19:29:15.402448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.412496"], ["updated_at", "2018-06-08 19:29:15.412496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.414069"], ["updated_at", "2018-06-08 19:29:15.414069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 19:29:15.428229"], ["updated_at", "2018-06-08 19:29:15.428229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 19:29:15.431403"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 19:29:15.433540"], ["updated_at", "2018-06-08 19:29:15.433540"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 19:29:15.435342"], ["updated_at", "2018-06-08 19:29:15.435342"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.443208"], ["updated_at", "2018-06-08 19:29:15.443208"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.453064"], ["updated_at", "2018-06-08 19:29:15.453064"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 19:29:15.470894"], ["updated_at", "2018-06-08 19:29:15.470894"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.478328"], ["updated_at", "2018-06-08 19:29:15.478328"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.482900"], ["updated_at", "2018-06-08 19:29:15.482900"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.489581"], ["updated_at", "2018-06-08 19:29:15.489581"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.491182"], ["updated_at", "2018-06-08 19:29:15.491182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.492632"], ["updated_at", "2018-06-08 19:29:15.492632"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.496558"], ["updated_at", "2018-06-08 19:29:15.496558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.500275"], ["updated_at", "2018-06-08 19:29:15.500275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.507956"], ["updated_at", "2018-06-08 19:29:15.507956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 19:29:15.509599"], ["updated_at", "2018-06-08 19:29:15.509599"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 19:29:15.513400"], ["updated_at", "2018-06-08 19:29:15.513400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 19:29:15.515068"], ["updated_at", "2018-06-08 19:29:15.515068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 19:29:15.518498"], ["updated_at", "2018-06-08 19:29:15.518498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 19:29:15.520324"], ["updated_at", "2018-06-08 19:29:15.520324"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.527619"], ["updated_at", "2018-06-08 19:29:15.527619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.529062"], ["updated_at", "2018-06-08 19:29:15.529062"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.533296"], ["updated_at", "2018-06-08 19:29:15.533296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.541887"], ["updated_at", "2018-06-08 19:29:15.541887"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.543475"], ["updated_at", "2018-06-08 19:29:15.543475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.547552"], ["updated_at", "2018-06-08 19:29:15.547552"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.559652"], ["updated_at", "2018-06-08 19:29:15.559652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.560910"], ["updated_at", "2018-06-08 19:29:15.560910"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 19:29:15.567249"], ["updated_at", "2018-06-08 19:29:15.567249"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.585877"], ["updated_at", "2018-06-08 19:29:15.585877"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.587472"], ["updated_at", "2018-06-08 19:29:15.587472"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.595737"], ["updated_at", "2018-06-08 19:29:15.595737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 19:29:15.597103"], ["updated_at", "2018-06-08 19:29:15.597103"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (2.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:05:46.347767"], ["updated_at", "2018-06-08 20:05:46.347767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.378425"], ["updated_at", "2018-06-08 20:05:46.378425"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.403477"], ["updated_at", "2018-06-08 20:05:46.403477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:05:46.404988"], ["updated_at", "2018-06-08 20:05:46.404988"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.409833"], ["updated_at", "2018-06-08 20:05:46.409833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.410949"], ["updated_at", "2018-06-08 20:05:46.410949"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:05:46.417007"], ["updated_at", "2018-06-08 20:05:46.417007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 20:05:46.420529"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:05:46.424175"], ["updated_at", "2018-06-08 20:05:46.424175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:05:46.425861"], ["updated_at", "2018-06-08 20:05:46.425861"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.431262"], ["updated_at", "2018-06-08 20:05:46.431262"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.432392"], ["updated_at", "2018-06-08 20:05:46.432392"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.434850"], ["updated_at", "2018-06-08 20:05:46.434850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.435985"], ["updated_at", "2018-06-08 20:05:46.435985"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:05:46.443550"], ["updated_at", "2018-06-08 20:05:46.443550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.466755"], ["updated_at", "2018-06-08 20:05:46.466755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.468031"], ["updated_at", "2018-06-08 20:05:46.468031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.472496"], ["updated_at", "2018-06-08 20:05:46.472496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.478617"], ["updated_at", "2018-06-08 20:05:46.478617"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.479768"], ["updated_at", "2018-06-08 20:05:46.479768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.480833"], ["updated_at", "2018-06-08 20:05:46.480833"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.484389"], ["updated_at", "2018-06-08 20:05:46.484389"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.495203"], ["updated_at", "2018-06-08 20:05:46.495203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.496497"], ["updated_at", "2018-06-08 20:05:46.496497"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.528447"], ["updated_at", "2018-06-08 20:05:46.528447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.531942"], ["updated_at", "2018-06-08 20:05:46.531942"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.534965"], ["updated_at", "2018-06-08 20:05:46.534965"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.543335"], ["updated_at", "2018-06-08 20:05:46.543335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.545080"], ["updated_at", "2018-06-08 20:05:46.545080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.553704"], ["updated_at", "2018-06-08 20:05:46.553704"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.563149"], ["updated_at", "2018-06-08 20:05:46.563149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.564526"], ["updated_at", "2018-06-08 20:05:46.564526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.565732"], ["updated_at", "2018-06-08 20:05:46.565732"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.569845"], ["updated_at", "2018-06-08 20:05:46.569845"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.574859"], ["updated_at", "2018-06-08 20:05:46.574859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:05:46.579735"], ["updated_at", "2018-06-08 20:05:46.579735"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:05:46.580969"], ["updated_at", "2018-06-08 20:05:46.580969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:05:46.583569"], ["updated_at", "2018-06-08 20:05:46.583569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:05:46.584731"], ["updated_at", "2018-06-08 20:05:46.584731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.597162"], ["updated_at", "2018-06-08 20:05:46.597162"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.598656"], ["updated_at", "2018-06-08 20:05:46.598656"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.601566"], ["updated_at", "2018-06-08 20:05:46.601566"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.603865"], ["updated_at", "2018-06-08 20:05:46.603865"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:05:46.627149"], ["updated_at", "2018-06-08 20:05:46.627149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:05:46.630832"], ["updated_at", "2018-06-08 20:05:46.630832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.646137"], ["updated_at", "2018-06-08 20:05:46.646137"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.649119"], ["updated_at", "2018-06-08 20:05:46.649119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.650267"], ["updated_at", "2018-06-08 20:05:46.650267"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.656201"], ["updated_at", "2018-06-08 20:05:46.656201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.667677"], ["updated_at", "2018-06-08 20:05:46.667677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.680999"], ["updated_at", "2018-06-08 20:05:46.680999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.701510"], ["updated_at", "2018-06-08 20:05:46.701510"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.705717"], ["updated_at", "2018-06-08 20:05:46.705717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:05:46.711747"], ["updated_at", "2018-06-08 20:05:46.711747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:05:46.713129"], ["updated_at", "2018-06-08 20:05:46.713129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:05:46.716864"], ["updated_at", "2018-06-08 20:05:46.716864"]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:05:46.719487"], ["updated_at", "2018-06-08 20:05:46.719487"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:05:46.728855"], ["updated_at", "2018-06-08 20:05:46.728855"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:05:46.730920"], ["updated_at", "2018-06-08 20:05:46.730920"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.732999"], ["updated_at", "2018-06-08 20:05:46.732999"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.737152"], ["updated_at", "2018-06-08 20:05:46.737152"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.739025"], ["updated_at", "2018-06-08 20:05:46.739025"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.758833"], ["updated_at", "2018-06-08 20:05:46.758833"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.760295"], ["updated_at", "2018-06-08 20:05:46.760295"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.763531"], ["updated_at", "2018-06-08 20:05:46.763531"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.768076"], ["updated_at", "2018-06-08 20:05:46.768076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.769153"], ["updated_at", "2018-06-08 20:05:46.769153"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.772924"], ["updated_at", "2018-06-08 20:05:46.772924"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.776997"], ["updated_at", "2018-06-08 20:05:46.776997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.3ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.799907"], ["updated_at", "2018-06-08 20:05:46.799907"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.808346"], ["updated_at", "2018-06-08 20:05:46.808346"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.810110"], ["updated_at", "2018-06-08 20:05:46.810110"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.832499"], ["updated_at", "2018-06-08 20:05:46.832499"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.842197"], ["updated_at", "2018-06-08 20:05:46.842197"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.843652"], ["updated_at", "2018-06-08 20:05:46.843652"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:05:46.847142"], ["updated_at", "2018-06-08 20:05:46.847142"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.852458"], ["updated_at", "2018-06-08 20:05:46.852458"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.859807"], ["updated_at", "2018-06-08 20:05:46.859807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.866961"], ["updated_at", "2018-06-08 20:05:46.866961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ----------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:05:46.928512"], ["updated_at", "2018-06-08 20:05:46.928512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:05:46.929834"], ["updated_at", "2018-06-08 20:05:46.929834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.975988"], ["updated_at", "2018-06-08 20:05:46.975988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.983668"], ["updated_at", "2018-06-08 20:05:46.983668"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:46.990196"], ["updated_at", "2018-06-08 20:05:46.990196"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:05:47.000472"], ["updated_at", "2018-06-08 20:05:47.000472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:05:47.044437"], ["updated_at", "2018-06-08 20:05:47.044437"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show ---------------------------------------------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:07:38.601332"], ["updated_at", "2018-06-08 20:07:38.601332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:07:38.609624"], ["updated_at", "2018-06-08 20:07:38.609624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:07:38.620320"], ["updated_at", "2018-06-08 20:07:38.620320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:07:38.621514"], ["updated_at", "2018-06-08 20:07:38.621514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.632092"], ["updated_at", "2018-06-08 20:07:38.632092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.633197"], ["updated_at", "2018-06-08 20:07:38.633197"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.648519"], ["updated_at", "2018-06-08 20:07:38.648519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.649395"], ["updated_at", "2018-06-08 20:07:38.649395"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.652008"], ["updated_at", "2018-06-08 20:07:38.652008"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.655054"], ["updated_at", "2018-06-08 20:07:38.655054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.656191"], ["updated_at", "2018-06-08 20:07:38.656191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.694600"], ["updated_at", "2018-06-08 20:07:38.694600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.695563"], ["updated_at", "2018-06-08 20:07:38.695563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.697826"], ["updated_at", "2018-06-08 20:07:38.697826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.715947"], ["updated_at", "2018-06-08 20:07:38.715947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.716936"], ["updated_at", "2018-06-08 20:07:38.716936"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.721339"], ["updated_at", "2018-06-08 20:07:38.721339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.723227"], ["updated_at", "2018-06-08 20:07:38.723227"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.737519"], ["updated_at", "2018-06-08 20:07:38.737519"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:07:38.746968"], ["updated_at", "2018-06-08 20:07:38.746968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 20:07:38.749089"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:07:38.750742"], ["updated_at", "2018-06-08 20:07:38.750742"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:07:38.752738"], ["updated_at", "2018-06-08 20:07:38.752738"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.760361"], ["updated_at", "2018-06-08 20:07:38.760361"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.777257"], ["updated_at", "2018-06-08 20:07:38.777257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.780164"], ["updated_at", "2018-06-08 20:07:38.780164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.783897"], ["updated_at", "2018-06-08 20:07:38.783897"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:07:38.796329"], ["updated_at", "2018-06-08 20:07:38.796329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.802976"], ["updated_at", "2018-06-08 20:07:38.802976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.804903"], ["updated_at", "2018-06-08 20:07:38.804903"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.808750"], ["updated_at", "2018-06-08 20:07:38.808750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:07:38.812846"], ["updated_at", "2018-06-08 20:07:38.812846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:07:38.814055"], ["updated_at", "2018-06-08 20:07:38.814055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:07:38.816317"], ["updated_at", "2018-06-08 20:07:38.816317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:07:38.817289"], ["updated_at", "2018-06-08 20:07:38.817289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.831224"], ["updated_at", "2018-06-08 20:07:38.831224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.839657"], ["updated_at", "2018-06-08 20:07:38.839657"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.842983"], ["updated_at", "2018-06-08 20:07:38.842983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:07:38.848533"], ["updated_at", "2018-06-08 20:07:38.848533"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.851316"], ["updated_at", "2018-06-08 20:07:38.851316"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:07:38.858276"], ["updated_at", "2018-06-08 20:07:38.858276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:07:38.859516"], ["updated_at", "2018-06-08 20:07:38.859516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.860439"], ["updated_at", "2018-06-08 20:07:38.860439"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.3ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.864193"], ["updated_at", "2018-06-08 20:07:38.864193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.874514"], ["updated_at", "2018-06-08 20:07:38.874514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.883427"], ["updated_at", "2018-06-08 20:07:38.883427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.884932"], ["updated_at", "2018-06-08 20:07:38.884932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.892779"], ["updated_at", "2018-06-08 20:07:38.892779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.894010"], ["updated_at", "2018-06-08 20:07:38.894010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.908150"], ["updated_at", "2018-06-08 20:07:38.908150"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.909285"], ["updated_at", "2018-06-08 20:07:38.909285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.910218"], ["updated_at", "2018-06-08 20:07:38.910218"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.914178"], ["updated_at", "2018-06-08 20:07:38.914178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.915380"], ["updated_at", "2018-06-08 20:07:38.915380"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.919193"], ["updated_at", "2018-06-08 20:07:38.919193"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.926795"], ["updated_at", "2018-06-08 20:07:38.926795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.928342"], ["updated_at", "2018-06-08 20:07:38.928342"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.935860"], ["updated_at", "2018-06-08 20:07:38.935860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.937587"], ["updated_at", "2018-06-08 20:07:38.937587"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.939302"], ["updated_at", "2018-06-08 20:07:38.939302"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.943161"], ["updated_at", "2018-06-08 20:07:38.943161"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.950005"], ["updated_at", "2018-06-08 20:07:38.950005"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.957857"], ["updated_at", "2018-06-08 20:07:38.957857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.961545"], ["updated_at", "2018-06-08 20:07:38.961545"]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.966196"], ["updated_at", "2018-06-08 20:07:38.966196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.969670"], ["updated_at", "2018-06-08 20:07:38.969670"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.972911"], ["updated_at", "2018-06-08 20:07:38.972911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:07:38.985394"], ["updated_at", "2018-06-08 20:07:38.985394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.997371"], ["updated_at", "2018-06-08 20:07:38.997371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:38.998274"], ["updated_at", "2018-06-08 20:07:38.998274"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:39.000787"], ["updated_at", "2018-06-08 20:07:39.000787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:39.009070"], ["updated_at", "2018-06-08 20:07:39.009070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:39.009978"], ["updated_at", "2018-06-08 20:07:39.009978"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:39.012572"], ["updated_at", "2018-06-08 20:07:39.012572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:39.013641"], ["updated_at", "2018-06-08 20:07:39.013641"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:39.019505"], ["updated_at", "2018-06-08 20:07:39.019505"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:07:39.020742"], ["updated_at", "2018-06-08 20:07:39.020742"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:07:39.024089"], ["updated_at", "2018-06-08 20:07:39.024089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:07:39.026762"], ["updated_at", "2018-06-08 20:07:39.026762"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:07:39.179430"], ["updated_at", "2018-06-08 20:07:39.179430"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:39.182412"], ["updated_at", "2018-06-08 20:07:39.182412"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:07:39.191008"], ["updated_at", "2018-06-08 20:07:39.191008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:07:39.191968"], ["updated_at", "2018-06-08 20:07:39.191968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:39.231115"], ["updated_at", "2018-06-08 20:07:39.231115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:39.237893"], ["updated_at", "2018-06-08 20:07:39.237893"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:07:39.241384"], ["updated_at", "2018-06-08 20:07:39.241384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------  (1.8ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:08.775539"], ["updated_at", "2018-06-08 20:09:08.775539"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:08.819768"], ["updated_at", "2018-06-08 20:09:08.819768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:08.823628"], ["updated_at", "2018-06-08 20:09:08.823628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:08.860064"], ["updated_at", "2018-06-08 20:09:08.860064"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:09:08.870510"], ["updated_at", "2018-06-08 20:09:08.870510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:09:08.871860"], ["updated_at", "2018-06-08 20:09:08.871860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:09:08.915955"], ["updated_at", "2018-06-08 20:09:08.915955"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:09:09.016595"], ["updated_at", "2018-06-08 20:09:09.016595"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:09:09.018755"], ["updated_at", "2018-06-08 20:09:09.018755"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:09:09.031407"], ["updated_at", "2018-06-08 20:09:09.031407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:09:09.032555"], ["updated_at", "2018-06-08 20:09:09.032555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.038745"], ["updated_at", "2018-06-08 20:09:09.038745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.066730"], ["updated_at", "2018-06-08 20:09:09.066730"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.068360"], ["updated_at", "2018-06-08 20:09:09.068360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.069905"], ["updated_at", "2018-06-08 20:09:09.069905"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.073741"], ["updated_at", "2018-06-08 20:09:09.073741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.074876"], ["updated_at", "2018-06-08 20:09:09.074876"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.078320"], ["updated_at", "2018-06-08 20:09:09.078320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.079345"], ["updated_at", "2018-06-08 20:09:09.079345"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:09:09.082108"], ["updated_at", "2018-06-08 20:09:09.082108"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.086075"], ["updated_at", "2018-06-08 20:09:09.086075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:09:09.095720"], ["updated_at", "2018-06-08 20:09:09.095720"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:09:09.096864"], ["updated_at", "2018-06-08 20:09:09.096864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.097830"], ["updated_at", "2018-06-08 20:09:09.097830"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.100449"], ["updated_at", "2018-06-08 20:09:09.100449"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.102121"], ["updated_at", "2018-06-08 20:09:09.102121"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.105559"], ["updated_at", "2018-06-08 20:09:09.105559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.106502"], ["updated_at", "2018-06-08 20:09:09.106502"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:09:09.112993"], ["updated_at", "2018-06-08 20:09:09.112993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.118417"], ["updated_at", "2018-06-08 20:09:09.118417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.119599"], ["updated_at", "2018-06-08 20:09:09.119599"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.122473"], ["updated_at", "2018-06-08 20:09:09.122473"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.126980"], ["updated_at", "2018-06-08 20:09:09.126980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.135044"], ["updated_at", "2018-06-08 20:09:09.135044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:09:09.144400"], ["updated_at", "2018-06-08 20:09:09.144400"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 20:09:09.147222"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:09:09.148625"], ["updated_at", "2018-06-08 20:09:09.148625"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:09:09.149891"], ["updated_at", "2018-06-08 20:09:09.149891"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.155409"], ["updated_at", "2018-06-08 20:09:09.155409"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.159248"], ["updated_at", "2018-06-08 20:09:09.159248"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.164987"], ["updated_at", "2018-06-08 20:09:09.164987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.168555"], ["updated_at", "2018-06-08 20:09:09.168555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.173185"], ["updated_at", "2018-06-08 20:09:09.173185"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.174619"], ["updated_at", "2018-06-08 20:09:09.174619"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.177845"], ["updated_at", "2018-06-08 20:09:09.177845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.185934"], ["updated_at", "2018-06-08 20:09:09.185934"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.187046"], ["updated_at", "2018-06-08 20:09:09.187046"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.197878"], ["updated_at", "2018-06-08 20:09:09.197878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.206075"], ["updated_at", "2018-06-08 20:09:09.206075"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.207412"], ["updated_at", "2018-06-08 20:09:09.207412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.210376"], ["updated_at", "2018-06-08 20:09:09.210376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:09:09.214753"], ["updated_at", "2018-06-08 20:09:09.214753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:09:09.218302"], ["updated_at", "2018-06-08 20:09:09.218302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.245155"], ["updated_at", "2018-06-08 20:09:09.245155"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.253207"], ["updated_at", "2018-06-08 20:09:09.253207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.262320"], ["updated_at", "2018-06-08 20:09:09.262320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.263461"], ["updated_at", "2018-06-08 20:09:09.263461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.278038"], ["updated_at", "2018-06-08 20:09:09.278038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.279121"], ["updated_at", "2018-06-08 20:09:09.279121"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.282153"], ["updated_at", "2018-06-08 20:09:09.282153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:09:09.283220"], ["updated_at", "2018-06-08 20:09:09.283220"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.287101"], ["updated_at", "2018-06-08 20:09:09.287101"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.288219"], ["updated_at", "2018-06-08 20:09:09.288219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.289210"], ["updated_at", "2018-06-08 20:09:09.289210"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.293276"], ["updated_at", "2018-06-08 20:09:09.293276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.294764"], ["updated_at", "2018-06-08 20:09:09.294764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.303225"], ["updated_at", "2018-06-08 20:09:09.303225"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:09:09.315022"], ["updated_at", "2018-06-08 20:09:09.315022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.330014"], ["updated_at", "2018-06-08 20:09:09.330014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.337162"], ["updated_at", "2018-06-08 20:09:09.337162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.354333"], ["updated_at", "2018-06-08 20:09:09.354333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.355436"], ["updated_at", "2018-06-08 20:09:09.355436"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.368664"], ["updated_at", "2018-06-08 20:09:09.368664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.369869"], ["updated_at", "2018-06-08 20:09:09.369869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.372874"], ["updated_at", "2018-06-08 20:09:09.372874"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.379268"], ["updated_at", "2018-06-08 20:09:09.379268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:09:09.385034"], ["updated_at", "2018-06-08 20:09:09.385034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:09:09.386321"], ["updated_at", "2018-06-08 20:09:09.386321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:09:09.388508"], ["updated_at", "2018-06-08 20:09:09.388508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:09:09.389627"], ["updated_at", "2018-06-08 20:09:09.389627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.399098"], ["updated_at", "2018-06-08 20:09:09.399098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.402463"], ["updated_at", "2018-06-08 20:09:09.402463"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.405375"], ["updated_at", "2018-06-08 20:09:09.405375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.410920"], ["updated_at", "2018-06-08 20:09:09.410920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.412302"], ["updated_at", "2018-06-08 20:09:09.412302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:09:09.419195"], ["updated_at", "2018-06-08 20:09:09.419195"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params -----------------------------------------------------------------------  (1.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.450350"], ["updated_at", "2018-06-08 20:11:40.450350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.488014"], ["updated_at", "2018-06-08 20:11:40.488014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.491300"], ["updated_at", "2018-06-08 20:11:40.491300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.501102"], ["updated_at", "2018-06-08 20:11:40.501102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.504638"], ["updated_at", "2018-06-08 20:11:40.504638"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.517840"], ["updated_at", "2018-06-08 20:11:40.517840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:11:40.519068"], ["updated_at", "2018-06-08 20:11:40.519068"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.522853"], ["updated_at", "2018-06-08 20:11:40.522853"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:11:40.531355"], ["updated_at", "2018-06-08 20:11:40.531355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.534869"], ["updated_at", "2018-06-08 20:11:40.534869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.541837"], ["updated_at", "2018-06-08 20:11:40.541837"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.545633"], ["updated_at", "2018-06-08 20:11:40.545633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.3ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:11:40.561531"], ["updated_at", "2018-06-08 20:11:40.561531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.567939"], ["updated_at", "2018-06-08 20:11:40.567939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.569107"], ["updated_at", "2018-06-08 20:11:40.569107"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.589122"], ["updated_at", "2018-06-08 20:11:40.589122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.590274"], ["updated_at", "2018-06-08 20:11:40.590274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:11:40.603458"], ["updated_at", "2018-06-08 20:11:40.603458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:11:40.604585"], ["updated_at", "2018-06-08 20:11:40.604585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:11:40.607158"], ["updated_at", "2018-06-08 20:11:40.607158"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:11:40.608669"], ["updated_at", "2018-06-08 20:11:40.608669"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.619189"], ["updated_at", "2018-06-08 20:11:40.619189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:11:40.630056"], ["updated_at", "2018-06-08 20:11:40.630056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.669075"], ["updated_at", "2018-06-08 20:11:40.669075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.670321"], ["updated_at", "2018-06-08 20:11:40.670321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.671303"], ["updated_at", "2018-06-08 20:11:40.671303"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.674347"], ["updated_at", "2018-06-08 20:11:40.674347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.675767"], ["updated_at", "2018-06-08 20:11:40.675767"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.689641"], ["updated_at", "2018-06-08 20:11:40.689641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.691096"], ["updated_at", "2018-06-08 20:11:40.691096"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:11:40.695075"], ["updated_at", "2018-06-08 20:11:40.695075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 20:11:40.696533"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:11:40.698387"], ["updated_at", "2018-06-08 20:11:40.698387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:11:40.699440"], ["updated_at", "2018-06-08 20:11:40.699440"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.705546"], ["updated_at", "2018-06-08 20:11:40.705546"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.707111"], ["updated_at", "2018-06-08 20:11:40.707111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.710043"], ["updated_at", "2018-06-08 20:11:40.710043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.714683"], ["updated_at", "2018-06-08 20:11:40.714683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.715748"], ["updated_at", "2018-06-08 20:11:40.715748"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.718354"], ["updated_at", "2018-06-08 20:11:40.718354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.719366"], ["updated_at", "2018-06-08 20:11:40.719366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.722165"], ["updated_at", "2018-06-08 20:11:40.722165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.728916"], ["updated_at", "2018-06-08 20:11:40.728916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.731002"], ["updated_at", "2018-06-08 20:11:40.731002"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.734404"], ["updated_at", "2018-06-08 20:11:40.734404"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.735556"], ["updated_at", "2018-06-08 20:11:40.735556"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.736800"], ["updated_at", "2018-06-08 20:11:40.736800"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.739749"], ["updated_at", "2018-06-08 20:11:40.739749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.740958"], ["updated_at", "2018-06-08 20:11:40.740958"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.749463"], ["updated_at", "2018-06-08 20:11:40.749463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:11:40.759733"], ["updated_at", "2018-06-08 20:11:40.759733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:11:40.760864"], ["updated_at", "2018-06-08 20:11:40.760864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.762027"], ["updated_at", "2018-06-08 20:11:40.762027"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:11:40.764569"], ["updated_at", "2018-06-08 20:11:40.764569"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:11:40.767732"], ["updated_at", "2018-06-08 20:11:40.767732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.787470"], ["updated_at", "2018-06-08 20:11:40.787470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.788520"], ["updated_at", "2018-06-08 20:11:40.788520"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.796682"], ["updated_at", "2018-06-08 20:11:40.796682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:11:40.810018"], ["updated_at", "2018-06-08 20:11:40.810018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:11:40.811186"], ["updated_at", "2018-06-08 20:11:40.811186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:11:40.813283"], ["updated_at", "2018-06-08 20:11:40.813283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:11:40.814369"], ["updated_at", "2018-06-08 20:11:40.814369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.818657"], ["updated_at", "2018-06-08 20:11:40.818657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.828569"], ["updated_at", "2018-06-08 20:11:40.828569"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.834787"], ["updated_at", "2018-06-08 20:11:40.834787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.835925"], ["updated_at", "2018-06-08 20:11:40.835925"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.839676"], ["updated_at", "2018-06-08 20:11:40.839676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.840984"], ["updated_at", "2018-06-08 20:11:40.840984"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.843928"], ["updated_at", "2018-06-08 20:11:40.843928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.846713"], ["updated_at", "2018-06-08 20:11:40.846713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.866211"], ["updated_at", "2018-06-08 20:11:40.866211"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.867252"], ["updated_at", "2018-06-08 20:11:40.867252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.874866"], ["updated_at", "2018-06-08 20:11:40.874866"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.884919"], ["updated_at", "2018-06-08 20:11:40.884919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.894568"], ["updated_at", "2018-06-08 20:11:40.894568"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.900157"], ["updated_at", "2018-06-08 20:11:40.900157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.902698"], ["updated_at", "2018-06-08 20:11:40.902698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.907059"], ["updated_at", "2018-06-08 20:11:40.907059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.908275"], ["updated_at", "2018-06-08 20:11:40.908275"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.942591"], ["updated_at", "2018-06-08 20:11:40.942591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:11:40.949187"], ["updated_at", "2018-06-08 20:11:40.949187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:11:40.950243"], ["updated_at", "2018-06-08 20:11:40.950243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:11:40.971424"], ["updated_at", "2018-06-08 20:11:40.971424"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.990404"], ["updated_at", "2018-06-08 20:11:40.990404"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:40.998705"], ["updated_at", "2018-06-08 20:11:40.998705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:41.002594"], ["updated_at", "2018-06-08 20:11:41.002594"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 1], ["id", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:53.858784"], ["updated_at", "2018-06-08 20:11:53.858784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:11:53.885387"], ["updated_at", "2018-06-08 20:11:53.885387"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:11:53.886527"], ["updated_at", "2018-06-08 20:11:53.886527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:53.925817"], ["updated_at", "2018-06-08 20:11:53.925817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:53.931566"], ["updated_at", "2018-06-08 20:11:53.931566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:53.934623"], ["updated_at", "2018-06-08 20:11:53.934623"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:11:53.949036"], ["updated_at", "2018-06-08 20:11:53.949036"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.145415"], ["updated_at", "2018-06-08 20:11:54.145415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.146448"], ["updated_at", "2018-06-08 20:11:54.146448"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.148891"], ["updated_at", "2018-06-08 20:11:54.148891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.150822"], ["updated_at", "2018-06-08 20:11:54.150822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.154647"], ["updated_at", "2018-06-08 20:11:54.154647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.155606"], ["updated_at", "2018-06-08 20:11:54.155606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.164560"], ["updated_at", "2018-06-08 20:11:54.164560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.165409"], ["updated_at", "2018-06-08 20:11:54.165409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.171849"], ["updated_at", "2018-06-08 20:11:54.171849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.173778"], ["updated_at", "2018-06-08 20:11:54.173778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.176754"], ["updated_at", "2018-06-08 20:11:54.176754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:11:54.181824"], ["updated_at", "2018-06-08 20:11:54.181824"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:11:54.184027"], ["updated_at", "2018-06-08 20:11:54.184027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:11:54.192114"], ["updated_at", "2018-06-08 20:11:54.192114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.194781"], ["updated_at", "2018-06-08 20:11:54.194781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.203866"], ["updated_at", "2018-06-08 20:11:54.203866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.204645"], ["updated_at", "2018-06-08 20:11:54.204645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.206395"], ["updated_at", "2018-06-08 20:11:54.206395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.209428"], ["updated_at", "2018-06-08 20:11:54.209428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.210419"], ["updated_at", "2018-06-08 20:11:54.210419"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.212408"], ["updated_at", "2018-06-08 20:11:54.212408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.213203"], ["updated_at", "2018-06-08 20:11:54.213203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.222535"], ["updated_at", "2018-06-08 20:11:54.222535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.224501"], ["updated_at", "2018-06-08 20:11:54.224501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.238578"], ["updated_at", "2018-06-08 20:11:54.238578"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.240359"], ["updated_at", "2018-06-08 20:11:54.240359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:11:54.244278"], ["updated_at", "2018-06-08 20:11:54.244278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:11:54.245098"], ["updated_at", "2018-06-08 20:11:54.245098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.245850"], ["updated_at", "2018-06-08 20:11:54.245850"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.247990"], ["updated_at", "2018-06-08 20:11:54.247990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.248747"], ["updated_at", "2018-06-08 20:11:54.248747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.250613"], ["updated_at", "2018-06-08 20:11:54.250613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.254170"], ["updated_at", "2018-06-08 20:11:54.254170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.255007"], ["updated_at", "2018-06-08 20:11:54.255007"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.256767"], ["updated_at", "2018-06-08 20:11:54.256767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.257454"], ["updated_at", "2018-06-08 20:11:54.257454"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.259520"], ["updated_at", "2018-06-08 20:11:54.259520"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.260517"], ["updated_at", "2018-06-08 20:11:54.260517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:11:54.267231"], ["updated_at", "2018-06-08 20:11:54.267231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 20:11:54.269037"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:11:54.270159"], ["updated_at", "2018-06-08 20:11:54.270159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:11:54.271142"], ["updated_at", "2018-06-08 20:11:54.271142"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:11:54.275629"], ["updated_at", "2018-06-08 20:11:54.275629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.286186"], ["updated_at", "2018-06-08 20:11:54.286186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.290636"], ["updated_at", "2018-06-08 20:11:54.290636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.291367"], ["updated_at", "2018-06-08 20:11:54.291367"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.294282"], ["updated_at", "2018-06-08 20:11:54.294282"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.302731"], ["updated_at", "2018-06-08 20:11:54.302731"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.321666"], ["updated_at", "2018-06-08 20:11:54.321666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.327677"], ["updated_at", "2018-06-08 20:11:54.327677"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.328733"], ["updated_at", "2018-06-08 20:11:54.328733"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:11:54.334771"], ["updated_at", "2018-06-08 20:11:54.334771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:11:54.339446"], ["updated_at", "2018-06-08 20:11:54.339446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:11:54.340319"], ["updated_at", "2018-06-08 20:11:54.340319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:11:54.342073"], ["updated_at", "2018-06-08 20:11:54.342073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:11:54.342912"], ["updated_at", "2018-06-08 20:11:54.342912"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.349904"], ["updated_at", "2018-06-08 20:11:54.349904"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.354229"], ["updated_at", "2018-06-08 20:11:54.354229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.355299"], ["updated_at", "2018-06-08 20:11:54.355299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.356215"], ["updated_at", "2018-06-08 20:11:54.356215"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.358851"], ["updated_at", "2018-06-08 20:11:54.358851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.363116"], ["updated_at", "2018-06-08 20:11:54.363116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:11:54.364061"], ["updated_at", "2018-06-08 20:11:54.364061"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.366457"], ["updated_at", "2018-06-08 20:11:54.366457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.368513"], ["updated_at", "2018-06-08 20:11:54.368513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.371027"], ["updated_at", "2018-06-08 20:11:54.371027"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.374799"], ["updated_at", "2018-06-08 20:11:54.374799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.375685"], ["updated_at", "2018-06-08 20:11:54.375685"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.376754"], ["updated_at", "2018-06-08 20:11:54.376754"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.379719"], ["updated_at", "2018-06-08 20:11:54.379719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.380604"], ["updated_at", "2018-06-08 20:11:54.380604"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.383217"], ["updated_at", "2018-06-08 20:11:54.383217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.389361"], ["updated_at", "2018-06-08 20:11:54.389361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:11:54.395175"], ["updated_at", "2018-06-08 20:11:54.395175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:11:54.396083"], ["updated_at", "2018-06-08 20:11:54.396083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:11:54.397888"], ["updated_at", "2018-06-08 20:11:54.397888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:11:54.398796"], ["updated_at", "2018-06-08 20:11:54.398796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.406442"], ["updated_at", "2018-06-08 20:11:54.406442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:11:54.407378"], ["updated_at", "2018-06-08 20:11:54.407378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.0ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:12:11.139840"], ["updated_at", "2018-06-08 20:12:11.139840"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:12:11.142183"], ["updated_at", "2018-06-08 20:12:11.142183"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.186823"], ["updated_at", "2018-06-08 20:12:11.186823"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:12:11.204798"], ["updated_at", "2018-06-08 20:12:11.204798"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.223245"], ["updated_at", "2018-06-08 20:12:11.223245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.232189"], ["updated_at", "2018-06-08 20:12:11.232189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.236053"], ["updated_at", "2018-06-08 20:12:11.236053"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.468719"], ["updated_at", "2018-06-08 20:12:11.468719"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.476776"], ["updated_at", "2018-06-08 20:12:11.476776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.483865"], ["updated_at", "2018-06-08 20:12:11.483865"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.485149"], ["updated_at", "2018-06-08 20:12:11.485149"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.488417"], ["updated_at", "2018-06-08 20:12:11.488417"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.490383"], ["updated_at", "2018-06-08 20:12:11.490383"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.500151"], ["updated_at", "2018-06-08 20:12:11.500151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.501436"], ["updated_at", "2018-06-08 20:12:11.501436"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.504948"], ["updated_at", "2018-06-08 20:12:11.504948"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:12:11.506930"], ["updated_at", "2018-06-08 20:12:11.506930"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.511660"], ["updated_at", "2018-06-08 20:12:11.511660"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.513619"], ["updated_at", "2018-06-08 20:12:11.513619"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.535474"], ["updated_at", "2018-06-08 20:12:11.535474"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.536981"], ["updated_at", "2018-06-08 20:12:11.536981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.538162"], ["updated_at", "2018-06-08 20:12:11.538162"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.542677"], ["updated_at", "2018-06-08 20:12:11.542677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.546021"], ["updated_at", "2018-06-08 20:12:11.546021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.549013"], ["updated_at", "2018-06-08 20:12:11.549013"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.553930"], ["updated_at", "2018-06-08 20:12:11.553930"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.557332"], ["updated_at", "2018-06-08 20:12:11.557332"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.583697"], ["updated_at", "2018-06-08 20:12:11.583697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.592351"], ["updated_at", "2018-06-08 20:12:11.592351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.593683"], ["updated_at", "2018-06-08 20:12:11.593683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.594869"], ["updated_at", "2018-06-08 20:12:11.594869"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.599704"], ["updated_at", "2018-06-08 20:12:11.599704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.610125"], ["updated_at", "2018-06-08 20:12:11.610125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.618913"], ["updated_at", "2018-06-08 20:12:11.618913"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:12:11.629288"], ["updated_at", "2018-06-08 20:12:11.629288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:12:11.630942"], ["updated_at", "2018-06-08 20:12:11.630942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:12:11.633332"], ["updated_at", "2018-06-08 20:12:11.633332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:12:11.634452"], ["updated_at", "2018-06-08 20:12:11.634452"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.648255"], ["updated_at", "2018-06-08 20:12:11.648255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.655824"], ["updated_at", "2018-06-08 20:12:11.655824"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.657970"], ["updated_at", "2018-06-08 20:12:11.657970"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.662045"], ["updated_at", "2018-06-08 20:12:11.662045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.665951"], ["updated_at", "2018-06-08 20:12:11.665951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:12:11.670465"], ["updated_at", "2018-06-08 20:12:11.670465"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.675019"], ["updated_at", "2018-06-08 20:12:11.675019"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.682573"], ["updated_at", "2018-06-08 20:12:11.682573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.683744"], ["updated_at", "2018-06-08 20:12:11.683744"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.687296"], ["updated_at", "2018-06-08 20:12:11.687296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.688682"], ["updated_at", "2018-06-08 20:12:11.688682"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.702332"], ["updated_at", "2018-06-08 20:12:11.702332"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.704360"], ["updated_at", "2018-06-08 20:12:11.704360"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.723628"], ["updated_at", "2018-06-08 20:12:11.723628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.725096"], ["updated_at", "2018-06-08 20:12:11.725096"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.733645"], ["updated_at", "2018-06-08 20:12:11.733645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.735048"], ["updated_at", "2018-06-08 20:12:11.735048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.739013"], ["updated_at", "2018-06-08 20:12:11.739013"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.747529"], ["updated_at", "2018-06-08 20:12:11.747529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.2ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.758525"], ["updated_at", "2018-06-08 20:12:11.758525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.760051"], ["updated_at", "2018-06-08 20:12:11.760051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.782715"], ["updated_at", "2018-06-08 20:12:11.782715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.784015"], ["updated_at", "2018-06-08 20:12:11.784015"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:12:11.787210"], ["updated_at", "2018-06-08 20:12:11.787210"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:12:11.789295"], ["updated_at", "2018-06-08 20:12:11.789295"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:12:11.793500"], ["updated_at", "2018-06-08 20:12:11.793500"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:12:11.795498"], ["updated_at", "2018-06-08 20:12:11.795498"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:12:11.800753"], ["updated_at", "2018-06-08 20:12:11.800753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:12:11.802072"], ["updated_at", "2018-06-08 20:12:11.802072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.803877"], ["updated_at", "2018-06-08 20:12:11.803877"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:12:11.814102"], ["updated_at", "2018-06-08 20:12:11.814102"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 20:12:11.817935"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:12:11.820061"], ["updated_at", "2018-06-08 20:12:11.820061"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:12:11.822026"], ["updated_at", "2018-06-08 20:12:11.822026"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.829578"], ["updated_at", "2018-06-08 20:12:11.829578"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.833199"], ["updated_at", "2018-06-08 20:12:11.833199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:12:11.842392"], ["updated_at", "2018-06-08 20:12:11.842392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.860438"], ["updated_at", "2018-06-08 20:12:11.860438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.868455"], ["updated_at", "2018-06-08 20:12:11.868455"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.879286"], ["updated_at", "2018-06-08 20:12:11.879286"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.881079"], ["updated_at", "2018-06-08 20:12:11.881079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.883898"], ["updated_at", "2018-06-08 20:12:11.883898"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.894834"], ["updated_at", "2018-06-08 20:12:11.894834"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.896047"], ["updated_at", "2018-06-08 20:12:11.896047"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:12:11.900457"], ["updated_at", "2018-06-08 20:12:11.900457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:12:11.904862"], ["updated_at", "2018-06-08 20:12:11.904862"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:11.918027"], ["updated_at", "2018-06-08 20:12:11.918027"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:12:11.931425"], ["updated_at", "2018-06-08 20:12:11.931425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.9ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.7ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.3ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:12:25.874001"], ["updated_at", "2018-06-08 20:12:25.874001"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:25.888782"], ["updated_at", "2018-06-08 20:12:25.888782"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:25.919885"], ["updated_at", "2018-06-08 20:12:25.919885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:25.929633"], ["updated_at", "2018-06-08 20:12:25.929633"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:25.935716"], ["updated_at", "2018-06-08 20:12:25.935716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.4ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:12:25.967613"], ["updated_at", "2018-06-08 20:12:25.967613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:12:25.969324"], ["updated_at", "2018-06-08 20:12:25.969324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.097263"], ["updated_at", "2018-06-08 20:12:26.097263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:12:26.111159"], ["updated_at", "2018-06-08 20:12:26.111159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 20:12:26.115006"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:12:26.116975"], ["updated_at", "2018-06-08 20:12:26.116975"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:12:26.118203"], ["updated_at", "2018-06-08 20:12:26.118203"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.124421"], ["updated_at", "2018-06-08 20:12:26.124421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.125821"], ["updated_at", "2018-06-08 20:12:26.125821"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.129837"], ["updated_at", "2018-06-08 20:12:26.129837"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.137040"], ["updated_at", "2018-06-08 20:12:26.137040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.143448"], ["updated_at", "2018-06-08 20:12:26.143448"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.147082"], ["updated_at", "2018-06-08 20:12:26.147082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.148711"], ["updated_at", "2018-06-08 20:12:26.148711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:12:26.157222"], ["updated_at", "2018-06-08 20:12:26.157222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:12:26.158692"], ["updated_at", "2018-06-08 20:12:26.158692"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:12:26.163294"], ["updated_at", "2018-06-08 20:12:26.163294"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:12:26.165172"], ["updated_at", "2018-06-08 20:12:26.165172"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:12:26.177894"], ["updated_at", "2018-06-08 20:12:26.177894"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.182992"], ["updated_at", "2018-06-08 20:12:26.182992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.189481"], ["updated_at", "2018-06-08 20:12:26.189481"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.190655"], ["updated_at", "2018-06-08 20:12:26.190655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:12:26.209003"], ["updated_at", "2018-06-08 20:12:26.209003"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:12:26.211143"], ["updated_at", "2018-06-08 20:12:26.211143"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.213228"], ["updated_at", "2018-06-08 20:12:26.213228"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.217041"], ["updated_at", "2018-06-08 20:12:26.217041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.218171"], ["updated_at", "2018-06-08 20:12:26.218171"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.221606"], ["updated_at", "2018-06-08 20:12:26.221606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.223176"], ["updated_at", "2018-06-08 20:12:26.223176"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:12:26.227015"], ["updated_at", "2018-06-08 20:12:26.227015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:12:26.228858"], ["updated_at", "2018-06-08 20:12:26.228858"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:12:26.232201"], ["updated_at", "2018-06-08 20:12:26.232201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:12:26.233430"], ["updated_at", "2018-06-08 20:12:26.233430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.242625"], ["updated_at", "2018-06-08 20:12:26.242625"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.253684"], ["updated_at", "2018-06-08 20:12:26.253684"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.267899"], ["updated_at", "2018-06-08 20:12:26.267899"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:12:26.280090"], ["updated_at", "2018-06-08 20:12:26.280090"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:12:26.286255"], ["updated_at", "2018-06-08 20:12:26.286255"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.347913"], ["updated_at", "2018-06-08 20:12:26.347913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.357729"], ["updated_at", "2018-06-08 20:12:26.357729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.359653"], ["updated_at", "2018-06-08 20:12:26.359653"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.395276"], ["updated_at", "2018-06-08 20:12:26.395276"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.397461"], ["updated_at", "2018-06-08 20:12:26.397461"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.399632"], ["updated_at", "2018-06-08 20:12:26.399632"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:12:26.407520"], ["updated_at", "2018-06-08 20:12:26.407520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:12:26.417446"], ["updated_at", "2018-06-08 20:12:26.417446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.442685"], ["updated_at", "2018-06-08 20:12:26.442685"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.455579"], ["updated_at", "2018-06-08 20:12:26.455579"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.464835"], ["updated_at", "2018-06-08 20:12:26.464835"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.466863"], ["updated_at", "2018-06-08 20:12:26.466863"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.468736"], ["updated_at", "2018-06-08 20:12:26.468736"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.479335"], ["updated_at", "2018-06-08 20:12:26.479335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.480869"], ["updated_at", "2018-06-08 20:12:26.480869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.485220"], ["updated_at", "2018-06-08 20:12:26.485220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.490872"], ["updated_at", "2018-06-08 20:12:26.490872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.494118"], ["updated_at", "2018-06-08 20:12:26.494118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.497975"], ["updated_at", "2018-06-08 20:12:26.497975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.504359"], ["updated_at", "2018-06-08 20:12:26.504359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.507449"], ["updated_at", "2018-06-08 20:12:26.507449"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.513609"], ["updated_at", "2018-06-08 20:12:26.513609"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.523377"], ["updated_at", "2018-06-08 20:12:26.523377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.524678"], ["updated_at", "2018-06-08 20:12:26.524678"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.527873"], ["updated_at", "2018-06-08 20:12:26.527873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.538728"], ["updated_at", "2018-06-08 20:12:26.538728"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.541731"], ["updated_at", "2018-06-08 20:12:26.541731"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.549911"], ["updated_at", "2018-06-08 20:12:26.549911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.551617"], ["updated_at", "2018-06-08 20:12:26.551617"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.556042"], ["updated_at", "2018-06-08 20:12:26.556042"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:12:26.557875"], ["updated_at", "2018-06-08 20:12:26.557875"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.603140"], ["updated_at", "2018-06-08 20:12:26.603140"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.605073"], ["updated_at", "2018-06-08 20:12:26.605073"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.609276"], ["updated_at", "2018-06-08 20:12:26.609276"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.611107"], ["updated_at", "2018-06-08 20:12:26.611107"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.620697"], ["updated_at", "2018-06-08 20:12:26.620697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.621909"], ["updated_at", "2018-06-08 20:12:26.621909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.639205"], ["updated_at", "2018-06-08 20:12:26.639205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.643640"], ["updated_at", "2018-06-08 20:12:26.643640"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.649705"], ["updated_at", "2018-06-08 20:12:26.649705"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.651008"], ["updated_at", "2018-06-08 20:12:26.651008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.661071"], ["updated_at", "2018-06-08 20:12:26.661071"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:26.663093"], ["updated_at", "2018-06-08 20:12:26.663093"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:12:40.453869"], ["updated_at", "2018-06-08 20:12:40.453869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:12:40.455245"], ["updated_at", "2018-06-08 20:12:40.455245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.505182"], ["updated_at", "2018-06-08 20:12:40.505182"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.513441"], ["updated_at", "2018-06-08 20:12:40.513441"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.517873"], ["updated_at", "2018-06-08 20:12:40.517873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.531423"], ["updated_at", "2018-06-08 20:12:40.531423"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:12:40.547818"], ["updated_at", "2018-06-08 20:12:40.547818"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.641611"], ["updated_at", "2018-06-08 20:12:40.641611"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.645955"], ["updated_at", "2018-06-08 20:12:40.645955"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.649729"], ["updated_at", "2018-06-08 20:12:40.649729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.655835"], ["updated_at", "2018-06-08 20:12:40.655835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:12:40.665973"], ["updated_at", "2018-06-08 20:12:40.665973"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:12:40.671337"], ["updated_at", "2018-06-08 20:12:40.671337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:12:40.687272"], ["updated_at", "2018-06-08 20:12:40.687272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:12:40.688674"], ["updated_at", "2018-06-08 20:12:40.688674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.689840"], ["updated_at", "2018-06-08 20:12:40.689840"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:12:40.705002"], ["updated_at", "2018-06-08 20:12:40.705002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 20:12:40.707495"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:12:40.709052"], ["updated_at", "2018-06-08 20:12:40.709052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:12:40.710103"], ["updated_at", "2018-06-08 20:12:40.710103"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.714763"], ["updated_at", "2018-06-08 20:12:40.714763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.721544"], ["updated_at", "2018-06-08 20:12:40.721544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.722608"], ["updated_at", "2018-06-08 20:12:40.722608"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.730697"], ["updated_at", "2018-06-08 20:12:40.730697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.731931"], ["updated_at", "2018-06-08 20:12:40.731931"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.734828"], ["updated_at", "2018-06-08 20:12:40.734828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.736027"], ["updated_at", "2018-06-08 20:12:40.736027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:12:40.760179"], ["updated_at", "2018-06-08 20:12:40.760179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:12:40.761299"], ["updated_at", "2018-06-08 20:12:40.761299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:12:40.764283"], ["updated_at", "2018-06-08 20:12:40.764283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:12:40.765588"], ["updated_at", "2018-06-08 20:12:40.765588"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.773228"], ["updated_at", "2018-06-08 20:12:40.773228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.776835"], ["updated_at", "2018-06-08 20:12:40.776835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.781411"], ["updated_at", "2018-06-08 20:12:40.781411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.782759"], ["updated_at", "2018-06-08 20:12:40.782759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:12:40.792635"], ["updated_at", "2018-06-08 20:12:40.792635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.796046"], ["updated_at", "2018-06-08 20:12:40.796046"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.802240"], ["updated_at", "2018-06-08 20:12:40.802240"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.803560"], ["updated_at", "2018-06-08 20:12:40.803560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.809892"], ["updated_at", "2018-06-08 20:12:40.809892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.812635"], ["updated_at", "2018-06-08 20:12:40.812635"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.821471"], ["updated_at", "2018-06-08 20:12:40.821471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.829722"], ["updated_at", "2018-06-08 20:12:40.829722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.831043"], ["updated_at", "2018-06-08 20:12:40.831043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.832052"], ["updated_at", "2018-06-08 20:12:40.832052"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.835989"], ["updated_at", "2018-06-08 20:12:40.835989"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.837292"], ["updated_at", "2018-06-08 20:12:40.837292"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.838436"], ["updated_at", "2018-06-08 20:12:40.838436"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.841487"], ["updated_at", "2018-06-08 20:12:40.841487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:12:40.849081"], ["updated_at", "2018-06-08 20:12:40.849081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:12:40.850543"], ["updated_at", "2018-06-08 20:12:40.850543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:12:40.853236"], ["updated_at", "2018-06-08 20:12:40.853236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:12:40.854587"], ["updated_at", "2018-06-08 20:12:40.854587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.863442"], ["updated_at", "2018-06-08 20:12:40.863442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.865067"], ["updated_at", "2018-06-08 20:12:40.865067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.869461"], ["updated_at", "2018-06-08 20:12:40.869461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.875614"], ["updated_at", "2018-06-08 20:12:40.875614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.885531"], ["updated_at", "2018-06-08 20:12:40.885531"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.897743"], ["updated_at", "2018-06-08 20:12:40.897743"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.899275"], ["updated_at", "2018-06-08 20:12:40.899275"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.903382"], ["updated_at", "2018-06-08 20:12:40.903382"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.906444"], ["updated_at", "2018-06-08 20:12:40.906444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.916507"], ["updated_at", "2018-06-08 20:12:40.916507"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.923119"], ["updated_at", "2018-06-08 20:12:40.923119"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.924140"], ["updated_at", "2018-06-08 20:12:40.924140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.927251"], ["updated_at", "2018-06-08 20:12:40.927251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:12:40.937268"], ["updated_at", "2018-06-08 20:12:40.937268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.943500"], ["updated_at", "2018-06-08 20:12:40.943500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.952468"], ["updated_at", "2018-06-08 20:12:40.952468"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.959310"], ["updated_at", "2018-06-08 20:12:40.959310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.960610"], ["updated_at", "2018-06-08 20:12:40.960610"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.963836"], ["updated_at", "2018-06-08 20:12:40.963836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.965156"], ["updated_at", "2018-06-08 20:12:40.965156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (3.7ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.983378"], ["updated_at", "2018-06-08 20:12:40.983378"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.984729"], ["updated_at", "2018-06-08 20:12:40.984729"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.988284"], ["updated_at", "2018-06-08 20:12:40.988284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:12:40.989482"], ["updated_at", "2018-06-08 20:12:40.989482"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.993028"], ["updated_at", "2018-06-08 20:12:40.993028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.994221"], ["updated_at", "2018-06-08 20:12:40.994221"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.997009"], ["updated_at", "2018-06-08 20:12:40.997009"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:40.998300"], ["updated_at", "2018-06-08 20:12:40.998300"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:41.002391"], ["updated_at", "2018-06-08 20:12:41.002391"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:41.004995"], ["updated_at", "2018-06-08 20:12:41.004995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:41.005939"], ["updated_at", "2018-06-08 20:12:41.005939"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:12:41.010016"], ["updated_at", "2018-06-08 20:12:41.010016"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:12:41.041488"], ["updated_at", "2018-06-08 20:12:41.041488"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (1.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.3ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (1.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:13:33.310960"], ["updated_at", "2018-06-08 20:13:33.310960"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:13:33.312642"], ["updated_at", "2018-06-08 20:13:33.312642"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:13:33.416019"], ["updated_at", "2018-06-08 20:13:33.416019"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.422333"], ["updated_at", "2018-06-08 20:13:33.422333"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.457373"], ["updated_at", "2018-06-08 20:13:33.457373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.466125"], ["updated_at", "2018-06-08 20:13:33.466125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.471541"], ["updated_at", "2018-06-08 20:13:33.471541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.599410"], ["updated_at", "2018-06-08 20:13:33.599410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.604188"], ["updated_at", "2018-06-08 20:13:33.604188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.610314"], ["updated_at", "2018-06-08 20:13:33.610314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.611549"], ["updated_at", "2018-06-08 20:13:33.611549"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.6ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.624346"], ["updated_at", "2018-06-08 20:13:33.624346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.625829"], ["updated_at", "2018-06-08 20:13:33.625829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.629503"], ["updated_at", "2018-06-08 20:13:33.629503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.635825"], ["updated_at", "2018-06-08 20:13:33.635825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.637218"], ["updated_at", "2018-06-08 20:13:33.637218"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.638643"], ["updated_at", "2018-06-08 20:13:33.638643"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.644102"], ["updated_at", "2018-06-08 20:13:33.644102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.645473"], ["updated_at", "2018-06-08 20:13:33.645473"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.658161"], ["updated_at", "2018-06-08 20:13:33.658161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.659492"], ["updated_at", "2018-06-08 20:13:33.659492"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.668909"], ["updated_at", "2018-06-08 20:13:33.668909"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.678204"], ["updated_at", "2018-06-08 20:13:33.678204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.688065"], ["updated_at", "2018-06-08 20:13:33.688065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.695682"], ["updated_at", "2018-06-08 20:13:33.695682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:13:33.701830"], ["updated_at", "2018-06-08 20:13:33.701830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:13:33.703268"], ["updated_at", "2018-06-08 20:13:33.703268"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.704929"], ["updated_at", "2018-06-08 20:13:33.704929"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:13:33.708644"], ["updated_at", "2018-06-08 20:13:33.708644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.712686"], ["updated_at", "2018-06-08 20:13:33.712686"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.718861"], ["updated_at", "2018-06-08 20:13:33.718861"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.720354"], ["updated_at", "2018-06-08 20:13:33.720354"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.722047"], ["updated_at", "2018-06-08 20:13:33.722047"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:13:33.731448"], ["updated_at", "2018-06-08 20:13:33.731448"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.738469"], ["updated_at", "2018-06-08 20:13:33.738469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.739959"], ["updated_at", "2018-06-08 20:13:33.739959"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.743155"], ["updated_at", "2018-06-08 20:13:33.743155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.744204"], ["updated_at", "2018-06-08 20:13:33.744204"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:13:33.749969"], ["updated_at", "2018-06-08 20:13:33.749969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 20:13:33.753122"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:13:33.754600"], ["updated_at", "2018-06-08 20:13:33.754600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:13:33.755896"], ["updated_at", "2018-06-08 20:13:33.755896"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.762433"], ["updated_at", "2018-06-08 20:13:33.762433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.769788"], ["updated_at", "2018-06-08 20:13:33.769788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.770879"], ["updated_at", "2018-06-08 20:13:33.770879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.805410"], ["updated_at", "2018-06-08 20:13:33.805410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.808996"], ["updated_at", "2018-06-08 20:13:33.808996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.814166"], ["updated_at", "2018-06-08 20:13:33.814166"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.820212"], ["updated_at", "2018-06-08 20:13:33.820212"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.822352"], ["updated_at", "2018-06-08 20:13:33.822352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.830197"], ["updated_at", "2018-06-08 20:13:33.830197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.831502"], ["updated_at", "2018-06-08 20:13:33.831502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.842897"], ["updated_at", "2018-06-08 20:13:33.842897"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.846342"], ["updated_at", "2018-06-08 20:13:33.846342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.851095"], ["updated_at", "2018-06-08 20:13:33.851095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.863282"], ["updated_at", "2018-06-08 20:13:33.863282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.871686"], ["updated_at", "2018-06-08 20:13:33.871686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.872965"], ["updated_at", "2018-06-08 20:13:33.872965"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:13:33.889863"], ["updated_at", "2018-06-08 20:13:33.889863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:13:33.893280"], ["updated_at", "2018-06-08 20:13:33.893280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.906222"], ["updated_at", "2018-06-08 20:13:33.906222"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.913240"], ["updated_at", "2018-06-08 20:13:33.913240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.914350"], ["updated_at", "2018-06-08 20:13:33.914350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.917837"], ["updated_at", "2018-06-08 20:13:33.917837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.923329"], ["updated_at", "2018-06-08 20:13:33.923329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.926278"], ["updated_at", "2018-06-08 20:13:33.926278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.929211"], ["updated_at", "2018-06-08 20:13:33.929211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.934176"], ["updated_at", "2018-06-08 20:13:33.934176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.935464"], ["updated_at", "2018-06-08 20:13:33.935464"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:13:33.940487"], ["updated_at", "2018-06-08 20:13:33.940487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:13:33.941743"], ["updated_at", "2018-06-08 20:13:33.941743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:13:33.944193"], ["updated_at", "2018-06-08 20:13:33.944193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:13:33.945312"], ["updated_at", "2018-06-08 20:13:33.945312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.961967"], ["updated_at", "2018-06-08 20:13:33.961967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.970064"], ["updated_at", "2018-06-08 20:13:33.970064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:33.971407"], ["updated_at", "2018-06-08 20:13:33.971407"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:13:33.990847"], ["updated_at", "2018-06-08 20:13:33.990847"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:13:33.992735"], ["updated_at", "2018-06-08 20:13:33.992735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:13:33.995448"], ["updated_at", "2018-06-08 20:13:33.995448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:13:33.996657"], ["updated_at", "2018-06-08 20:13:33.996657"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (1.0ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:34.005683"], ["updated_at", "2018-06-08 20:13:34.005683"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:13:34.019623"], ["updated_at", "2018-06-08 20:13:34.019623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:34.038348"], ["updated_at", "2018-06-08 20:13:34.038348"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:13:34.040413"], ["updated_at", "2018-06-08 20:13:34.040413"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:34.044653"], ["updated_at", "2018-06-08 20:13:34.044653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:34.045737"], ["updated_at", "2018-06-08 20:13:34.045737"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models" ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:54.992793"], ["updated_at", "2018-06-08 20:13:54.992793"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.002693"], ["updated_at", "2018-06-08 20:13:55.002693"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.047439"], ["updated_at", "2018-06-08 20:13:55.047439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.056162"], ["updated_at", "2018-06-08 20:13:55.056162"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.057445"], ["updated_at", "2018-06-08 20:13:55.057445"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:13:55.069011"], ["updated_at", "2018-06-08 20:13:55.069011"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.098374"], ["updated_at", "2018-06-08 20:13:55.098374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.110975"], ["updated_at", "2018-06-08 20:13:55.110975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.117132"], ["updated_at", "2018-06-08 20:13:55.117132"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.119073"], ["updated_at", "2018-06-08 20:13:55.119073"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.128395"], ["updated_at", "2018-06-08 20:13:55.128395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.129785"], ["updated_at", "2018-06-08 20:13:55.129785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:13:55.145332"], ["updated_at", "2018-06-08 20:13:55.145332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:13:55.146696"], ["updated_at", "2018-06-08 20:13:55.146696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:13:55.150272"], ["updated_at", "2018-06-08 20:13:55.150272"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:13:55.152658"], ["updated_at", "2018-06-08 20:13:55.152658"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:13:55.159597"], ["updated_at", "2018-06-08 20:13:55.159597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:13:55.161048"], ["updated_at", "2018-06-08 20:13:55.161048"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.162235"], ["updated_at", "2018-06-08 20:13:55.162235"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.165050"], ["updated_at", "2018-06-08 20:13:55.165050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:13:55.166845"], ["updated_at", "2018-06-08 20:13:55.166845"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.172522"], ["updated_at", "2018-06-08 20:13:55.172522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.180808"], ["updated_at", "2018-06-08 20:13:55.180808"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.190160"], ["updated_at", "2018-06-08 20:13:55.190160"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.191605"], ["updated_at", "2018-06-08 20:13:55.191605"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.194831"], ["updated_at", "2018-06-08 20:13:55.194831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.195998"], ["updated_at", "2018-06-08 20:13:55.195998"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:13:55.200483"], ["updated_at", "2018-06-08 20:13:55.200483"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:13:55.202643"], ["updated_at", "2018-06-08 20:13:55.202643"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:13:55.206572"], ["updated_at", "2018-06-08 20:13:55.206572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:13:55.207848"], ["updated_at", "2018-06-08 20:13:55.207848"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:13:55.220159"], ["updated_at", "2018-06-08 20:13:55.220159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:13:55.223541"], ["updated_at", "2018-06-08 20:13:55.223541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.239740"], ["updated_at", "2018-06-08 20:13:55.239740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.249409"], ["updated_at", "2018-06-08 20:13:55.249409"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.251410"], ["updated_at", "2018-06-08 20:13:55.251410"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.256441"], ["updated_at", "2018-06-08 20:13:55.256441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:13:55.262753"], ["updated_at", "2018-06-08 20:13:55.262753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.266359"], ["updated_at", "2018-06-08 20:13:55.266359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:13:55.275552"], ["updated_at", "2018-06-08 20:13:55.275552"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 20:13:55.277683"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:13:55.279692"], ["updated_at", "2018-06-08 20:13:55.279692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:13:55.281276"], ["updated_at", "2018-06-08 20:13:55.281276"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.288182"], ["updated_at", "2018-06-08 20:13:55.288182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.304453"], ["updated_at", "2018-06-08 20:13:55.304453"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.312269"], ["updated_at", "2018-06-08 20:13:55.312269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.313660"], ["updated_at", "2018-06-08 20:13:55.313660"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.315150"], ["updated_at", "2018-06-08 20:13:55.315150"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.319793"], ["updated_at", "2018-06-08 20:13:55.319793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.321287"], ["updated_at", "2018-06-08 20:13:55.321287"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.339664"], ["updated_at", "2018-06-08 20:13:55.339664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:13:55.357581"], ["updated_at", "2018-06-08 20:13:55.357581"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.365688"], ["updated_at", "2018-06-08 20:13:55.365688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.374507"], ["updated_at", "2018-06-08 20:13:55.374507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.379131"], ["updated_at", "2018-06-08 20:13:55.379131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.384308"], ["updated_at", "2018-06-08 20:13:55.384308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.385891"], ["updated_at", "2018-06-08 20:13:55.385891"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.390640"], ["updated_at", "2018-06-08 20:13:55.390640"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.394742"], ["updated_at", "2018-06-08 20:13:55.394742"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.3ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.426470"], ["updated_at", "2018-06-08 20:13:55.426470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.427980"], ["updated_at", "2018-06-08 20:13:55.427980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.431494"], ["updated_at", "2018-06-08 20:13:55.431494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.453378"], ["updated_at", "2018-06-08 20:13:55.453378"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.455349"], ["updated_at", "2018-06-08 20:13:55.455349"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.459737"], ["updated_at", "2018-06-08 20:13:55.459737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.461199"], ["updated_at", "2018-06-08 20:13:55.461199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.479546"], ["updated_at", "2018-06-08 20:13:55.479546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.490991"], ["updated_at", "2018-06-08 20:13:55.490991"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.504504"], ["updated_at", "2018-06-08 20:13:55.504504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.505783"], ["updated_at", "2018-06-08 20:13:55.505783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.506916"], ["updated_at", "2018-06-08 20:13:55.506916"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.521071"], ["updated_at", "2018-06-08 20:13:55.521071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.522878"], ["updated_at", "2018-06-08 20:13:55.522878"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.527008"], ["updated_at", "2018-06-08 20:13:55.527008"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.529380"], ["updated_at", "2018-06-08 20:13:55.529380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.532881"], ["updated_at", "2018-06-08 20:13:55.532881"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.536263"], ["updated_at", "2018-06-08 20:13:55.536263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.542140"], ["updated_at", "2018-06-08 20:13:55.542140"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.543743"], ["updated_at", "2018-06-08 20:13:55.543743"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:13:55.783982"], ["updated_at", "2018-06-08 20:13:55.783982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:13:55.785965"], ["updated_at", "2018-06-08 20:13:55.785965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.860190"], ["updated_at", "2018-06-08 20:13:55.860190"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:13:55.869100"], ["updated_at", "2018-06-08 20:13:55.869100"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.876534"], ["updated_at", "2018-06-08 20:13:55.876534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.883847"], ["updated_at", "2018-06-08 20:13:55.883847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:13:55.888962"], ["updated_at", "2018-06-08 20:13:55.888962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.686625"], ["updated_at", "2018-06-08 20:14:29.686625"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:14:29.710579"], ["updated_at", "2018-06-08 20:14:29.710579"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:14:29.751252"], ["updated_at", "2018-06-08 20:14:29.751252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:14:29.752611"], ["updated_at", "2018-06-08 20:14:29.752611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.796567"], ["updated_at", "2018-06-08 20:14:29.796567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.804652"], ["updated_at", "2018-06-08 20:14:29.804652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.808968"], ["updated_at", "2018-06-08 20:14:29.808968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.3ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.820774"], ["updated_at", "2018-06-08 20:14:29.820774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.822115"], ["updated_at", "2018-06-08 20:14:29.822115"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.826101"], ["updated_at", "2018-06-08 20:14:29.826101"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.829386"], ["updated_at", "2018-06-08 20:14:29.829386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.834235"], ["updated_at", "2018-06-08 20:14:29.834235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.845933"], ["updated_at", "2018-06-08 20:14:29.845933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.863057"], ["updated_at", "2018-06-08 20:14:29.863057"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.867065"], ["updated_at", "2018-06-08 20:14:29.867065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:14:29.871755"], ["updated_at", "2018-06-08 20:14:29.871755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:14:29.873121"], ["updated_at", "2018-06-08 20:14:29.873121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:14:29.875970"], ["updated_at", "2018-06-08 20:14:29.875970"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:14:29.877016"], ["updated_at", "2018-06-08 20:14:29.877016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:14:29.890112"], ["updated_at", "2018-06-08 20:14:29.890112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 20:14:29.892979"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:14:29.894529"], ["updated_at", "2018-06-08 20:14:29.894529"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:14:29.896167"], ["updated_at", "2018-06-08 20:14:29.896167"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.901055"], ["updated_at", "2018-06-08 20:14:29.901055"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:14:29.909046"], ["updated_at", "2018-06-08 20:14:29.909046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:14:29.912454"], ["updated_at", "2018-06-08 20:14:29.912454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.925407"], ["updated_at", "2018-06-08 20:14:29.925407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.933589"], ["updated_at", "2018-06-08 20:14:29.933589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.941965"], ["updated_at", "2018-06-08 20:14:29.941965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.950302"], ["updated_at", "2018-06-08 20:14:29.950302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.951623"], ["updated_at", "2018-06-08 20:14:29.951623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.954997"], ["updated_at", "2018-06-08 20:14:29.954997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.959576"], ["updated_at", "2018-06-08 20:14:29.959576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.960798"], ["updated_at", "2018-06-08 20:14:29.960798"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:29.974744"], ["updated_at", "2018-06-08 20:14:29.974744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:14:29.981747"], ["updated_at", "2018-06-08 20:14:29.981747"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.022247"], ["updated_at", "2018-06-08 20:14:30.022247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.023473"], ["updated_at", "2018-06-08 20:14:30.023473"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:14:30.026364"], ["updated_at", "2018-06-08 20:14:30.026364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:14:30.027353"], ["updated_at", "2018-06-08 20:14:30.027353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:14:30.029497"], ["updated_at", "2018-06-08 20:14:30.029497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:14:30.030634"], ["updated_at", "2018-06-08 20:14:30.030634"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.037072"], ["updated_at", "2018-06-08 20:14:30.037072"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.038382"], ["updated_at", "2018-06-08 20:14:30.038382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.046752"], ["updated_at", "2018-06-08 20:14:30.046752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:14:30.048766"], ["updated_at", "2018-06-08 20:14:30.048766"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.052024"], ["updated_at", "2018-06-08 20:14:30.052024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.054816"], ["updated_at", "2018-06-08 20:14:30.054816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:14:30.064654"], ["updated_at", "2018-06-08 20:14:30.064654"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.073525"], ["updated_at", "2018-06-08 20:14:30.073525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.074837"], ["updated_at", "2018-06-08 20:14:30.074837"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.083005"], ["updated_at", "2018-06-08 20:14:30.083005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.090125"], ["updated_at", "2018-06-08 20:14:30.090125"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.092103"], ["updated_at", "2018-06-08 20:14:30.092103"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.108926"], ["updated_at", "2018-06-08 20:14:30.108926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.110656"], ["updated_at", "2018-06-08 20:14:30.110656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.120253"], ["updated_at", "2018-06-08 20:14:30.120253"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.125993"], ["updated_at", "2018-06-08 20:14:30.125993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.127179"], ["updated_at", "2018-06-08 20:14:30.127179"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.128306"], ["updated_at", "2018-06-08 20:14:30.128306"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.141765"], ["updated_at", "2018-06-08 20:14:30.141765"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.142939"], ["updated_at", "2018-06-08 20:14:30.142939"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.146122"], ["updated_at", "2018-06-08 20:14:30.146122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.150754"], ["updated_at", "2018-06-08 20:14:30.150754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.156673"], ["updated_at", "2018-06-08 20:14:30.156673"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.157875"], ["updated_at", "2018-06-08 20:14:30.157875"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.159055"], ["updated_at", "2018-06-08 20:14:30.159055"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.163218"], ["updated_at", "2018-06-08 20:14:30.163218"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.165077"], ["updated_at", "2018-06-08 20:14:30.165077"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.168835"], ["updated_at", "2018-06-08 20:14:30.168835"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.170319"], ["updated_at", "2018-06-08 20:14:30.170319"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.174656"], ["updated_at", "2018-06-08 20:14:30.174656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.176572"], ["updated_at", "2018-06-08 20:14:30.176572"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.186468"], ["updated_at", "2018-06-08 20:14:30.186468"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.194684"], ["updated_at", "2018-06-08 20:14:30.194684"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.202720"], ["updated_at", "2018-06-08 20:14:30.202720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.209634"], ["updated_at", "2018-06-08 20:14:30.209634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.210943"], ["updated_at", "2018-06-08 20:14:30.210943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.214596"], ["updated_at", "2018-06-08 20:14:30.214596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.219687"], ["updated_at", "2018-06-08 20:14:30.219687"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.220867"], ["updated_at", "2018-06-08 20:14:30.220867"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:14:30.223737"], ["updated_at", "2018-06-08 20:14:30.223737"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:14:30.225466"], ["updated_at", "2018-06-08 20:14:30.225466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.226717"], ["updated_at", "2018-06-08 20:14:30.226717"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:14:30.229678"], ["updated_at", "2018-06-08 20:14:30.229678"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:30.233778"], ["updated_at", "2018-06-08 20:14:30.233778"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:14:37.921750"], ["updated_at", "2018-06-08 20:14:37.921750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:14:37.929629"], ["updated_at", "2018-06-08 20:14:37.929629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:14:37.943543"], ["updated_at", "2018-06-08 20:14:37.943543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:14:37.944633"], ["updated_at", "2018-06-08 20:14:37.944633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:14:38.004333"], ["updated_at", "2018-06-08 20:14:38.004333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:14:38.007609"], ["updated_at", "2018-06-08 20:14:38.007609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:14:38.024726"], ["updated_at", "2018-06-08 20:14:38.024726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 20:14:38.027294"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:14:38.029162"], ["updated_at", "2018-06-08 20:14:38.029162"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:14:38.030170"], ["updated_at", "2018-06-08 20:14:38.030170"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.037797"], ["updated_at", "2018-06-08 20:14:38.037797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.050754"], ["updated_at", "2018-06-08 20:14:38.050754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.061670"], ["updated_at", "2018-06-08 20:14:38.061670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.062876"], ["updated_at", "2018-06-08 20:14:38.062876"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:14:38.067058"], ["updated_at", "2018-06-08 20:14:38.067058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:14:38.068494"], ["updated_at", "2018-06-08 20:14:38.068494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:14:38.071214"], ["updated_at", "2018-06-08 20:14:38.071214"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:14:38.072639"], ["updated_at", "2018-06-08 20:14:38.072639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.078053"], ["updated_at", "2018-06-08 20:14:38.078053"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.086334"], ["updated_at", "2018-06-08 20:14:38.086334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.088082"], ["updated_at", "2018-06-08 20:14:38.088082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.089630"], ["updated_at", "2018-06-08 20:14:38.089630"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.093257"], ["updated_at", "2018-06-08 20:14:38.093257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.101147"], ["updated_at", "2018-06-08 20:14:38.101147"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.102279"], ["updated_at", "2018-06-08 20:14:38.102279"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.117536"], ["updated_at", "2018-06-08 20:14:38.117536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.121752"], ["updated_at", "2018-06-08 20:14:38.121752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.126664"], ["updated_at", "2018-06-08 20:14:38.126664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.129636"], ["updated_at", "2018-06-08 20:14:38.129636"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.133532"], ["updated_at", "2018-06-08 20:14:38.133532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.145559"], ["updated_at", "2018-06-08 20:14:38.145559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.146766"], ["updated_at", "2018-06-08 20:14:38.146766"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.148195"], ["updated_at", "2018-06-08 20:14:38.148195"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.152756"], ["updated_at", "2018-06-08 20:14:38.152756"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:14:38.163075"], ["updated_at", "2018-06-08 20:14:38.163075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.179242"], ["updated_at", "2018-06-08 20:14:38.179242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.180385"], ["updated_at", "2018-06-08 20:14:38.180385"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:14:38.189278"], ["updated_at", "2018-06-08 20:14:38.189278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.195510"], ["updated_at", "2018-06-08 20:14:38.195510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.197019"], ["updated_at", "2018-06-08 20:14:38.197019"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.204340"], ["updated_at", "2018-06-08 20:14:38.204340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.216881"], ["updated_at", "2018-06-08 20:14:38.216881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.218531"], ["updated_at", "2018-06-08 20:14:38.218531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.222954"], ["updated_at", "2018-06-08 20:14:38.222954"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.228927"], ["updated_at", "2018-06-08 20:14:38.228927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.235959"], ["updated_at", "2018-06-08 20:14:38.235959"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:14:38.243884"], ["updated_at", "2018-06-08 20:14:38.243884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:14:38.245175"], ["updated_at", "2018-06-08 20:14:38.245175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.246275"], ["updated_at", "2018-06-08 20:14:38.246275"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.249980"], ["updated_at", "2018-06-08 20:14:38.249980"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.258789"], ["updated_at", "2018-06-08 20:14:38.258789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.266357"], ["updated_at", "2018-06-08 20:14:38.266357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.267883"], ["updated_at", "2018-06-08 20:14:38.267883"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.272033"], ["updated_at", "2018-06-08 20:14:38.272033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.273357"], ["updated_at", "2018-06-08 20:14:38.273357"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.284804"], ["updated_at", "2018-06-08 20:14:38.284804"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.286189"], ["updated_at", "2018-06-08 20:14:38.286189"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:14:38.294270"], ["updated_at", "2018-06-08 20:14:38.294270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.297091"], ["updated_at", "2018-06-08 20:14:38.297091"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.304221"], ["updated_at", "2018-06-08 20:14:38.304221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.305567"], ["updated_at", "2018-06-08 20:14:38.305567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.314204"], ["updated_at", "2018-06-08 20:14:38.314204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.315577"], ["updated_at", "2018-06-08 20:14:38.315577"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.330638"], ["updated_at", "2018-06-08 20:14:38.330638"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.333846"], ["updated_at", "2018-06-08 20:14:38.333846"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.335240"], ["updated_at", "2018-06-08 20:14:38.335240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.347475"], ["updated_at", "2018-06-08 20:14:38.347475"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.351001"], ["updated_at", "2018-06-08 20:14:38.351001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.357301"], ["updated_at", "2018-06-08 20:14:38.357301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.358556"], ["updated_at", "2018-06-08 20:14:38.358556"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.361756"], ["updated_at", "2018-06-08 20:14:38.361756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.364914"], ["updated_at", "2018-06-08 20:14:38.364914"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.370936"], ["updated_at", "2018-06-08 20:14:38.370936"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:14:38.372299"], ["updated_at", "2018-06-08 20:14:38.372299"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.375752"], ["updated_at", "2018-06-08 20:14:38.375752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.376802"], ["updated_at", "2018-06-08 20:14:38.376802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.379358"], ["updated_at", "2018-06-08 20:14:38.379358"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.388139"], ["updated_at", "2018-06-08 20:14:38.388139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.389476"], ["updated_at", "2018-06-08 20:14:38.389476"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ----------------------------------------------  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:14:38.610531"], ["updated_at", "2018-06-08 20:14:38.610531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:14:38.611792"], ["updated_at", "2018-06-08 20:14:38.611792"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:14:38.629332"], ["updated_at", "2018-06-08 20:14:38.629332"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.662395"], ["updated_at", "2018-06-08 20:14:38.662395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.672059"], ["updated_at", "2018-06-08 20:14:38.672059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.676070"], ["updated_at", "2018-06-08 20:14:38.676070"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:38.707285"], ["updated_at", "2018-06-08 20:14:38.707285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:14:48.834225"], ["updated_at", "2018-06-08 20:14:48.834225"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:14:48.841392"], ["updated_at", "2018-06-08 20:14:48.841392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:14:48.842656"], ["updated_at", "2018-06-08 20:14:48.842656"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:48.877328"], ["updated_at", "2018-06-08 20:14:48.877328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:48.889465"], ["updated_at", "2018-06-08 20:14:48.889465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:48.894028"], ["updated_at", "2018-06-08 20:14:48.894028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:48.905335"], ["updated_at", "2018-06-08 20:14:48.905335"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:14:48.971990"], ["updated_at", "2018-06-08 20:14:48.971990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:14:48.976322"], ["updated_at", "2018-06-08 20:14:48.976322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:48.991772"], ["updated_at", "2018-06-08 20:14:48.991772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:48.993103"], ["updated_at", "2018-06-08 20:14:48.993103"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:48.996331"], ["updated_at", "2018-06-08 20:14:48.996331"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.008794"], ["updated_at", "2018-06-08 20:14:49.008794"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.015581"], ["updated_at", "2018-06-08 20:14:49.015581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.016896"], ["updated_at", "2018-06-08 20:14:49.016896"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.042918"], ["updated_at", "2018-06-08 20:14:49.042918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.044310"], ["updated_at", "2018-06-08 20:14:49.044310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.061369"], ["updated_at", "2018-06-08 20:14:49.061369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.069944"], ["updated_at", "2018-06-08 20:14:49.069944"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.071601"], ["updated_at", "2018-06-08 20:14:49.071601"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.075317"], ["updated_at", "2018-06-08 20:14:49.075317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.076637"], ["updated_at", "2018-06-08 20:14:49.076637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.084583"], ["updated_at", "2018-06-08 20:14:49.084583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.085855"], ["updated_at", "2018-06-08 20:14:49.085855"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.089760"], ["updated_at", "2018-06-08 20:14:49.089760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:14:49.096825"], ["updated_at", "2018-06-08 20:14:49.096825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:14:49.098427"], ["updated_at", "2018-06-08 20:14:49.098427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:14:49.101174"], ["updated_at", "2018-06-08 20:14:49.101174"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:14:49.102917"], ["updated_at", "2018-06-08 20:14:49.102917"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.115086"], ["updated_at", "2018-06-08 20:14:49.115086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.119127"], ["updated_at", "2018-06-08 20:14:49.119127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.126183"], ["updated_at", "2018-06-08 20:14:49.126183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.128305"], ["updated_at", "2018-06-08 20:14:49.128305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:14:49.155178"], ["updated_at", "2018-06-08 20:14:49.155178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.170586"], ["updated_at", "2018-06-08 20:14:49.170586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:14:49.180839"], ["updated_at", "2018-06-08 20:14:49.180839"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 20:14:49.183139"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:14:49.185706"], ["updated_at", "2018-06-08 20:14:49.185706"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:14:49.187655"], ["updated_at", "2018-06-08 20:14:49.187655"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.195086"], ["updated_at", "2018-06-08 20:14:49.195086"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.196478"], ["updated_at", "2018-06-08 20:14:49.196478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.211698"], ["updated_at", "2018-06-08 20:14:49.211698"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.213099"], ["updated_at", "2018-06-08 20:14:49.213099"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.221761"], ["updated_at", "2018-06-08 20:14:49.221761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.230102"], ["updated_at", "2018-06-08 20:14:49.230102"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.240283"], ["updated_at", "2018-06-08 20:14:49.240283"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.244014"], ["updated_at", "2018-06-08 20:14:49.244014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.249194"], ["updated_at", "2018-06-08 20:14:49.249194"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.250723"], ["updated_at", "2018-06-08 20:14:49.250723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.253371"], ["updated_at", "2018-06-08 20:14:49.253371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.259545"], ["updated_at", "2018-06-08 20:14:49.259545"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:14:49.260969"], ["updated_at", "2018-06-08 20:14:49.260969"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:14:49.264701"], ["updated_at", "2018-06-08 20:14:49.264701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:14:49.266217"], ["updated_at", "2018-06-08 20:14:49.266217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:14:49.268752"], ["updated_at", "2018-06-08 20:14:49.268752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:14:49.269880"], ["updated_at", "2018-06-08 20:14:49.269880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:14:49.284085"], ["updated_at", "2018-06-08 20:14:49.284085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.290248"], ["updated_at", "2018-06-08 20:14:49.290248"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.293987"], ["updated_at", "2018-06-08 20:14:49.293987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:14:49.299026"], ["updated_at", "2018-06-08 20:14:49.299026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.301954"], ["updated_at", "2018-06-08 20:14:49.301954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.308093"], ["updated_at", "2018-06-08 20:14:49.308093"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.315282"], ["updated_at", "2018-06-08 20:14:49.315282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.318954"], ["updated_at", "2018-06-08 20:14:49.318954"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.322030"], ["updated_at", "2018-06-08 20:14:49.322030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.328137"], ["updated_at", "2018-06-08 20:14:49.328137"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.336204"], ["updated_at", "2018-06-08 20:14:49.336204"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.345358"], ["updated_at", "2018-06-08 20:14:49.345358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.346761"], ["updated_at", "2018-06-08 20:14:49.346761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.347825"], ["updated_at", "2018-06-08 20:14:49.347825"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.355010"], ["updated_at", "2018-06-08 20:14:49.355010"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.356992"], ["updated_at", "2018-06-08 20:14:49.356992"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.362626"], ["updated_at", "2018-06-08 20:14:49.362626"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.369608"], ["updated_at", "2018-06-08 20:14:49.369608"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.371277"], ["updated_at", "2018-06-08 20:14:49.371277"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.376599"], ["updated_at", "2018-06-08 20:14:49.376599"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.399645"], ["updated_at", "2018-06-08 20:14:49.399645"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.400817"], ["updated_at", "2018-06-08 20:14:49.400817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:14:49.411744"], ["updated_at", "2018-06-08 20:14:49.411744"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:14:49.413026"], ["updated_at", "2018-06-08 20:14:49.413026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.414372"], ["updated_at", "2018-06-08 20:14:49.414372"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.417087"], ["updated_at", "2018-06-08 20:14:49.417087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.418133"], ["updated_at", "2018-06-08 20:14:49.418133"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.419181"], ["updated_at", "2018-06-08 20:14:49.419181"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.423263"], ["updated_at", "2018-06-08 20:14:49.423263"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:14:49.424900"], ["updated_at", "2018-06-08 20:14:49.424900"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 20:59:34.179217"], ["updated_at", "2018-06-08 20:59:34.179217"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 20:59:34.214809"], ["updated_at", "2018-06-08 20:59:34.214809"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.239085"], ["updated_at", "2018-06-08 20:59:34.239085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.240767"], ["updated_at", "2018-06-08 20:59:34.240767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.244391"], ["updated_at", "2018-06-08 20:59:34.244391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:59:34.251340"], ["updated_at", "2018-06-08 20:59:34.251340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:59:34.252407"], ["updated_at", "2018-06-08 20:59:34.252407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:59:34.254745"], ["updated_at", "2018-06-08 20:59:34.254745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:59:34.255847"], ["updated_at", "2018-06-08 20:59:34.255847"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 20:59:34.265751"], ["updated_at", "2018-06-08 20:59:34.265751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.286537"], ["updated_at", "2018-06-08 20:59:34.286537"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.287665"], ["updated_at", "2018-06-08 20:59:34.287665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.296600"], ["updated_at", "2018-06-08 20:59:34.296600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.297581"], ["updated_at", "2018-06-08 20:59:34.297581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.298487"], ["updated_at", "2018-06-08 20:59:34.298487"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.301712"], ["updated_at", "2018-06-08 20:59:34.301712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.311202"], ["updated_at", "2018-06-08 20:59:34.311202"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 20:59:34.313777"], ["updated_at", "2018-06-08 20:59:34.313777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.315955"], ["updated_at", "2018-06-08 20:59:34.315955"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.320692"], ["updated_at", "2018-06-08 20:59:34.320692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.321514"], ["updated_at", "2018-06-08 20:59:34.321514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.322265"], ["updated_at", "2018-06-08 20:59:34.322265"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.325098"], ["updated_at", "2018-06-08 20:59:34.325098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.326353"], ["updated_at", "2018-06-08 20:59:34.326353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.336576"], ["updated_at", "2018-06-08 20:59:34.336576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.337442"], ["updated_at", "2018-06-08 20:59:34.337442"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.340179"], ["updated_at", "2018-06-08 20:59:34.340179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.341081"], ["updated_at", "2018-06-08 20:59:34.341081"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.343473"], ["updated_at", "2018-06-08 20:59:34.343473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.344376"], ["updated_at", "2018-06-08 20:59:34.344376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:59:34.355049"], ["updated_at", "2018-06-08 20:59:34.355049"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 20:59:34.356047"], ["updated_at", "2018-06-08 20:59:34.356047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.356963"], ["updated_at", "2018-06-08 20:59:34.356963"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.359313"], ["updated_at", "2018-06-08 20:59:34.359313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.362080"], ["updated_at", "2018-06-08 20:59:34.362080"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 20:59:34.366582"], ["updated_at", "2018-06-08 20:59:34.366582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 20:59:34.367862"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:59:34.369340"], ["updated_at", "2018-06-08 20:59:34.369340"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 20:59:34.370182"], ["updated_at", "2018-06-08 20:59:34.370182"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.374437"], ["updated_at", "2018-06-08 20:59:34.374437"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.380803"], ["updated_at", "2018-06-08 20:59:34.380803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.385439"], ["updated_at", "2018-06-08 20:59:34.385439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.392494"], ["updated_at", "2018-06-08 20:59:34.392494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.395466"], ["updated_at", "2018-06-08 20:59:34.395466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 20:59:34.398703"], ["updated_at", "2018-06-08 20:59:34.398703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 20:59:34.399561"], ["updated_at", "2018-06-08 20:59:34.399561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 20:59:34.401540"], ["updated_at", "2018-06-08 20:59:34.401540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 20:59:34.402488"], ["updated_at", "2018-06-08 20:59:34.402488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.411179"], ["updated_at", "2018-06-08 20:59:34.411179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 20:59:34.412291"], ["updated_at", "2018-06-08 20:59:34.412291"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.418552"], ["updated_at", "2018-06-08 20:59:34.418552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.419702"], ["updated_at", "2018-06-08 20:59:34.419702"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.422123"], ["updated_at", "2018-06-08 20:59:34.422123"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.424948"], ["updated_at", "2018-06-08 20:59:34.424948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.435105"], ["updated_at", "2018-06-08 20:59:34.435105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.448153"], ["updated_at", "2018-06-08 20:59:34.448153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.454062"], ["updated_at", "2018-06-08 20:59:34.454062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.457583"], ["updated_at", "2018-06-08 20:59:34.457583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.460544"], ["updated_at", "2018-06-08 20:59:34.460544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.464382"], ["updated_at", "2018-06-08 20:59:34.464382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.467629"], ["updated_at", "2018-06-08 20:59:34.467629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.472673"], ["updated_at", "2018-06-08 20:59:34.472673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.474112"], ["updated_at", "2018-06-08 20:59:34.474112"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.480530"], ["updated_at", "2018-06-08 20:59:34.480530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.481535"], ["updated_at", "2018-06-08 20:59:34.481535"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.484928"], ["updated_at", "2018-06-08 20:59:34.484928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.485894"], ["updated_at", "2018-06-08 20:59:34.485894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.492892"], ["updated_at", "2018-06-08 20:59:34.492892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.500689"], ["updated_at", "2018-06-08 20:59:34.500689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.505342"], ["updated_at", "2018-06-08 20:59:34.505342"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.512638"], ["updated_at", "2018-06-08 20:59:34.512638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.513644"], ["updated_at", "2018-06-08 20:59:34.513644"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.515816"], ["updated_at", "2018-06-08 20:59:34.515816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.516647"], ["updated_at", "2018-06-08 20:59:34.516647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.519540"], ["updated_at", "2018-06-08 20:59:34.519540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 20:59:34.554127"], ["updated_at", "2018-06-08 20:59:34.554127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.560351"], ["updated_at", "2018-06-08 20:59:34.560351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.566449"], ["updated_at", "2018-06-08 20:59:34.566449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.567573"], ["updated_at", "2018-06-08 20:59:34.567573"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.585222"], ["updated_at", "2018-06-08 20:59:34.585222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.592145"], ["updated_at", "2018-06-08 20:59:34.592145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.596300"], ["updated_at", "2018-06-08 20:59:34.596300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 20:59:34.619155"], ["updated_at", "2018-06-08 20:59:34.619155"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 20:59:34.620386"], ["updated_at", "2018-06-08 20:59:34.620386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 20:59:34.636315"], ["updated_at", "2018-06-08 20:59:34.636315"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (3.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.5ms) commit transaction  (0.4ms) begin transaction SQL (0.6ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.3ms) commit transaction TestModelSecurityModel Load (0.3ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) begin transaction TestAttr Exists (0.3ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.3ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 20:59:34.747520"], ["updated_at", "2018-06-08 20:59:34.747520"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (1.9ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.3ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.3ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.3ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.3ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 21:02:09.805370"], ["updated_at", "2018-06-08 21:02:09.805370"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.2ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:09.948210"], ["updated_at", "2018-06-08 21:02:09.948210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:09.966234"], ["updated_at", "2018-06-08 21:02:09.966234"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:09.973308"], ["updated_at", "2018-06-08 21:02:09.973308"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 21:02:09.986569"], ["updated_at", "2018-06-08 21:02:09.986569"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 21:02:09.988219"], ["updated_at", "2018-06-08 21:02:09.988219"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.037887"], ["updated_at", "2018-06-08 21:02:10.037887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.095792"], ["updated_at", "2018-06-08 21:02:10.095792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.096902"], ["updated_at", "2018-06-08 21:02:10.096902"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.099657"], ["updated_at", "2018-06-08 21:02:10.099657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.108540"], ["updated_at", "2018-06-08 21:02:10.108540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.116304"], ["updated_at", "2018-06-08 21:02:10.116304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 21:02:10.117320"], ["updated_at", "2018-06-08 21:02:10.117320"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.132488"], ["updated_at", "2018-06-08 21:02:10.132488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.133695"], ["updated_at", "2018-06-08 21:02:10.133695"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.150450"], ["updated_at", "2018-06-08 21:02:10.150450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.151952"], ["updated_at", "2018-06-08 21:02:10.151952"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.156123"], ["updated_at", "2018-06-08 21:02:10.156123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.161867"], ["updated_at", "2018-06-08 21:02:10.161867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.168480"], ["updated_at", "2018-06-08 21:02:10.168480"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:02:10.181176"], ["updated_at", "2018-06-08 21:02:10.181176"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.185988"], ["updated_at", "2018-06-08 21:02:10.185988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.191751"], ["updated_at", "2018-06-08 21:02:10.191751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.193052"], ["updated_at", "2018-06-08 21:02:10.193052"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.206696"], ["updated_at", "2018-06-08 21:02:10.206696"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.209527"], ["updated_at", "2018-06-08 21:02:10.209527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 21:02:10.214905"], ["updated_at", "2018-06-08 21:02:10.214905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.217447"], ["updated_at", "2018-06-08 21:02:10.217447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.222005"], ["updated_at", "2018-06-08 21:02:10.222005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.223439"], ["updated_at", "2018-06-08 21:02:10.223439"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.226138"], ["updated_at", "2018-06-08 21:02:10.226138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.228836"], ["updated_at", "2018-06-08 21:02:10.228836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.231152"], ["updated_at", "2018-06-08 21:02:10.231152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.235029"], ["updated_at", "2018-06-08 21:02:10.235029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.241690"], ["updated_at", "2018-06-08 21:02:10.241690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.246268"], ["updated_at", "2018-06-08 21:02:10.246268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:02:10.251222"], ["updated_at", "2018-06-08 21:02:10.251222"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:02:10.253186"], ["updated_at", "2018-06-08 21:02:10.253186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:02:10.255341"], ["updated_at", "2018-06-08 21:02:10.255341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:02:10.256437"], ["updated_at", "2018-06-08 21:02:10.256437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.264455"], ["updated_at", "2018-06-08 21:02:10.264455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.265543"], ["updated_at", "2018-06-08 21:02:10.265543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.266393"], ["updated_at", "2018-06-08 21:02:10.266393"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.269767"], ["updated_at", "2018-06-08 21:02:10.269767"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.271013"], ["updated_at", "2018-06-08 21:02:10.271013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.278528"], ["updated_at", "2018-06-08 21:02:10.278528"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.279716"], ["updated_at", "2018-06-08 21:02:10.279716"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.282680"], ["updated_at", "2018-06-08 21:02:10.282680"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.283618"], ["updated_at", "2018-06-08 21:02:10.283618"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.286009"], ["updated_at", "2018-06-08 21:02:10.286009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.286938"], ["updated_at", "2018-06-08 21:02:10.286938"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.296856"], ["updated_at", "2018-06-08 21:02:10.296856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.297951"], ["updated_at", "2018-06-08 21:02:10.297951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 21:02:10.308434"], ["updated_at", "2018-06-08 21:02:10.308434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.324767"], ["updated_at", "2018-06-08 21:02:10.324767"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:02:10.327110"], ["updated_at", "2018-06-08 21:02:10.327110"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:02:10.328342"], ["updated_at", "2018-06-08 21:02:10.328342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.329295"], ["updated_at", "2018-06-08 21:02:10.329295"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.341380"], ["updated_at", "2018-06-08 21:02:10.341380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.344416"], ["updated_at", "2018-06-08 21:02:10.344416"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:02:10.349028"], ["updated_at", "2018-06-08 21:02:10.349028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:02:10.350104"], ["updated_at", "2018-06-08 21:02:10.350104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:02:10.352190"], ["updated_at", "2018-06-08 21:02:10.352190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:02:10.353246"], ["updated_at", "2018-06-08 21:02:10.353246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.357922"], ["updated_at", "2018-06-08 21:02:10.357922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.386922"], ["updated_at", "2018-06-08 21:02:10.386922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 21:02:10.392195"], ["updated_at", "2018-06-08 21:02:10.392195"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 21:02:10.395858"], ["updated_at", "2018-06-08 21:02:10.395858"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 21:02:10.409802"], ["updated_at", "2018-06-08 21:02:10.409802"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 21:02:10.412522"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:02:10.413843"], ["updated_at", "2018-06-08 21:02:10.413843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 21:02:10.415029"], ["updated_at", "2018-06-08 21:02:10.415029"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.420252"], ["updated_at", "2018-06-08 21:02:10.420252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.421349"], ["updated_at", "2018-06-08 21:02:10.421349"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.424992"], ["updated_at", "2018-06-08 21:02:10.424992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.425978"], ["updated_at", "2018-06-08 21:02:10.425978"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.427193"], ["updated_at", "2018-06-08 21:02:10.427193"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.430881"], ["updated_at", "2018-06-08 21:02:10.430881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.431987"], ["updated_at", "2018-06-08 21:02:10.431987"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.434161"], ["updated_at", "2018-06-08 21:02:10.434161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.435178"], ["updated_at", "2018-06-08 21:02:10.435178"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.439436"], ["updated_at", "2018-06-08 21:02:10.439436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.447415"], ["updated_at", "2018-06-08 21:02:10.447415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.452551"], ["updated_at", "2018-06-08 21:02:10.452551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.453569"], ["updated_at", "2018-06-08 21:02:10.453569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:10.456830"], ["updated_at", "2018-06-08 21:02:10.456830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.2ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 21:02:20.434705"], ["updated_at", "2018-06-08 21:02:20.434705"]]  (0.2ms) commit transaction SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 21:02:20.452451"], ["updated_at", "2018-06-08 21:02:20.452451"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 21:02:20.454448"], ["updated_at", "2018-06-08 21:02:20.454448"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.3ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.528881"], ["updated_at", "2018-06-08 21:02:20.528881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.536383"], ["updated_at", "2018-06-08 21:02:20.536383"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.543066"], ["updated_at", "2018-06-08 21:02:20.543066"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.557807"], ["updated_at", "2018-06-08 21:02:20.557807"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:02:20.750062"], ["updated_at", "2018-06-08 21:02:20.750062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:02:20.751304"], ["updated_at", "2018-06-08 21:02:20.751304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:02:20.753778"], ["updated_at", "2018-06-08 21:02:20.753778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:02:20.754719"], ["updated_at", "2018-06-08 21:02:20.754719"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.760654"], ["updated_at", "2018-06-08 21:02:20.760654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.766163"], ["updated_at", "2018-06-08 21:02:20.766163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.767088"], ["updated_at", "2018-06-08 21:02:20.767088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.777197"], ["updated_at", "2018-06-08 21:02:20.777197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.782154"], ["updated_at", "2018-06-08 21:02:20.782154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.783047"], ["updated_at", "2018-06-08 21:02:20.783047"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.785801"], ["updated_at", "2018-06-08 21:02:20.785801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.791725"], ["updated_at", "2018-06-08 21:02:20.791725"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.793639"], ["updated_at", "2018-06-08 21:02:20.793639"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 21:02:20.799516"], ["updated_at", "2018-06-08 21:02:20.799516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 21:02:20.801757"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:02:20.802856"], ["updated_at", "2018-06-08 21:02:20.802856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 21:02:20.803735"], ["updated_at", "2018-06-08 21:02:20.803735"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.808919"], ["updated_at", "2018-06-08 21:02:20.808919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.812083"], ["updated_at", "2018-06-08 21:02:20.812083"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.816990"], ["updated_at", "2018-06-08 21:02:20.816990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:02:20.824484"], ["updated_at", "2018-06-08 21:02:20.824484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:02:20.826098"], ["updated_at", "2018-06-08 21:02:20.826098"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:02:20.828781"], ["updated_at", "2018-06-08 21:02:20.828781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:02:20.829934"], ["updated_at", "2018-06-08 21:02:20.829934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.839966"], ["updated_at", "2018-06-08 21:02:20.839966"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.846155"], ["updated_at", "2018-06-08 21:02:20.846155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.847170"], ["updated_at", "2018-06-08 21:02:20.847170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.857053"], ["updated_at", "2018-06-08 21:02:20.857053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.858559"], ["updated_at", "2018-06-08 21:02:20.858559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:02:20.874277"], ["updated_at", "2018-06-08 21:02:20.874277"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.879665"], ["updated_at", "2018-06-08 21:02:20.879665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (3.5ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.885801"], ["updated_at", "2018-06-08 21:02:20.885801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.891709"], ["updated_at", "2018-06-08 21:02:20.891709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.893368"], ["updated_at", "2018-06-08 21:02:20.893368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.894581"], ["updated_at", "2018-06-08 21:02:20.894581"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.899424"], ["updated_at", "2018-06-08 21:02:20.899424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.906806"], ["updated_at", "2018-06-08 21:02:20.906806"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.909777"], ["updated_at", "2018-06-08 21:02:20.909777"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.913549"], ["updated_at", "2018-06-08 21:02:20.913549"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.917297"], ["updated_at", "2018-06-08 21:02:20.917297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.921816"], ["updated_at", "2018-06-08 21:02:20.921816"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.925009"], ["updated_at", "2018-06-08 21:02:20.925009"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.929424"], ["updated_at", "2018-06-08 21:02:20.929424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.930452"], ["updated_at", "2018-06-08 21:02:20.930452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.931326"], ["updated_at", "2018-06-08 21:02:20.931326"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:02:20.952172"], ["updated_at", "2018-06-08 21:02:20.952172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:02:20.953356"], ["updated_at", "2018-06-08 21:02:20.953356"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.954385"], ["updated_at", "2018-06-08 21:02:20.954385"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.958548"], ["updated_at", "2018-06-08 21:02:20.958548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.969190"], ["updated_at", "2018-06-08 21:02:20.969190"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.979470"], ["updated_at", "2018-06-08 21:02:20.979470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.986908"], ["updated_at", "2018-06-08 21:02:20.986908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.988189"], ["updated_at", "2018-06-08 21:02:20.988189"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.991796"], ["updated_at", "2018-06-08 21:02:20.991796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.992946"], ["updated_at", "2018-06-08 21:02:20.992946"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.997436"], ["updated_at", "2018-06-08 21:02:20.997436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:20.998593"], ["updated_at", "2018-06-08 21:02:20.998593"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.001612"], ["updated_at", "2018-06-08 21:02:21.001612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.005408"], ["updated_at", "2018-06-08 21:02:21.005408"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 21:02:21.006622"], ["updated_at", "2018-06-08 21:02:21.006622"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.010107"], ["updated_at", "2018-06-08 21:02:21.010107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.011289"], ["updated_at", "2018-06-08 21:02:21.011289"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.013982"], ["updated_at", "2018-06-08 21:02:21.013982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.014913"], ["updated_at", "2018-06-08 21:02:21.014913"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.017416"], ["updated_at", "2018-06-08 21:02:21.017416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.018479"], ["updated_at", "2018-06-08 21:02:21.018479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.025112"], ["updated_at", "2018-06-08 21:02:21.025112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.026375"], ["updated_at", "2018-06-08 21:02:21.026375"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 21:02:21.038908"], ["updated_at", "2018-06-08 21:02:21.038908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 21:02:21.041935"], ["updated_at", "2018-06-08 21:02:21.041935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 21:02:21.052580"], ["updated_at", "2018-06-08 21:02:21.052580"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.055773"], ["updated_at", "2018-06-08 21:02:21.055773"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 21:02:21.063957"], ["updated_at", "2018-06-08 21:02:21.063957"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.079413"], ["updated_at", "2018-06-08 21:02:21.079413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.080954"], ["updated_at", "2018-06-08 21:02:21.080954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.5ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.101747"], ["updated_at", "2018-06-08 21:02:21.101747"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.103712"], ["updated_at", "2018-06-08 21:02:21.103712"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.108240"], ["updated_at", "2018-06-08 21:02:21.108240"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:02:21.115537"], ["updated_at", "2018-06-08 21:02:21.115537"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (7.0ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 5.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) SQL (1.6ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 21:03:10.168118"], ["updated_at", "2018-06-08 21:03:10.168118"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 21:03:10.170756"], ["updated_at", "2018-06-08 21:03:10.170756"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 21:03:10.287590"], ["updated_at", "2018-06-08 21:03:10.287590"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.292625"], ["updated_at", "2018-06-08 21:03:10.292625"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.361036"], ["updated_at", "2018-06-08 21:03:10.361036"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.372981"], ["updated_at", "2018-06-08 21:03:10.372981"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.379023"], ["updated_at", "2018-06-08 21:03:10.379023"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 1ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ----------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 21:03:10.742590"], ["updated_at", "2018-06-08 21:03:10.742590"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 21:03:10.749821"], ["updated_at", "2018-06-08 21:03:10.749821"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.774292"], ["updated_at", "2018-06-08 21:03:10.774292"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.778912"], ["updated_at", "2018-06-08 21:03:10.778912"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.780989"], ["updated_at", "2018-06-08 21:03:10.780989"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:03:10.794586"], ["updated_at", "2018-06-08 21:03:10.794586"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.803441"], ["updated_at", "2018-06-08 21:03:10.803441"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.816221"], ["updated_at", "2018-06-08 21:03:10.816221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.829209"], ["updated_at", "2018-06-08 21:03:10.829209"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.831105"], ["updated_at", "2018-06-08 21:03:10.831105"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.835598"], ["updated_at", "2018-06-08 21:03:10.835598"]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:03:10.843194"], ["updated_at", "2018-06-08 21:03:10.843194"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:03:10.845906"], ["updated_at", "2018-06-08 21:03:10.845906"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:03:10.851241"], ["updated_at", "2018-06-08 21:03:10.851241"]]  (0.4ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:03:10.853842"], ["updated_at", "2018-06-08 21:03:10.853842"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.861790"], ["updated_at", "2018-06-08 21:03:10.861790"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.863970"], ["updated_at", "2018-06-08 21:03:10.863970"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.869115"], ["updated_at", "2018-06-08 21:03:10.869115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.873985"], ["updated_at", "2018-06-08 21:03:10.873985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.882130"], ["updated_at", "2018-06-08 21:03:10.882130"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.886619"], ["updated_at", "2018-06-08 21:03:10.886619"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.888417"], ["updated_at", "2018-06-08 21:03:10.888417"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.908081"], ["updated_at", "2018-06-08 21:03:10.908081"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 21:03:10.930066"], ["updated_at", "2018-06-08 21:03:10.930066"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.6ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (1.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.977180"], ["updated_at", "2018-06-08 21:03:10.977180"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.987737"], ["updated_at", "2018-06-08 21:03:10.987737"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 21:03:10.990215"], ["updated_at", "2018-06-08 21:03:10.990215"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:10.996396"], ["updated_at", "2018-06-08 21:03:10.996396"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.008047"], ["updated_at", "2018-06-08 21:03:11.008047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.015010"], ["updated_at", "2018-06-08 21:03:11.015010"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.020578"], ["updated_at", "2018-06-08 21:03:11.020578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 21:03:11.057407"], ["updated_at", "2018-06-08 21:03:11.057407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.062150"], ["updated_at", "2018-06-08 21:03:11.062150"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.072506"], ["updated_at", "2018-06-08 21:03:11.072506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.073872"], ["updated_at", "2018-06-08 21:03:11.073872"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.079475"], ["updated_at", "2018-06-08 21:03:11.079475"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.081758"], ["updated_at", "2018-06-08 21:03:11.081758"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.104886"], ["updated_at", "2018-06-08 21:03:11.104886"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.115175"], ["updated_at", "2018-06-08 21:03:11.115175"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.120245"], ["updated_at", "2018-06-08 21:03:11.120245"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.128778"], ["updated_at", "2018-06-08 21:03:11.128778"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.131427"], ["updated_at", "2018-06-08 21:03:11.131427"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:03:11.136611"], ["updated_at", "2018-06-08 21:03:11.136611"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:03:11.138837"], ["updated_at", "2018-06-08 21:03:11.138837"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:03:11.144395"], ["updated_at", "2018-06-08 21:03:11.144395"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:03:11.147308"], ["updated_at", "2018-06-08 21:03:11.147308"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.164364"], ["updated_at", "2018-06-08 21:03:11.164364"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.175385"], ["updated_at", "2018-06-08 21:03:11.175385"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.186192"], ["updated_at", "2018-06-08 21:03:11.186192"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.188467"], ["updated_at", "2018-06-08 21:03:11.188467"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.193543"], ["updated_at", "2018-06-08 21:03:11.193543"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.213116"], ["updated_at", "2018-06-08 21:03:11.213116"]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.222447"], ["updated_at", "2018-06-08 21:03:11.222447"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.224220"], ["updated_at", "2018-06-08 21:03:11.224220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.237129"], ["updated_at", "2018-06-08 21:03:11.237129"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.246975"], ["updated_at", "2018-06-08 21:03:11.246975"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.249175"], ["updated_at", "2018-06-08 21:03:11.249175"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.253818"], ["updated_at", "2018-06-08 21:03:11.253818"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.265714"], ["updated_at", "2018-06-08 21:03:11.265714"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.267263"], ["updated_at", "2018-06-08 21:03:11.267263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.276323"], ["updated_at", "2018-06-08 21:03:11.276323"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.278832"], ["updated_at", "2018-06-08 21:03:11.278832"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.280984"], ["updated_at", "2018-06-08 21:03:11.280984"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.286276"], ["updated_at", "2018-06-08 21:03:11.286276"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.288037"], ["updated_at", "2018-06-08 21:03:11.288037"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.298401"], ["updated_at", "2018-06-08 21:03:11.298401"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.300200"], ["updated_at", "2018-06-08 21:03:11.300200"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.304798"], ["updated_at", "2018-06-08 21:03:11.304798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:03:11.314476"], ["updated_at", "2018-06-08 21:03:11.314476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:03:11.315982"], ["updated_at", "2018-06-08 21:03:11.315982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.317246"], ["updated_at", "2018-06-08 21:03:11.317246"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 21:03:11.322168"], ["updated_at", "2018-06-08 21:03:11.322168"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 21:03:11.325019"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:03:11.326830"], ["updated_at", "2018-06-08 21:03:11.326830"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 21:03:11.329249"], ["updated_at", "2018-06-08 21:03:11.329249"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.337745"], ["updated_at", "2018-06-08 21:03:11.337745"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.339909"], ["updated_at", "2018-06-08 21:03:11.339909"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.357923"], ["updated_at", "2018-06-08 21:03:11.357923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:03:11.359583"], ["updated_at", "2018-06-08 21:03:11.359583"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models" -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params ---------------------------------------------------------------  (2.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:20.923600"], ["updated_at", "2018-06-08 21:31:20.923600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:20.965409"], ["updated_at", "2018-06-08 21:31:20.965409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:20.974500"], ["updated_at", "2018-06-08 21:31:20.974500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:20.975546"], ["updated_at", "2018-06-08 21:31:20.975546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:20.978750"], ["updated_at", "2018-06-08 21:31:20.978750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:20.983547"], ["updated_at", "2018-06-08 21:31:20.983547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:20.985013"], ["updated_at", "2018-06-08 21:31:20.985013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:31:21.003361"], ["updated_at", "2018-06-08 21:31:21.003361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:31:21.005294"], ["updated_at", "2018-06-08 21:31:21.005294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.006906"], ["updated_at", "2018-06-08 21:31:21.006906"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.009201"], ["updated_at", "2018-06-08 21:31:21.009201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.010003"], ["updated_at", "2018-06-08 21:31:21.010003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.016445"], ["updated_at", "2018-06-08 21:31:21.016445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.017413"], ["updated_at", "2018-06-08 21:31:21.017413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.028696"], ["updated_at", "2018-06-08 21:31:21.028696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.029963"], ["updated_at", "2018-06-08 21:31:21.029963"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.032877"], ["updated_at", "2018-06-08 21:31:21.032877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.033895"], ["updated_at", "2018-06-08 21:31:21.033895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.041250"], ["updated_at", "2018-06-08 21:31:21.041250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.047953"], ["updated_at", "2018-06-08 21:31:21.047953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.058386"], ["updated_at", "2018-06-08 21:31:21.058386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.070255"], ["updated_at", "2018-06-08 21:31:21.070255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.071321"], ["updated_at", "2018-06-08 21:31:21.071321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.073829"], ["updated_at", "2018-06-08 21:31:21.073829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 21:31:21.110469"], ["updated_at", "2018-06-08 21:31:21.110469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 21:31:21.113669"], ["updated_at", "2018-06-08 21:31:21.113669"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.125829"], ["updated_at", "2018-06-08 21:31:21.125829"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.128418"], ["updated_at", "2018-06-08 21:31:21.128418"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.129879"], ["updated_at", "2018-06-08 21:31:21.129879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.139668"], ["updated_at", "2018-06-08 21:31:21.139668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.146934"], ["updated_at", "2018-06-08 21:31:21.146934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.148157"], ["updated_at", "2018-06-08 21:31:21.148157"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.155978"], ["updated_at", "2018-06-08 21:31:21.155978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.158861"], ["updated_at", "2018-06-08 21:31:21.158861"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.162167"], ["updated_at", "2018-06-08 21:31:21.162167"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 21:31:21.171156"], ["updated_at", "2018-06-08 21:31:21.171156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 21:31:21.173565"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:31:21.175461"], ["updated_at", "2018-06-08 21:31:21.175461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 21:31:21.176460"], ["updated_at", "2018-06-08 21:31:21.176460"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.188129"], ["updated_at", "2018-06-08 21:31:21.188129"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 21:31:21.189380"], ["updated_at", "2018-06-08 21:31:21.189380"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.192736"], ["updated_at", "2018-06-08 21:31:21.192736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.194056"], ["updated_at", "2018-06-08 21:31:21.194056"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.198797"], ["updated_at", "2018-06-08 21:31:21.198797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.200093"], ["updated_at", "2018-06-08 21:31:21.200093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.201178"], ["updated_at", "2018-06-08 21:31:21.201178"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:31:21.204712"], ["updated_at", "2018-06-08 21:31:21.204712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:31:21.205710"], ["updated_at", "2018-06-08 21:31:21.205710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:31:21.207691"], ["updated_at", "2018-06-08 21:31:21.207691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:31:21.208685"], ["updated_at", "2018-06-08 21:31:21.208685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.222171"], ["updated_at", "2018-06-08 21:31:21.222171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.224948"], ["updated_at", "2018-06-08 21:31:21.224948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 21:31:21.229810"], ["updated_at", "2018-06-08 21:31:21.229810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.232792"], ["updated_at", "2018-06-08 21:31:21.232792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.238831"], ["updated_at", "2018-06-08 21:31:21.238831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.246230"], ["updated_at", "2018-06-08 21:31:21.246230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.247158"], ["updated_at", "2018-06-08 21:31:21.247158"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:31:21.263347"], ["updated_at", "2018-06-08 21:31:21.263347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.268110"], ["updated_at", "2018-06-08 21:31:21.268110"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.270597"], ["updated_at", "2018-06-08 21:31:21.270597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.274952"], ["updated_at", "2018-06-08 21:31:21.274952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.275764"], ["updated_at", "2018-06-08 21:31:21.275764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.276710"], ["updated_at", "2018-06-08 21:31:21.276710"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.280923"], ["updated_at", "2018-06-08 21:31:21.280923"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.282026"], ["updated_at", "2018-06-08 21:31:21.282026"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.284574"], ["updated_at", "2018-06-08 21:31:21.284574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.285409"], ["updated_at", "2018-06-08 21:31:21.285409"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.288280"], ["updated_at", "2018-06-08 21:31:21.288280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.295166"], ["updated_at", "2018-06-08 21:31:21.295166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.297351"], ["updated_at", "2018-06-08 21:31:21.297351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.301237"], ["updated_at", "2018-06-08 21:31:21.301237"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.302071"], ["updated_at", "2018-06-08 21:31:21.302071"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 21:31:21.306043"], ["updated_at", "2018-06-08 21:31:21.306043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:31:21.321980"], ["updated_at", "2018-06-08 21:31:21.321980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:31:21.323149"], ["updated_at", "2018-06-08 21:31:21.323149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:31:21.325142"], ["updated_at", "2018-06-08 21:31:21.325142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:31:21.326076"], ["updated_at", "2018-06-08 21:31:21.326076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.330264"], ["updated_at", "2018-06-08 21:31:21.330264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.335029"], ["updated_at", "2018-06-08 21:31:21.335029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 21:31:21.461242"], ["updated_at", "2018-06-08 21:31:21.461242"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 21:31:21.463107"], ["updated_at", "2018-06-08 21:31:21.463107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.505386"], ["updated_at", "2018-06-08 21:31:21.505386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.512845"], ["updated_at", "2018-06-08 21:31:21.512845"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.517014"], ["updated_at", "2018-06-08 21:31:21.517014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:31:21.544302"], ["updated_at", "2018-06-08 21:31:21.544302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 21:31:21.559244"], ["updated_at", "2018-06-08 21:31:21.559244"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user -----------------------------------------  (1.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 21:34:20.990860"], ["updated_at", "2018-06-08 21:34:20.990860"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.047687"], ["updated_at", "2018-06-08 21:34:21.047687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:34:21.057122"], ["updated_at", "2018-06-08 21:34:21.057122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:34:21.058143"], ["updated_at", "2018-06-08 21:34:21.058143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:34:21.060240"], ["updated_at", "2018-06-08 21:34:21.060240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:34:21.061244"], ["updated_at", "2018-06-08 21:34:21.061244"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.071487"], ["updated_at", "2018-06-08 21:34:21.071487"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.073329"], ["updated_at", "2018-06-08 21:34:21.073329"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.083362"], ["updated_at", "2018-06-08 21:34:21.083362"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.096702"], ["updated_at", "2018-06-08 21:34:21.096702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 21:34:21.108374"], ["updated_at", "2018-06-08 21:34:21.108374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 21:34:21.110964"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:34:21.112671"], ["updated_at", "2018-06-08 21:34:21.112671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 21:34:21.113864"], ["updated_at", "2018-06-08 21:34:21.113864"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 21:34:21.127268"], ["updated_at", "2018-06-08 21:34:21.127268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 21:34:21.130443"], ["updated_at", "2018-06-08 21:34:21.130443"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.143523"], ["updated_at", "2018-06-08 21:34:21.143523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.144819"], ["updated_at", "2018-06-08 21:34:21.144819"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.149780"], ["updated_at", "2018-06-08 21:34:21.149780"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.151613"], ["updated_at", "2018-06-08 21:34:21.151613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.153073"], ["updated_at", "2018-06-08 21:34:21.153073"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 21:34:21.157192"], ["updated_at", "2018-06-08 21:34:21.157192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.161242"], ["updated_at", "2018-06-08 21:34:21.161242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.167290"], ["updated_at", "2018-06-08 21:34:21.167290"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.170479"], ["updated_at", "2018-06-08 21:34:21.170479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.173629"], ["updated_at", "2018-06-08 21:34:21.173629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.196669"], ["updated_at", "2018-06-08 21:34:21.196669"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.200381"], ["updated_at", "2018-06-08 21:34:21.200381"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.203338"], ["updated_at", "2018-06-08 21:34:21.203338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.207867"], ["updated_at", "2018-06-08 21:34:21.207867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.214240"], ["updated_at", "2018-06-08 21:34:21.214240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.215361"], ["updated_at", "2018-06-08 21:34:21.215361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:34:21.226521"], ["updated_at", "2018-06-08 21:34:21.226521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:34:21.227763"], ["updated_at", "2018-06-08 21:34:21.227763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.228682"], ["updated_at", "2018-06-08 21:34:21.228682"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.231174"], ["updated_at", "2018-06-08 21:34:21.231174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.232515"], ["updated_at", "2018-06-08 21:34:21.232515"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.236311"], ["updated_at", "2018-06-08 21:34:21.236311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.237391"], ["updated_at", "2018-06-08 21:34:21.237391"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.241119"], ["updated_at", "2018-06-08 21:34:21.241119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:34:21.246350"], ["updated_at", "2018-06-08 21:34:21.246350"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:34:21.247565"], ["updated_at", "2018-06-08 21:34:21.247565"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:34:21.250087"], ["updated_at", "2018-06-08 21:34:21.250087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:34:21.251449"], ["updated_at", "2018-06-08 21:34:21.251449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.256679"], ["updated_at", "2018-06-08 21:34:21.256679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.258128"], ["updated_at", "2018-06-08 21:34:21.258128"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.261200"], ["updated_at", "2018-06-08 21:34:21.261200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.262265"], ["updated_at", "2018-06-08 21:34:21.262265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.263209"], ["updated_at", "2018-06-08 21:34:21.263209"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.266812"], ["updated_at", "2018-06-08 21:34:21.266812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.268199"], ["updated_at", "2018-06-08 21:34:21.268199"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.271156"], ["updated_at", "2018-06-08 21:34:21.271156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.272120"], ["updated_at", "2018-06-08 21:34:21.272120"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.275678"], ["updated_at", "2018-06-08 21:34:21.275678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.280574"], ["updated_at", "2018-06-08 21:34:21.280574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.281849"], ["updated_at", "2018-06-08 21:34:21.281849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.304655"], ["updated_at", "2018-06-08 21:34:21.304655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.310108"], ["updated_at", "2018-06-08 21:34:21.310108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.311043"], ["updated_at", "2018-06-08 21:34:21.311043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.321527"], ["updated_at", "2018-06-08 21:34:21.321527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.326767"], ["updated_at", "2018-06-08 21:34:21.326767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.331344"], ["updated_at", "2018-06-08 21:34:21.331344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 21:34:21.332299"], ["updated_at", "2018-06-08 21:34:21.332299"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.335551"], ["updated_at", "2018-06-08 21:34:21.335551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.341402"], ["updated_at", "2018-06-08 21:34:21.341402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.343849"], ["updated_at", "2018-06-08 21:34:21.343849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.349018"], ["updated_at", "2018-06-08 21:34:21.349018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.350105"], ["updated_at", "2018-06-08 21:34:21.350105"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.356368"], ["updated_at", "2018-06-08 21:34:21.356368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.359986"], ["updated_at", "2018-06-08 21:34:21.359986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:34:21.368892"], ["updated_at", "2018-06-08 21:34:21.368892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.374768"], ["updated_at", "2018-06-08 21:34:21.374768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.375678"], ["updated_at", "2018-06-08 21:34:21.375678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.381559"], ["updated_at", "2018-06-08 21:34:21.381559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.389135"], ["updated_at", "2018-06-08 21:34:21.389135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.390531"], ["updated_at", "2018-06-08 21:34:21.390531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.394028"], ["updated_at", "2018-06-08 21:34:21.394028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.397988"], ["updated_at", "2018-06-08 21:34:21.397988"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.399516"], ["updated_at", "2018-06-08 21:34:21.399516"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.565858"], ["updated_at", "2018-06-08 21:34:21.565858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.573858"], ["updated_at", "2018-06-08 21:34:21.573858"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.577952"], ["updated_at", "2018-06-08 21:34:21.577952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 21:34:21.596397"], ["updated_at", "2018-06-08 21:34:21.596397"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 21:34:21.597509"], ["updated_at", "2018-06-08 21:34:21.597509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 21:34:21.638785"], ["updated_at", "2018-06-08 21:34:21.638785"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:34:21.642560"], ["updated_at", "2018-06-08 21:34:21.642560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index -----------------------------------------------------  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- SQL (1.3ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.309957"], ["updated_at", "2018-06-08 21:35:11.309957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.311312"], ["updated_at", "2018-06-08 21:35:11.311312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.335299"], ["updated_at", "2018-06-08 21:35:11.335299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.348870"], ["updated_at", "2018-06-08 21:35:11.348870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.352847"], ["updated_at", "2018-06-08 21:35:11.352847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.357954"], ["updated_at", "2018-06-08 21:35:11.357954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:35:11.365424"], ["updated_at", "2018-06-08 21:35:11.365424"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:35:11.366692"], ["updated_at", "2018-06-08 21:35:11.366692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:35:11.369520"], ["updated_at", "2018-06-08 21:35:11.369520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:35:11.370619"], ["updated_at", "2018-06-08 21:35:11.370619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.375030"], ["updated_at", "2018-06-08 21:35:11.375030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.376251"], ["updated_at", "2018-06-08 21:35:11.376251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.393398"], ["updated_at", "2018-06-08 21:35:11.393398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.399760"], ["updated_at", "2018-06-08 21:35:11.399760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.403640"], ["updated_at", "2018-06-08 21:35:11.403640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.408584"], ["updated_at", "2018-06-08 21:35:11.408584"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.411924"], ["updated_at", "2018-06-08 21:35:11.411924"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.414881"], ["updated_at", "2018-06-08 21:35:11.414881"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 21:35:11.423636"], ["updated_at", "2018-06-08 21:35:11.423636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 21:35:11.426982"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:35:11.429871"], ["updated_at", "2018-06-08 21:35:11.429871"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 21:35:11.432235"], ["updated_at", "2018-06-08 21:35:11.432235"]]  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.438906"], ["updated_at", "2018-06-08 21:35:11.438906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.439994"], ["updated_at", "2018-06-08 21:35:11.439994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.448759"], ["updated_at", "2018-06-08 21:35:11.448759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.484799"], ["updated_at", "2018-06-08 21:35:11.484799"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:35:11.493204"], ["updated_at", "2018-06-08 21:35:11.493204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.499277"], ["updated_at", "2018-06-08 21:35:11.499277"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.509912"], ["updated_at", "2018-06-08 21:35:11.509912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.511161"], ["updated_at", "2018-06-08 21:35:11.511161"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.514432"], ["updated_at", "2018-06-08 21:35:11.514432"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.515827"], ["updated_at", "2018-06-08 21:35:11.515827"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.519964"], ["updated_at", "2018-06-08 21:35:11.519964"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 21:35:11.526168"], ["updated_at", "2018-06-08 21:35:11.526168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 21:35:11.529818"], ["updated_at", "2018-06-08 21:35:11.529818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.545120"], ["updated_at", "2018-06-08 21:35:11.545120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.558006"], ["updated_at", "2018-06-08 21:35:11.558006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.559115"], ["updated_at", "2018-06-08 21:35:11.559115"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.572756"], ["updated_at", "2018-06-08 21:35:11.572756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.581726"], ["updated_at", "2018-06-08 21:35:11.581726"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:35:11.593328"], ["updated_at", "2018-06-08 21:35:11.593328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:35:11.594675"], ["updated_at", "2018-06-08 21:35:11.594675"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:35:11.597386"], ["updated_at", "2018-06-08 21:35:11.597386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:35:11.598952"], ["updated_at", "2018-06-08 21:35:11.598952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 21:35:11.608374"], ["updated_at", "2018-06-08 21:35:11.608374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.610897"], ["updated_at", "2018-06-08 21:35:11.610897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.616566"], ["updated_at", "2018-06-08 21:35:11.616566"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.619691"], ["updated_at", "2018-06-08 21:35:11.619691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.636147"], ["updated_at", "2018-06-08 21:35:11.636147"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.643960"], ["updated_at", "2018-06-08 21:35:11.643960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.645097"], ["updated_at", "2018-06-08 21:35:11.645097"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.647836"], ["updated_at", "2018-06-08 21:35:11.647836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.648840"], ["updated_at", "2018-06-08 21:35:11.648840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.650017"], ["updated_at", "2018-06-08 21:35:11.650017"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.653417"], ["updated_at", "2018-06-08 21:35:11.653417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.654490"], ["updated_at", "2018-06-08 21:35:11.654490"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.668292"], ["updated_at", "2018-06-08 21:35:11.668292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.674288"], ["updated_at", "2018-06-08 21:35:11.674288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.675303"], ["updated_at", "2018-06-08 21:35:11.675303"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 21:35:11.679735"], ["updated_at", "2018-06-08 21:35:11.679735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.692246"], ["updated_at", "2018-06-08 21:35:11.692246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.693286"], ["updated_at", "2018-06-08 21:35:11.693286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.695780"], ["updated_at", "2018-06-08 21:35:11.695780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.700726"], ["updated_at", "2018-06-08 21:35:11.700726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.702004"], ["updated_at", "2018-06-08 21:35:11.702004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:35:11.710694"], ["updated_at", "2018-06-08 21:35:11.710694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:35:11.711700"], ["updated_at", "2018-06-08 21:35:11.711700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.712674"], ["updated_at", "2018-06-08 21:35:11.712674"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.714847"], ["updated_at", "2018-06-08 21:35:11.714847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.716045"], ["updated_at", "2018-06-08 21:35:11.716045"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.721250"], ["updated_at", "2018-06-08 21:35:11.721250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.722489"], ["updated_at", "2018-06-08 21:35:11.722489"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.731715"], ["updated_at", "2018-06-08 21:35:11.731715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 21:35:11.732943"], ["updated_at", "2018-06-08 21:35:11.732943"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.736979"], ["updated_at", "2018-06-08 21:35:11.736979"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.738536"], ["updated_at", "2018-06-08 21:35:11.738536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.739468"], ["updated_at", "2018-06-08 21:35:11.739468"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.742357"], ["updated_at", "2018-06-08 21:35:11.742357"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.743385"], ["updated_at", "2018-06-08 21:35:11.743385"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.784235"], ["updated_at", "2018-06-08 21:35:11.784235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.791289"], ["updated_at", "2018-06-08 21:35:11.791289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.794794"], ["updated_at", "2018-06-08 21:35:11.794794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 21:35:11.808692"], ["updated_at", "2018-06-08 21:35:11.808692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 21:35:11.809847"], ["updated_at", "2018-06-08 21:35:11.809847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:35:11.833477"], ["updated_at", "2018-06-08 21:35:11.833477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 21:35:11.840083"], ["updated_at", "2018-06-08 21:35:11.840083"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------  (1.1ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.611281"], ["updated_at", "2018-06-08 21:55:58.611281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.630299"], ["updated_at", "2018-06-08 21:55:58.630299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.633953"], ["updated_at", "2018-06-08 21:55:58.633953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.645681"], ["updated_at", "2018-06-08 21:55:58.645681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 21:55:58.659893"], ["updated_at", "2018-06-08 21:55:58.659893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 21:55:58.661071"], ["updated_at", "2018-06-08 21:55:58.661071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 21:55:58.698675"], ["updated_at", "2018-06-08 21:55:58.698675"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.780829"], ["updated_at", "2018-06-08 21:55:58.780829"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.782349"], ["updated_at", "2018-06-08 21:55:58.782349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.798127"], ["updated_at", "2018-06-08 21:55:58.798127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.799211"], ["updated_at", "2018-06-08 21:55:58.799211"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.803133"], ["updated_at", "2018-06-08 21:55:58.803133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.806489"], ["updated_at", "2018-06-08 21:55:58.806489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.811558"], ["updated_at", "2018-06-08 21:55:58.811558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.814536"], ["updated_at", "2018-06-08 21:55:58.814536"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.820867"], ["updated_at", "2018-06-08 21:55:58.820867"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.828545"], ["updated_at", "2018-06-08 21:55:58.828545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 21:55:58.829670"], ["updated_at", "2018-06-08 21:55:58.829670"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.834081"], ["updated_at", "2018-06-08 21:55:58.834081"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.835724"], ["updated_at", "2018-06-08 21:55:58.835724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.839943"], ["updated_at", "2018-06-08 21:55:58.839943"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.844913"], ["updated_at", "2018-06-08 21:55:58.844913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:55:58.855163"], ["updated_at", "2018-06-08 21:55:58.855163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.861344"], ["updated_at", "2018-06-08 21:55:58.861344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.869319"], ["updated_at", "2018-06-08 21:55:58.869319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.884858"], ["updated_at", "2018-06-08 21:55:58.884858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.885857"], ["updated_at", "2018-06-08 21:55:58.885857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.886810"], ["updated_at", "2018-06-08 21:55:58.886810"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.902089"], ["updated_at", "2018-06-08 21:55:58.902089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.903297"], ["updated_at", "2018-06-08 21:55:58.903297"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 21:55:58.905634"], ["updated_at", "2018-06-08 21:55:58.905634"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.908893"], ["updated_at", "2018-06-08 21:55:58.908893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.913355"], ["updated_at", "2018-06-08 21:55:58.913355"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.914539"], ["updated_at", "2018-06-08 21:55:58.914539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.922360"], ["updated_at", "2018-06-08 21:55:58.922360"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.923456"], ["updated_at", "2018-06-08 21:55:58.923456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.934006"], ["updated_at", "2018-06-08 21:55:58.934006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.937020"], ["updated_at", "2018-06-08 21:55:58.937020"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.941958"], ["updated_at", "2018-06-08 21:55:58.941958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.943027"], ["updated_at", "2018-06-08 21:55:58.943027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.952064"], ["updated_at", "2018-06-08 21:55:58.952064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.957863"], ["updated_at", "2018-06-08 21:55:58.957863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:55:58.962782"], ["updated_at", "2018-06-08 21:55:58.962782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:55:58.963734"], ["updated_at", "2018-06-08 21:55:58.963734"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:55:58.966928"], ["updated_at", "2018-06-08 21:55:58.966928"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:55:58.968635"], ["updated_at", "2018-06-08 21:55:58.968635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:55:58.996779"], ["updated_at", "2018-06-08 21:55:58.996779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:55:58.997788"], ["updated_at", "2018-06-08 21:55:58.997788"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:58.998852"], ["updated_at", "2018-06-08 21:55:58.998852"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.002738"], ["updated_at", "2018-06-08 21:55:59.002738"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.010917"], ["updated_at", "2018-06-08 21:55:59.010917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.012112"], ["updated_at", "2018-06-08 21:55:59.012112"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:55:59.015856"], ["updated_at", "2018-06-08 21:55:59.015856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:55:59.017169"], ["updated_at", "2018-06-08 21:55:59.017169"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:55:59.019694"], ["updated_at", "2018-06-08 21:55:59.019694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:55:59.020862"], ["updated_at", "2018-06-08 21:55:59.020862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.025335"], ["updated_at", "2018-06-08 21:55:59.025335"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 21:55:59.031084"], ["updated_at", "2018-06-08 21:55:59.031084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 21:55:59.033841"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:55:59.035849"], ["updated_at", "2018-06-08 21:55:59.035849"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 21:55:59.037459"], ["updated_at", "2018-06-08 21:55:59.037459"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.042758"], ["updated_at", "2018-06-08 21:55:59.042758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.043867"], ["updated_at", "2018-06-08 21:55:59.043867"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.045937"], ["updated_at", "2018-06-08 21:55:59.045937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.046862"], ["updated_at", "2018-06-08 21:55:59.046862"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.050150"], ["updated_at", "2018-06-08 21:55:59.050150"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.058885"], ["updated_at", "2018-06-08 21:55:59.058885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.060024"], ["updated_at", "2018-06-08 21:55:59.060024"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.062139"], ["updated_at", "2018-06-08 21:55:59.062139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.063054"], ["updated_at", "2018-06-08 21:55:59.063054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.069927"], ["updated_at", "2018-06-08 21:55:59.069927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.075824"], ["updated_at", "2018-06-08 21:55:59.075824"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 21:55:59.083469"], ["updated_at", "2018-06-08 21:55:59.083469"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 21:55:59.086941"], ["updated_at", "2018-06-08 21:55:59.086941"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.098693"], ["updated_at", "2018-06-08 21:55:59.098693"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.101054"], ["updated_at", "2018-06-08 21:55:59.101054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.102869"], ["updated_at", "2018-06-08 21:55:59.102869"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 21:55:59.108962"], ["updated_at", "2018-06-08 21:55:59.108962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.125437"], ["updated_at", "2018-06-08 21:55:59.125437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.126511"], ["updated_at", "2018-06-08 21:55:59.126511"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.143266"], ["updated_at", "2018-06-08 21:55:59.143266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.146514"], ["updated_at", "2018-06-08 21:55:59.146514"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.150459"], ["updated_at", "2018-06-08 21:55:59.150459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.159866"], ["updated_at", "2018-06-08 21:55:59.159866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.160788"], ["updated_at", "2018-06-08 21:55:59.160788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:55:59.163476"], ["updated_at", "2018-06-08 21:55:59.163476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 21:58:49.563087"], ["updated_at", "2018-06-08 21:58:49.563087"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.593990"], ["updated_at", "2018-06-08 21:58:49.593990"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.602963"], ["updated_at", "2018-06-08 21:58:49.602963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.606940"], ["updated_at", "2018-06-08 21:58:49.606940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.631268"], ["updated_at", "2018-06-08 21:58:49.631268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 21:58:49.640679"], ["updated_at", "2018-06-08 21:58:49.640679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 21:58:49.642363"], ["updated_at", "2018-06-08 21:58:49.642363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index -------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.743995"], ["updated_at", "2018-06-08 21:58:49.743995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.751132"], ["updated_at", "2018-06-08 21:58:49.751132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.757962"], ["updated_at", "2018-06-08 21:58:49.757962"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.759668"], ["updated_at", "2018-06-08 21:58:49.759668"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.762616"], ["updated_at", "2018-06-08 21:58:49.762616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.763773"], ["updated_at", "2018-06-08 21:58:49.763773"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.767030"], ["updated_at", "2018-06-08 21:58:49.767030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.767976"], ["updated_at", "2018-06-08 21:58:49.767976"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.770262"], ["updated_at", "2018-06-08 21:58:49.770262"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.771415"], ["updated_at", "2018-06-08 21:58:49.771415"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:58:49.776709"], ["updated_at", "2018-06-08 21:58:49.776709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:58:49.778391"], ["updated_at", "2018-06-08 21:58:49.778391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.779771"], ["updated_at", "2018-06-08 21:58:49.779771"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:58:49.787641"], ["updated_at", "2018-06-08 21:58:49.787641"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.794040"], ["updated_at", "2018-06-08 21:58:49.794040"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.796465"], ["updated_at", "2018-06-08 21:58:49.796465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.800146"], ["updated_at", "2018-06-08 21:58:49.800146"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.806361"], ["updated_at", "2018-06-08 21:58:49.806361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.814508"], ["updated_at", "2018-06-08 21:58:49.814508"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.825419"], ["updated_at", "2018-06-08 21:58:49.825419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.826725"], ["updated_at", "2018-06-08 21:58:49.826725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.829731"], ["updated_at", "2018-06-08 21:58:49.829731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.834307"], ["updated_at", "2018-06-08 21:58:49.834307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.835322"], ["updated_at", "2018-06-08 21:58:49.835322"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.3ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.850975"], ["updated_at", "2018-06-08 21:58:49.850975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.852201"], ["updated_at", "2018-06-08 21:58:49.852201"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.855839"], ["updated_at", "2018-06-08 21:58:49.855839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.858477"], ["updated_at", "2018-06-08 21:58:49.858477"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.862389"], ["updated_at", "2018-06-08 21:58:49.862389"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.873556"], ["updated_at", "2018-06-08 21:58:49.873556"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:58:49.881433"], ["updated_at", "2018-06-08 21:58:49.881433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:58:49.882663"], ["updated_at", "2018-06-08 21:58:49.882663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:58:49.884882"], ["updated_at", "2018-06-08 21:58:49.884882"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:58:49.885767"], ["updated_at", "2018-06-08 21:58:49.885767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 21:58:49.904151"], ["updated_at", "2018-06-08 21:58:49.904151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.907321"], ["updated_at", "2018-06-08 21:58:49.907321"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.911983"], ["updated_at", "2018-06-08 21:58:49.911983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.913027"], ["updated_at", "2018-06-08 21:58:49.913027"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.913923"], ["updated_at", "2018-06-08 21:58:49.913923"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.916878"], ["updated_at", "2018-06-08 21:58:49.916878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.917745"], ["updated_at", "2018-06-08 21:58:49.917745"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.935463"], ["updated_at", "2018-06-08 21:58:49.935463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.942443"], ["updated_at", "2018-06-08 21:58:49.942443"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 21:58:49.943467"], ["updated_at", "2018-06-08 21:58:49.943467"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.945910"], ["updated_at", "2018-06-08 21:58:49.945910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.946662"], ["updated_at", "2018-06-08 21:58:49.946662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.954669"], ["updated_at", "2018-06-08 21:58:49.954669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.957614"], ["updated_at", "2018-06-08 21:58:49.957614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.960164"], ["updated_at", "2018-06-08 21:58:49.960164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.963633"], ["updated_at", "2018-06-08 21:58:49.963633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.964556"], ["updated_at", "2018-06-08 21:58:49.964556"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 21:58:49.973503"], ["updated_at", "2018-06-08 21:58:49.973503"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.989754"], ["updated_at", "2018-06-08 21:58:49.989754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.991171"], ["updated_at", "2018-06-08 21:58:49.991171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.998049"], ["updated_at", "2018-06-08 21:58:49.998049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:49.999122"], ["updated_at", "2018-06-08 21:58:49.999122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:58:50.005836"], ["updated_at", "2018-06-08 21:58:50.005836"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:58:50.007804"], ["updated_at", "2018-06-08 21:58:50.007804"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:58:50.010375"], ["updated_at", "2018-06-08 21:58:50.010375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:58:50.011388"], ["updated_at", "2018-06-08 21:58:50.011388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 21:58:50.016102"], ["updated_at", "2018-06-08 21:58:50.016102"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 21:58:50.018897"], ["updated_at", "2018-06-08 21:58:50.018897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.032283"], ["updated_at", "2018-06-08 21:58:50.032283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 21:58:50.039358"], ["updated_at", "2018-06-08 21:58:50.039358"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 21:58:50.041920"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:58:50.043450"], ["updated_at", "2018-06-08 21:58:50.043450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 21:58:50.044490"], ["updated_at", "2018-06-08 21:58:50.044490"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.049035"], ["updated_at", "2018-06-08 21:58:50.049035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.051757"], ["updated_at", "2018-06-08 21:58:50.051757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.056667"], ["updated_at", "2018-06-08 21:58:50.056667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.083238"], ["updated_at", "2018-06-08 21:58:50.083238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.084313"], ["updated_at", "2018-06-08 21:58:50.084313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.087237"], ["updated_at", "2018-06-08 21:58:50.087237"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.092659"], ["updated_at", "2018-06-08 21:58:50.092659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.094018"], ["updated_at", "2018-06-08 21:58:50.094018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.109585"], ["updated_at", "2018-06-08 21:58:50.109585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.115345"], ["updated_at", "2018-06-08 21:58:50.115345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.116227"], ["updated_at", "2018-06-08 21:58:50.116227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:58:50.117051"], ["updated_at", "2018-06-08 21:58:50.117051"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------- HelperTest: test_permit ----------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 21:59:09.811705"], ["updated_at", "2018-06-08 21:59:09.811705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 21:59:09.823473"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:59:09.825990"], ["updated_at", "2018-06-08 21:59:09.825990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 21:59:09.826942"], ["updated_at", "2018-06-08 21:59:09.826942"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.835436"], ["updated_at", "2018-06-08 21:59:09.835436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.836329"], ["updated_at", "2018-06-08 21:59:09.836329"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.838408"], ["updated_at", "2018-06-08 21:59:09.838408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.839226"], ["updated_at", "2018-06-08 21:59:09.839226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.840018"], ["updated_at", "2018-06-08 21:59:09.840018"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.843143"], ["updated_at", "2018-06-08 21:59:09.843143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.863842"], ["updated_at", "2018-06-08 21:59:09.863842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.872009"], ["updated_at", "2018-06-08 21:59:09.872009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.878125"], ["updated_at", "2018-06-08 21:59:09.878125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.881006"], ["updated_at", "2018-06-08 21:59:09.881006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.883553"], ["updated_at", "2018-06-08 21:59:09.883553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.897859"], ["updated_at", "2018-06-08 21:59:09.897859"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.899185"], ["updated_at", "2018-06-08 21:59:09.899185"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.900285"], ["updated_at", "2018-06-08 21:59:09.900285"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.903759"], ["updated_at", "2018-06-08 21:59:09.903759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.909574"], ["updated_at", "2018-06-08 21:59:09.909574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.910591"], ["updated_at", "2018-06-08 21:59:09.910591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.913708"], ["updated_at", "2018-06-08 21:59:09.913708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.918540"], ["updated_at", "2018-06-08 21:59:09.918540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.919585"], ["updated_at", "2018-06-08 21:59:09.919585"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.922014"], ["updated_at", "2018-06-08 21:59:09.922014"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:59:09.924425"], ["updated_at", "2018-06-08 21:59:09.924425"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:59:09.925495"], ["updated_at", "2018-06-08 21:59:09.925495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:59:09.927435"], ["updated_at", "2018-06-08 21:59:09.927435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:59:09.928270"], ["updated_at", "2018-06-08 21:59:09.928270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.946484"], ["updated_at", "2018-06-08 21:59:09.946484"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.950265"], ["updated_at", "2018-06-08 21:59:09.950265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.970047"], ["updated_at", "2018-06-08 21:59:09.970047"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.970950"], ["updated_at", "2018-06-08 21:59:09.970950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.983165"], ["updated_at", "2018-06-08 21:59:09.983165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.988523"], ["updated_at", "2018-06-08 21:59:09.988523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.996471"], ["updated_at", "2018-06-08 21:59:09.996471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:09.997958"], ["updated_at", "2018-06-08 21:59:09.997958"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.001904"], ["updated_at", "2018-06-08 21:59:10.001904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.008346"], ["updated_at", "2018-06-08 21:59:10.008346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.011497"], ["updated_at", "2018-06-08 21:59:10.011497"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 21:59:10.017543"], ["updated_at", "2018-06-08 21:59:10.017543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.020510"], ["updated_at", "2018-06-08 21:59:10.020510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.026540"], ["updated_at", "2018-06-08 21:59:10.026540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.027783"], ["updated_at", "2018-06-08 21:59:10.027783"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.031285"], ["updated_at", "2018-06-08 21:59:10.031285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.034512"], ["updated_at", "2018-06-08 21:59:10.034512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.039017"], ["updated_at", "2018-06-08 21:59:10.039017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.040028"], ["updated_at", "2018-06-08 21:59:10.040028"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.064118"], ["updated_at", "2018-06-08 21:59:10.064118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.069785"], ["updated_at", "2018-06-08 21:59:10.069785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.070833"], ["updated_at", "2018-06-08 21:59:10.070833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.081844"], ["updated_at", "2018-06-08 21:59:10.081844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.083572"], ["updated_at", "2018-06-08 21:59:10.083572"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.086825"], ["updated_at", "2018-06-08 21:59:10.086825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.087874"], ["updated_at", "2018-06-08 21:59:10.087874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.101576"], ["updated_at", "2018-06-08 21:59:10.101576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.113052"], ["updated_at", "2018-06-08 21:59:10.113052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 21:59:10.124153"], ["updated_at", "2018-06-08 21:59:10.124153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.137739"], ["updated_at", "2018-06-08 21:59:10.137739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.138810"], ["updated_at", "2018-06-08 21:59:10.138810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.145208"], ["updated_at", "2018-06-08 21:59:10.145208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 21:59:10.146283"], ["updated_at", "2018-06-08 21:59:10.146283"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.158330"], ["updated_at", "2018-06-08 21:59:10.158330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.159283"], ["updated_at", "2018-06-08 21:59:10.159283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.165513"], ["updated_at", "2018-06-08 21:59:10.165513"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.166650"], ["updated_at", "2018-06-08 21:59:10.166650"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:59:10.172068"], ["updated_at", "2018-06-08 21:59:10.172068"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:59:10.177317"], ["updated_at", "2018-06-08 21:59:10.177317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:59:10.178329"], ["updated_at", "2018-06-08 21:59:10.178329"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:59:10.180457"], ["updated_at", "2018-06-08 21:59:10.180457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:59:10.182040"], ["updated_at", "2018-06-08 21:59:10.182040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.186754"], ["updated_at", "2018-06-08 21:59:10.186754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.187583"], ["updated_at", "2018-06-08 21:59:10.187583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.189803"], ["updated_at", "2018-06-08 21:59:10.189803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:59:10.193222"], ["updated_at", "2018-06-08 21:59:10.193222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:59:10.194037"], ["updated_at", "2018-06-08 21:59:10.194037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.194800"], ["updated_at", "2018-06-08 21:59:10.194800"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 21:59:10.196835"], ["updated_at", "2018-06-08 21:59:10.196835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 21:59:10.200438"], ["updated_at", "2018-06-08 21:59:10.200438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>""} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------- HelperTest: test_permit ----------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 21:59:10.312333"], ["updated_at", "2018-06-08 21:59:10.312333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 21:59:10.313203"], ["updated_at", "2018-06-08 21:59:10.313203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 21:59:10.332514"], ["updated_at", "2018-06-08 21:59:10.332514"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.351840"], ["updated_at", "2018-06-08 21:59:10.351840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.357360"], ["updated_at", "2018-06-08 21:59:10.357360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.360404"], ["updated_at", "2018-06-08 21:59:10.360404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:10.381847"], ["updated_at", "2018-06-08 21:59:10.381847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search ---------------------------------------------------------------------------------  (3.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:37.760948"], ["updated_at", "2018-06-08 21:59:37.760948"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:37.789284"], ["updated_at", "2018-06-08 21:59:37.789284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:37.792513"], ["updated_at", "2018-06-08 21:59:37.792513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 21:59:37.800634"], ["updated_at", "2018-06-08 21:59:37.800634"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:37.829663"], ["updated_at", "2018-06-08 21:59:37.829663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 8], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 21:59:37.871224"], ["updated_at", "2018-06-08 21:59:37.871224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 21:59:37.872268"], ["updated_at", "2018-06-08 21:59:37.872268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs" ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.143858"], ["updated_at", "2018-06-08 21:59:38.143858"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.145651"], ["updated_at", "2018-06-08 21:59:38.145651"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.149197"], ["updated_at", "2018-06-08 21:59:38.149197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:59:38.158084"], ["updated_at", "2018-06-08 21:59:38.158084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 21:59:38.167061"], ["updated_at", "2018-06-08 21:59:38.167061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 21:59:38.179694"], ["updated_at", "2018-06-08 21:59:38.179694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 21:59:38.182380"], ["updated_at", "2018-06-08 21:59:38.182380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.190847"], ["updated_at", "2018-06-08 21:59:38.190847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.192105"], ["updated_at", "2018-06-08 21:59:38.192105"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.196055"], ["updated_at", "2018-06-08 21:59:38.196055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.197143"], ["updated_at", "2018-06-08 21:59:38.197143"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.199966"], ["updated_at", "2018-06-08 21:59:38.199966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.205152"], ["updated_at", "2018-06-08 21:59:38.205152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.206160"], ["updated_at", "2018-06-08 21:59:38.206160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.207121"], ["updated_at", "2018-06-08 21:59:38.207121"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.210223"], ["updated_at", "2018-06-08 21:59:38.210223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.217062"], ["updated_at", "2018-06-08 21:59:38.217062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.218030"], ["updated_at", "2018-06-08 21:59:38.218030"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:59:38.220999"], ["updated_at", "2018-06-08 21:59:38.220999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:59:38.221885"], ["updated_at", "2018-06-08 21:59:38.221885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:59:38.224012"], ["updated_at", "2018-06-08 21:59:38.224012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:59:38.225179"], ["updated_at", "2018-06-08 21:59:38.225179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.233421"], ["updated_at", "2018-06-08 21:59:38.233421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.237433"], ["updated_at", "2018-06-08 21:59:38.237433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.239949"], ["updated_at", "2018-06-08 21:59:38.239949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.244192"], ["updated_at", "2018-06-08 21:59:38.244192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.245357"], ["updated_at", "2018-06-08 21:59:38.245357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.246598"], ["updated_at", "2018-06-08 21:59:38.246598"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.249708"], ["updated_at", "2018-06-08 21:59:38.249708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.256405"], ["updated_at", "2018-06-08 21:59:38.256405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.257502"], ["updated_at", "2018-06-08 21:59:38.257502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:59:38.267822"], ["updated_at", "2018-06-08 21:59:38.267822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 21:59:38.268770"], ["updated_at", "2018-06-08 21:59:38.268770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.269640"], ["updated_at", "2018-06-08 21:59:38.269640"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.274707"], ["updated_at", "2018-06-08 21:59:38.274707"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.277980"], ["updated_at", "2018-06-08 21:59:38.277980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.279055"], ["updated_at", "2018-06-08 21:59:38.279055"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.281425"], ["updated_at", "2018-06-08 21:59:38.281425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.284820"], ["updated_at", "2018-06-08 21:59:38.284820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.289330"], ["updated_at", "2018-06-08 21:59:38.289330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.292425"], ["updated_at", "2018-06-08 21:59:38.292425"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.297403"], ["updated_at", "2018-06-08 21:59:38.297403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.298488"], ["updated_at", "2018-06-08 21:59:38.298488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.310843"], ["updated_at", "2018-06-08 21:59:38.310843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.311997"], ["updated_at", "2018-06-08 21:59:38.311997"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.318797"], ["updated_at", "2018-06-08 21:59:38.318797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.324201"], ["updated_at", "2018-06-08 21:59:38.324201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.325072"], ["updated_at", "2018-06-08 21:59:38.325072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.328378"], ["updated_at", "2018-06-08 21:59:38.328378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 21:59:38.338125"], ["updated_at", "2018-06-08 21:59:38.338125"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 21:59:38.340011"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 21:59:38.341204"], ["updated_at", "2018-06-08 21:59:38.341204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 21:59:38.342283"], ["updated_at", "2018-06-08 21:59:38.342283"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.347758"], ["updated_at", "2018-06-08 21:59:38.347758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.354429"], ["updated_at", "2018-06-08 21:59:38.354429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.377063"], ["updated_at", "2018-06-08 21:59:38.377063"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.395231"], ["updated_at", "2018-06-08 21:59:38.395231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.398324"], ["updated_at", "2018-06-08 21:59:38.398324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.401567"], ["updated_at", "2018-06-08 21:59:38.401567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.402513"], ["updated_at", "2018-06-08 21:59:38.402513"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 21:59:38.408686"], ["updated_at", "2018-06-08 21:59:38.408686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.412296"], ["updated_at", "2018-06-08 21:59:38.412296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.417480"], ["updated_at", "2018-06-08 21:59:38.417480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.420270"], ["updated_at", "2018-06-08 21:59:38.420270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.422743"], ["updated_at", "2018-06-08 21:59:38.422743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.427947"], ["updated_at", "2018-06-08 21:59:38.427947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 21:59:38.429194"], ["updated_at", "2018-06-08 21:59:38.429194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.432333"], ["updated_at", "2018-06-08 21:59:38.432333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.433245"], ["updated_at", "2018-06-08 21:59:38.433245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.439143"], ["updated_at", "2018-06-08 21:59:38.439143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.440262"], ["updated_at", "2018-06-08 21:59:38.440262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.448926"], ["updated_at", "2018-06-08 21:59:38.448926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.450074"], ["updated_at", "2018-06-08 21:59:38.450074"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.451958"], ["updated_at", "2018-06-08 21:59:38.451958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 21:59:38.452905"], ["updated_at", "2018-06-08 21:59:38.452905"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 21:59:38.462132"], ["updated_at", "2018-06-08 21:59:38.462132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 21:59:38.463468"], ["updated_at", "2018-06-08 21:59:38.463468"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 21:59:38.465976"], ["updated_at", "2018-06-08 21:59:38.465976"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 21:59:38.467347"], ["updated_at", "2018-06-08 21:59:38.467347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>""} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index -----------------------------------------------------------------------------------------------  (1.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>""} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------- HelperTest: test_permit ----------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show -------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:00:20.443328"], ["updated_at", "2018-06-08 22:00:20.443328"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.467417"], ["updated_at", "2018-06-08 22:00:20.467417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.477247"], ["updated_at", "2018-06-08 22:00:20.477247"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.482831"], ["updated_at", "2018-06-08 22:00:20.482831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.534074"], ["updated_at", "2018-06-08 22:00:20.534074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:00:20.549531"], ["updated_at", "2018-06-08 22:00:20.549531"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:00:20.550753"], ["updated_at", "2018-06-08 22:00:20.550753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.685411"], ["updated_at", "2018-06-08 22:00:20.685411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.686495"], ["updated_at", "2018-06-08 22:00:20.686495"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:00:20.690125"], ["updated_at", "2018-06-08 22:00:20.690125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:00:20.693597"], ["updated_at", "2018-06-08 22:00:20.693597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.704646"], ["updated_at", "2018-06-08 22:00:20.704646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.710443"], ["updated_at", "2018-06-08 22:00:20.710443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.711860"], ["updated_at", "2018-06-08 22:00:20.711860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:00:20.722792"], ["updated_at", "2018-06-08 22:00:20.722792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:00:20.747238"], ["updated_at", "2018-06-08 22:00:20.747238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.750625"], ["updated_at", "2018-06-08 22:00:20.750625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.755484"], ["updated_at", "2018-06-08 22:00:20.755484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.756656"], ["updated_at", "2018-06-08 22:00:20.756656"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.758577"], ["updated_at", "2018-06-08 22:00:20.758577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:00:20.767419"], ["updated_at", "2018-06-08 22:00:20.767419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:00:20.773290"], ["updated_at", "2018-06-08 22:00:20.773290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:00:20.775020"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:00:20.776140"], ["updated_at", "2018-06-08 22:00:20.776140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:00:20.777355"], ["updated_at", "2018-06-08 22:00:20.777355"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.782561"], ["updated_at", "2018-06-08 22:00:20.782561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.786793"], ["updated_at", "2018-06-08 22:00:20.786793"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.790143"], ["updated_at", "2018-06-08 22:00:20.790143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.794148"], ["updated_at", "2018-06-08 22:00:20.794148"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.802065"], ["updated_at", "2018-06-08 22:00:20.802065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.802969"], ["updated_at", "2018-06-08 22:00:20.802969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.805560"], ["updated_at", "2018-06-08 22:00:20.805560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:00:20.809135"], ["updated_at", "2018-06-08 22:00:20.809135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:00:20.810179"], ["updated_at", "2018-06-08 22:00:20.810179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:00:20.812904"], ["updated_at", "2018-06-08 22:00:20.812904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:00:20.813972"], ["updated_at", "2018-06-08 22:00:20.813972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.822818"], ["updated_at", "2018-06-08 22:00:20.822818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.825189"], ["updated_at", "2018-06-08 22:00:20.825189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.830067"], ["updated_at", "2018-06-08 22:00:20.830067"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.831589"], ["updated_at", "2018-06-08 22:00:20.831589"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.834978"], ["updated_at", "2018-06-08 22:00:20.834978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.841376"], ["updated_at", "2018-06-08 22:00:20.841376"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.842659"], ["updated_at", "2018-06-08 22:00:20.842659"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.846144"], ["updated_at", "2018-06-08 22:00:20.846144"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.852766"], ["updated_at", "2018-06-08 22:00:20.852766"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.856304"], ["updated_at", "2018-06-08 22:00:20.856304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.858657"], ["updated_at", "2018-06-08 22:00:20.858657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.863215"], ["updated_at", "2018-06-08 22:00:20.863215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.864729"], ["updated_at", "2018-06-08 22:00:20.864729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.867701"], ["updated_at", "2018-06-08 22:00:20.867701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.872431"], ["updated_at", "2018-06-08 22:00:20.872431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.873501"], ["updated_at", "2018-06-08 22:00:20.873501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.874284"], ["updated_at", "2018-06-08 22:00:20.874284"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.880729"], ["updated_at", "2018-06-08 22:00:20.880729"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.882178"], ["updated_at", "2018-06-08 22:00:20.882178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.890131"], ["updated_at", "2018-06-08 22:00:20.890131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:00:20.897392"], ["updated_at", "2018-06-08 22:00:20.897392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:00:20.898942"], ["updated_at", "2018-06-08 22:00:20.898942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:00:20.901485"], ["updated_at", "2018-06-08 22:00:20.901485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:00:20.902552"], ["updated_at", "2018-06-08 22:00:20.902552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.907125"], ["updated_at", "2018-06-08 22:00:20.907125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.908013"], ["updated_at", "2018-06-08 22:00:20.908013"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.908943"], ["updated_at", "2018-06-08 22:00:20.908943"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.920251"], ["updated_at", "2018-06-08 22:00:20.920251"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.921701"], ["updated_at", "2018-06-08 22:00:20.921701"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.925305"], ["updated_at", "2018-06-08 22:00:20.925305"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.926802"], ["updated_at", "2018-06-08 22:00:20.926802"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.941751"], ["updated_at", "2018-06-08 22:00:20.941751"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:00:20.947614"], ["updated_at", "2018-06-08 22:00:20.947614"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:00:20.948930"], ["updated_at", "2018-06-08 22:00:20.948930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.949873"], ["updated_at", "2018-06-08 22:00:20.949873"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.952706"], ["updated_at", "2018-06-08 22:00:20.952706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.961015"], ["updated_at", "2018-06-08 22:00:20.961015"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.986296"], ["updated_at", "2018-06-08 22:00:20.986296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.987356"], ["updated_at", "2018-06-08 22:00:20.987356"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:20.995668"], ["updated_at", "2018-06-08 22:00:20.995668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:00:20.996957"], ["updated_at", "2018-06-08 22:00:20.996957"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:21.000190"], ["updated_at", "2018-06-08 22:00:21.000190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:21.001722"], ["updated_at", "2018-06-08 22:00:21.001722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:21.017077"], ["updated_at", "2018-06-08 22:00:21.017077"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:21.020614"], ["updated_at", "2018-06-08 22:00:21.020614"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:21.034443"], ["updated_at", "2018-06-08 22:00:21.034443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:21.045224"], ["updated_at", "2018-06-08 22:00:21.045224"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:21.046918"], ["updated_at", "2018-06-08 22:00:21.046918"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:21.051327"], ["updated_at", "2018-06-08 22:00:21.051327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:00:21.052524"], ["updated_at", "2018-06-08 22:00:21.052524"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------  (1.8ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.3ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.3ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.3ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom --------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:01:21.709633"], ["updated_at", "2018-06-08 22:01:21.709633"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.754927"], ["updated_at", "2018-06-08 22:01:21.754927"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.765082"], ["updated_at", "2018-06-08 22:01:21.765082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.768441"], ["updated_at", "2018-06-08 22:01:21.768441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.778463"], ["updated_at", "2018-06-08 22:01:21.778463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.789231"], ["updated_at", "2018-06-08 22:01:21.789231"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.798079"], ["updated_at", "2018-06-08 22:01:21.798079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.799321"], ["updated_at", "2018-06-08 22:01:21.799321"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.801596"], ["updated_at", "2018-06-08 22:01:21.801596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.809259"], ["updated_at", "2018-06-08 22:01:21.809259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:01:21.810635"], ["updated_at", "2018-06-08 22:01:21.810635"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:01:21.813956"], ["updated_at", "2018-06-08 22:01:21.813956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:01:21.815362"], ["updated_at", "2018-06-08 22:01:21.815362"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:01:21.817790"], ["updated_at", "2018-06-08 22:01:21.817790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:01:21.818765"], ["updated_at", "2018-06-08 22:01:21.818765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.835455"], ["updated_at", "2018-06-08 22:01:21.835455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.859791"], ["updated_at", "2018-06-08 22:01:21.859791"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.861078"], ["updated_at", "2018-06-08 22:01:21.861078"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.864734"], ["updated_at", "2018-06-08 22:01:21.864734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.873427"], ["updated_at", "2018-06-08 22:01:21.873427"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.882006"], ["updated_at", "2018-06-08 22:01:21.882006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.883239"], ["updated_at", "2018-06-08 22:01:21.883239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.897615"], ["updated_at", "2018-06-08 22:01:21.897615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.898636"], ["updated_at", "2018-06-08 22:01:21.898636"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.901273"], ["updated_at", "2018-06-08 22:01:21.901273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.902414"], ["updated_at", "2018-06-08 22:01:21.902414"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.905988"], ["updated_at", "2018-06-08 22:01:21.905988"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.907881"], ["updated_at", "2018-06-08 22:01:21.907881"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:01:21.911644"], ["updated_at", "2018-06-08 22:01:21.911644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:01:21.912461"], ["updated_at", "2018-06-08 22:01:21.912461"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.913958"], ["updated_at", "2018-06-08 22:01:21.913958"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.917106"], ["updated_at", "2018-06-08 22:01:21.917106"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.924032"], ["updated_at", "2018-06-08 22:01:21.924032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.925864"], ["updated_at", "2018-06-08 22:01:21.925864"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:01:21.933295"], ["updated_at", "2018-06-08 22:01:21.933295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.938456"], ["updated_at", "2018-06-08 22:01:21.938456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.942767"], ["updated_at", "2018-06-08 22:01:21.942767"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:01:21.948038"], ["updated_at", "2018-06-08 22:01:21.948038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:01:21.949223"], ["updated_at", "2018-06-08 22:01:21.949223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:01:21.951314"], ["updated_at", "2018-06-08 22:01:21.951314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:01:21.952271"], ["updated_at", "2018-06-08 22:01:21.952271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.956980"], ["updated_at", "2018-06-08 22:01:21.956980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.960776"], ["updated_at", "2018-06-08 22:01:21.960776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.963539"], ["updated_at", "2018-06-08 22:01:21.963539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.968235"], ["updated_at", "2018-06-08 22:01:21.968235"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.969540"], ["updated_at", "2018-06-08 22:01:21.969540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.980594"], ["updated_at", "2018-06-08 22:01:21.980594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.981873"], ["updated_at", "2018-06-08 22:01:21.981873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.995328"], ["updated_at", "2018-06-08 22:01:21.995328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:21.996457"], ["updated_at", "2018-06-08 22:01:21.996457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.012064"], ["updated_at", "2018-06-08 22:01:22.012064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:01:22.018494"], ["updated_at", "2018-06-08 22:01:22.018494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:01:22.021423"], ["updated_at", "2018-06-08 22:01:22.021423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.047280"], ["updated_at", "2018-06-08 22:01:22.047280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.048323"], ["updated_at", "2018-06-08 22:01:22.048323"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.050832"], ["updated_at", "2018-06-08 22:01:22.050832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.051722"], ["updated_at", "2018-06-08 22:01:22.051722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:01:22.059496"], ["updated_at", "2018-06-08 22:01:22.059496"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.062947"], ["updated_at", "2018-06-08 22:01:22.062947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.068002"], ["updated_at", "2018-06-08 22:01:22.068002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.069197"], ["updated_at", "2018-06-08 22:01:22.069197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.070046"], ["updated_at", "2018-06-08 22:01:22.070046"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.073613"], ["updated_at", "2018-06-08 22:01:22.073613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.081027"], ["updated_at", "2018-06-08 22:01:22.081027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.083797"], ["updated_at", "2018-06-08 22:01:22.083797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.087142"], ["updated_at", "2018-06-08 22:01:22.087142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:01:22.096071"], ["updated_at", "2018-06-08 22:01:22.096071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:01:22.097653"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:01:22.099383"], ["updated_at", "2018-06-08 22:01:22.099383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:01:22.100297"], ["updated_at", "2018-06-08 22:01:22.100297"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.104352"], ["updated_at", "2018-06-08 22:01:22.104352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.106182"], ["updated_at", "2018-06-08 22:01:22.106182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.109899"], ["updated_at", "2018-06-08 22:01:22.109899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.114098"], ["updated_at", "2018-06-08 22:01:22.114098"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.115183"], ["updated_at", "2018-06-08 22:01:22.115183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.117377"], ["updated_at", "2018-06-08 22:01:22.117377"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.120761"], ["updated_at", "2018-06-08 22:01:22.120761"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.121839"], ["updated_at", "2018-06-08 22:01:22.121839"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.123142"], ["updated_at", "2018-06-08 22:01:22.123142"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:01:22.169345"], ["updated_at", "2018-06-08 22:01:22.169345"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.195788"], ["updated_at", "2018-06-08 22:01:22.195788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.202778"], ["updated_at", "2018-06-08 22:01:22.202778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.206857"], ["updated_at", "2018-06-08 22:01:22.206857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:01:22.276685"], ["updated_at", "2018-06-08 22:01:22.276685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:01:22.277712"], ["updated_at", "2018-06-08 22:01:22.277712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:22.319178"], ["updated_at", "2018-06-08 22:01:22.319178"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller -----------------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:01:40.824818"], ["updated_at", "2018-06-08 22:01:40.824818"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:01:40.850868"], ["updated_at", "2018-06-08 22:01:40.850868"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:01:40.852594"], ["updated_at", "2018-06-08 22:01:40.852594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:40.921906"], ["updated_at", "2018-06-08 22:01:40.921906"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:40.928823"], ["updated_at", "2018-06-08 22:01:40.928823"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:40.934311"], ["updated_at", "2018-06-08 22:01:40.934311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:40.941785"], ["updated_at", "2018-06-08 22:01:40.941785"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.017096"], ["updated_at", "2018-06-08 22:01:41.017096"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.018737"], ["updated_at", "2018-06-08 22:01:41.018737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.019872"], ["updated_at", "2018-06-08 22:01:41.019872"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.023462"], ["updated_at", "2018-06-08 22:01:41.023462"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.025762"], ["updated_at", "2018-06-08 22:01:41.025762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:01:41.038761"], ["updated_at", "2018-06-08 22:01:41.038761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:01:41.041236"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:01:41.042402"], ["updated_at", "2018-06-08 22:01:41.042402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:01:41.043291"], ["updated_at", "2018-06-08 22:01:41.043291"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:01:41.064267"], ["updated_at", "2018-06-08 22:01:41.064267"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.077650"], ["updated_at", "2018-06-08 22:01:41.077650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.078666"], ["updated_at", "2018-06-08 22:01:41.078666"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.083360"], ["updated_at", "2018-06-08 22:01:41.083360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.084621"], ["updated_at", "2018-06-08 22:01:41.084621"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:01:41.086956"], ["updated_at", "2018-06-08 22:01:41.086956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:01:41.087845"], ["updated_at", "2018-06-08 22:01:41.087845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:01:41.090095"], ["updated_at", "2018-06-08 22:01:41.090095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:01:41.090966"], ["updated_at", "2018-06-08 22:01:41.090966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.094387"], ["updated_at", "2018-06-08 22:01:41.094387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.096882"], ["updated_at", "2018-06-08 22:01:41.096882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.100535"], ["updated_at", "2018-06-08 22:01:41.100535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.104489"], ["updated_at", "2018-06-08 22:01:41.104489"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:01:41.105404"], ["updated_at", "2018-06-08 22:01:41.105404"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.108011"], ["updated_at", "2018-06-08 22:01:41.108011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.113440"], ["updated_at", "2018-06-08 22:01:41.113440"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.122130"], ["updated_at", "2018-06-08 22:01:41.122130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.127806"], ["updated_at", "2018-06-08 22:01:41.127806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.130563"], ["updated_at", "2018-06-08 22:01:41.130563"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.139887"], ["updated_at", "2018-06-08 22:01:41.139887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.140900"], ["updated_at", "2018-06-08 22:01:41.140900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.155110"], ["updated_at", "2018-06-08 22:01:41.155110"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.156501"], ["updated_at", "2018-06-08 22:01:41.156501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.159086"], ["updated_at", "2018-06-08 22:01:41.159086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.163472"], ["updated_at", "2018-06-08 22:01:41.163472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.171054"], ["updated_at", "2018-06-08 22:01:41.171054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.173668"], ["updated_at", "2018-06-08 22:01:41.173668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.177367"], ["updated_at", "2018-06-08 22:01:41.177367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.178404"], ["updated_at", "2018-06-08 22:01:41.178404"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.179663"], ["updated_at", "2018-06-08 22:01:41.179663"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:01:41.185259"], ["updated_at", "2018-06-08 22:01:41.185259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:01:41.186449"], ["updated_at", "2018-06-08 22:01:41.186449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.187536"], ["updated_at", "2018-06-08 22:01:41.187536"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.189504"], ["updated_at", "2018-06-08 22:01:41.189504"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.190424"], ["updated_at", "2018-06-08 22:01:41.190424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.228589"], ["updated_at", "2018-06-08 22:01:41.228589"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.230392"], ["updated_at", "2018-06-08 22:01:41.230392"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.233820"], ["updated_at", "2018-06-08 22:01:41.233820"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:01:41.239724"], ["updated_at", "2018-06-08 22:01:41.239724"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:01:41.244339"], ["updated_at", "2018-06-08 22:01:41.244339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.258551"], ["updated_at", "2018-06-08 22:01:41.258551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.259644"], ["updated_at", "2018-06-08 22:01:41.259644"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.262560"], ["updated_at", "2018-06-08 22:01:41.262560"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.274736"], ["updated_at", "2018-06-08 22:01:41.274736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.277179"], ["updated_at", "2018-06-08 22:01:41.277179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.286273"], ["updated_at", "2018-06-08 22:01:41.286273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.287281"], ["updated_at", "2018-06-08 22:01:41.287281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.292674"], ["updated_at", "2018-06-08 22:01:41.292674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.293628"], ["updated_at", "2018-06-08 22:01:41.293628"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.296663"], ["updated_at", "2018-06-08 22:01:41.296663"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.298682"], ["updated_at", "2018-06-08 22:01:41.298682"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:01:41.306544"], ["updated_at", "2018-06-08 22:01:41.306544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:01:41.307673"], ["updated_at", "2018-06-08 22:01:41.307673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:01:41.309719"], ["updated_at", "2018-06-08 22:01:41.309719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:01:41.310710"], ["updated_at", "2018-06-08 22:01:41.310710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:01:41.321853"], ["updated_at", "2018-06-08 22:01:41.321853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.324288"], ["updated_at", "2018-06-08 22:01:41.324288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.328689"], ["updated_at", "2018-06-08 22:01:41.328689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.329530"], ["updated_at", "2018-06-08 22:01:41.329530"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.332864"], ["updated_at", "2018-06-08 22:01:41.332864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.337645"], ["updated_at", "2018-06-08 22:01:41.337645"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.338806"], ["updated_at", "2018-06-08 22:01:41.338806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.347407"], ["updated_at", "2018-06-08 22:01:41.347407"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.348875"], ["updated_at", "2018-06-08 22:01:41.348875"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.353194"], ["updated_at", "2018-06-08 22:01:41.353194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.360217"], ["updated_at", "2018-06-08 22:01:41.360217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.370250"], ["updated_at", "2018-06-08 22:01:41.370250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:01:41.380329"], ["updated_at", "2018-06-08 22:01:41.380329"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.387478"], ["updated_at", "2018-06-08 22:01:41.387478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:41.388622"], ["updated_at", "2018-06-08 22:01:41.388622"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller -----------------------------------------------------------------  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.637683"], ["updated_at", "2018-06-08 22:01:57.637683"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:01:57.674767"], ["updated_at", "2018-06-08 22:01:57.674767"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:01:57.688115"], ["updated_at", "2018-06-08 22:01:57.688115"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:01:57.689405"], ["updated_at", "2018-06-08 22:01:57.689405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.723709"], ["updated_at", "2018-06-08 22:01:57.723709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.730189"], ["updated_at", "2018-06-08 22:01:57.730189"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.735375"], ["updated_at", "2018-06-08 22:01:57.735375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>""} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.753265"], ["updated_at", "2018-06-08 22:01:57.753265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.754607"], ["updated_at", "2018-06-08 22:01:57.754607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.755688"], ["updated_at", "2018-06-08 22:01:57.755688"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.759340"], ["updated_at", "2018-06-08 22:01:57.759340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.760621"], ["updated_at", "2018-06-08 22:01:57.760621"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.763912"], ["updated_at", "2018-06-08 22:01:57.763912"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.774994"], ["updated_at", "2018-06-08 22:01:57.774994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.775979"], ["updated_at", "2018-06-08 22:01:57.775979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:01:57.791948"], ["updated_at", "2018-06-08 22:01:57.791948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.807736"], ["updated_at", "2018-06-08 22:01:57.807736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.808992"], ["updated_at", "2018-06-08 22:01:57.808992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.812170"], ["updated_at", "2018-06-08 22:01:57.812170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:01:57.817838"], ["updated_at", "2018-06-08 22:01:57.817838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:01:57.820630"], ["updated_at", "2018-06-08 22:01:57.820630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.833848"], ["updated_at", "2018-06-08 22:01:57.833848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.842977"], ["updated_at", "2018-06-08 22:01:57.842977"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.850027"], ["updated_at", "2018-06-08 22:01:57.850027"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.851151"], ["updated_at", "2018-06-08 22:01:57.851151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.866157"], ["updated_at", "2018-06-08 22:01:57.866157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.867182"], ["updated_at", "2018-06-08 22:01:57.867182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.868041"], ["updated_at", "2018-06-08 22:01:57.868041"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.871672"], ["updated_at", "2018-06-08 22:01:57.871672"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:01:57.878383"], ["updated_at", "2018-06-08 22:01:57.878383"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:01:57.879820"], ["updated_at", "2018-06-08 22:01:57.879820"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.881622"], ["updated_at", "2018-06-08 22:01:57.881622"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.884430"], ["updated_at", "2018-06-08 22:01:57.884430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.885353"], ["updated_at", "2018-06-08 22:01:57.885353"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.887664"], ["updated_at", "2018-06-08 22:01:57.887664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.895604"], ["updated_at", "2018-06-08 22:01:57.895604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.897272"], ["updated_at", "2018-06-08 22:01:57.897272"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.902016"], ["updated_at", "2018-06-08 22:01:57.902016"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.903528"], ["updated_at", "2018-06-08 22:01:57.903528"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.909626"], ["updated_at", "2018-06-08 22:01:57.909626"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.930380"], ["updated_at", "2018-06-08 22:01:57.930380"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.936700"], ["updated_at", "2018-06-08 22:01:57.936700"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.938870"], ["updated_at", "2018-06-08 22:01:57.938870"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.943444"], ["updated_at", "2018-06-08 22:01:57.943444"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.948294"], ["updated_at", "2018-06-08 22:01:57.948294"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.954264"], ["updated_at", "2018-06-08 22:01:57.954264"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.958645"], ["updated_at", "2018-06-08 22:01:57.958645"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.965905"], ["updated_at", "2018-06-08 22:01:57.965905"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.975301"], ["updated_at", "2018-06-08 22:01:57.975301"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.984645"], ["updated_at", "2018-06-08 22:01:57.984645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.985747"], ["updated_at", "2018-06-08 22:01:57.985747"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.996028"], ["updated_at", "2018-06-08 22:01:57.996028"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:57.999978"], ["updated_at", "2018-06-08 22:01:57.999978"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.004837"], ["updated_at", "2018-06-08 22:01:58.004837"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:01:58.010973"], ["updated_at", "2018-06-08 22:01:58.010973"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:01:58.012772"], ["updated_at", "2018-06-08 22:01:58.012772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:01:58.016212"], ["updated_at", "2018-06-08 22:01:58.016212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:01:58.017490"], ["updated_at", "2018-06-08 22:01:58.017490"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.026510"], ["updated_at", "2018-06-08 22:01:58.026510"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.028047"], ["updated_at", "2018-06-08 22:01:58.028047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:01:58.046987"], ["updated_at", "2018-06-08 22:01:58.046987"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.052616"], ["updated_at", "2018-06-08 22:01:58.052616"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.061993"], ["updated_at", "2018-06-08 22:01:58.061993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.070941"], ["updated_at", "2018-06-08 22:01:58.070941"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:01:58.072818"], ["updated_at", "2018-06-08 22:01:58.072818"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.077545"], ["updated_at", "2018-06-08 22:01:58.077545"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.079110"], ["updated_at", "2018-06-08 22:01:58.079110"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.082743"], ["updated_at", "2018-06-08 22:01:58.082743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.083880"], ["updated_at", "2018-06-08 22:01:58.083880"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:01:58.087626"], ["updated_at", "2018-06-08 22:01:58.087626"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:01:58.089914"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:01:58.091727"], ["updated_at", "2018-06-08 22:01:58.091727"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:01:58.093182"], ["updated_at", "2018-06-08 22:01:58.093182"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.118667"], ["updated_at", "2018-06-08 22:01:58.118667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.127313"], ["updated_at", "2018-06-08 22:01:58.127313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.134694"], ["updated_at", "2018-06-08 22:01:58.134694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.137014"], ["updated_at", "2018-06-08 22:01:58.137014"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:01:58.141474"], ["updated_at", "2018-06-08 22:01:58.141474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.144000"], ["updated_at", "2018-06-08 22:01:58.144000"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.152139"], ["updated_at", "2018-06-08 22:01:58.152139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.152976"], ["updated_at", "2018-06-08 22:01:58.152976"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:01:58.156094"], ["updated_at", "2018-06-08 22:01:58.156094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:01:58.157418"], ["updated_at", "2018-06-08 22:01:58.157418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:01:58.159529"], ["updated_at", "2018-06-08 22:01:58.159529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:01:58.160437"], ["updated_at", "2018-06-08 22:01:58.160437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:01:58.168260"], ["updated_at", "2018-06-08 22:01:58.168260"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user -----------------------------------------  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.550095"], ["updated_at", "2018-06-08 22:02:09.550095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.558467"], ["updated_at", "2018-06-08 22:02:09.558467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.561463"], ["updated_at", "2018-06-08 22:02:09.561463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:02:09.600099"], ["updated_at", "2018-06-08 22:02:09.600099"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.631646"], ["updated_at", "2018-06-08 22:02:09.631646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:02:09.642252"], ["updated_at", "2018-06-08 22:02:09.642252"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:02:09.644341"], ["updated_at", "2018-06-08 22:02:09.644341"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.692406"], ["updated_at", "2018-06-08 22:02:09.692406"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.694736"], ["updated_at", "2018-06-08 22:02:09.694736"]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.696810"], ["updated_at", "2018-06-08 22:02:09.696810"]]  (0.3ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.701488"], ["updated_at", "2018-06-08 22:02:09.701488"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:02:09.726703"], ["updated_at", "2018-06-08 22:02:09.726703"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.730600"], ["updated_at", "2018-06-08 22:02:09.730600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.744818"], ["updated_at", "2018-06-08 22:02:09.744818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.745803"], ["updated_at", "2018-06-08 22:02:09.745803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.754255"], ["updated_at", "2018-06-08 22:02:09.754255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:02:09.766535"], ["updated_at", "2018-06-08 22:02:09.766535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.774905"], ["updated_at", "2018-06-08 22:02:09.774905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.776564"], ["updated_at", "2018-06-08 22:02:09.776564"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.779576"], ["updated_at", "2018-06-08 22:02:09.779576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.784194"], ["updated_at", "2018-06-08 22:02:09.784194"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.785495"], ["updated_at", "2018-06-08 22:02:09.785495"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.793932"], ["updated_at", "2018-06-08 22:02:09.793932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.797266"], ["updated_at", "2018-06-08 22:02:09.797266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.805390"], ["updated_at", "2018-06-08 22:02:09.805390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.812055"], ["updated_at", "2018-06-08 22:02:09.812055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.812999"], ["updated_at", "2018-06-08 22:02:09.812999"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.816513"], ["updated_at", "2018-06-08 22:02:09.816513"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.823451"], ["updated_at", "2018-06-08 22:02:09.823451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.831530"], ["updated_at", "2018-06-08 22:02:09.831530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:02:09.838431"], ["updated_at", "2018-06-08 22:02:09.838431"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:02:09.840032"], ["updated_at", "2018-06-08 22:02:09.840032"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:02:09.842056"], ["updated_at", "2018-06-08 22:02:09.842056"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:02:09.843743"], ["updated_at", "2018-06-08 22:02:09.843743"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:02:09.861588"], ["updated_at", "2018-06-08 22:02:09.861588"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.875499"], ["updated_at", "2018-06-08 22:02:09.875499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.878596"], ["updated_at", "2018-06-08 22:02:09.878596"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.883660"], ["updated_at", "2018-06-08 22:02:09.883660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.885303"], ["updated_at", "2018-06-08 22:02:09.885303"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.906256"], ["updated_at", "2018-06-08 22:02:09.906256"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.908069"], ["updated_at", "2018-06-08 22:02:09.908069"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.912839"], ["updated_at", "2018-06-08 22:02:09.912839"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.915730"], ["updated_at", "2018-06-08 22:02:09.915730"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:02:09.921079"], ["updated_at", "2018-06-08 22:02:09.921079"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:02:09.925532"], ["updated_at", "2018-06-08 22:02:09.925532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.942906"], ["updated_at", "2018-06-08 22:02:09.942906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.951491"], ["updated_at", "2018-06-08 22:02:09.951491"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.952920"], ["updated_at", "2018-06-08 22:02:09.952920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.954063"], ["updated_at", "2018-06-08 22:02:09.954063"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.957386"], ["updated_at", "2018-06-08 22:02:09.957386"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.958478"], ["updated_at", "2018-06-08 22:02:09.958478"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.971358"], ["updated_at", "2018-06-08 22:02:09.971358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.972427"], ["updated_at", "2018-06-08 22:02:09.972427"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:02:09.974825"], ["updated_at", "2018-06-08 22:02:09.974825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:02:09.976544"], ["updated_at", "2018-06-08 22:02:09.976544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.978127"], ["updated_at", "2018-06-08 22:02:09.978127"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.981292"], ["updated_at", "2018-06-08 22:02:09.981292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.982411"], ["updated_at", "2018-06-08 22:02:09.982411"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:02:09.986756"], ["updated_at", "2018-06-08 22:02:09.986756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:02:09.988054"], ["updated_at", "2018-06-08 22:02:09.988054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:02:09.990469"], ["updated_at", "2018-06-08 22:02:09.990469"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:02:09.992232"], ["updated_at", "2018-06-08 22:02:09.992232"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:09.998503"], ["updated_at", "2018-06-08 22:02:09.998503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.006603"], ["updated_at", "2018-06-08 22:02:10.006603"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.014772"], ["updated_at", "2018-06-08 22:02:10.014772"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.016072"], ["updated_at", "2018-06-08 22:02:10.016072"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:02:10.019784"], ["updated_at", "2018-06-08 22:02:10.019784"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:02:10.022511"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:02:10.023995"], ["updated_at", "2018-06-08 22:02:10.023995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:02:10.025125"], ["updated_at", "2018-06-08 22:02:10.025125"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.033659"], ["updated_at", "2018-06-08 22:02:10.033659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.034507"], ["updated_at", "2018-06-08 22:02:10.034507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.052988"], ["updated_at", "2018-06-08 22:02:10.052988"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.058434"], ["updated_at", "2018-06-08 22:02:10.058434"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.059955"], ["updated_at", "2018-06-08 22:02:10.059955"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.062795"], ["updated_at", "2018-06-08 22:02:10.062795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.063927"], ["updated_at", "2018-06-08 22:02:10.063927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.067027"], ["updated_at", "2018-06-08 22:02:10.067027"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.071769"], ["updated_at", "2018-06-08 22:02:10.071769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:02:10.072837"], ["updated_at", "2018-06-08 22:02:10.072837"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.076415"], ["updated_at", "2018-06-08 22:02:10.076415"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.080276"], ["updated_at", "2018-06-08 22:02:10.080276"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.084516"], ["updated_at", "2018-06-08 22:02:10.084516"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.087090"], ["updated_at", "2018-06-08 22:02:10.087090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.090078"], ["updated_at", "2018-06-08 22:02:10.090078"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:10.099847"], ["updated_at", "2018-06-08 22:02:10.099847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>""} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search ---------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.567837"], ["updated_at", "2018-06-08 22:02:49.567837"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.603515"], ["updated_at", "2018-06-08 22:02:49.603515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.615586"], ["updated_at", "2018-06-08 22:02:49.615586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.616846"], ["updated_at", "2018-06-08 22:02:49.616846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.619722"], ["updated_at", "2018-06-08 22:02:49.619722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:02:49.638042"], ["updated_at", "2018-06-08 22:02:49.638042"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:02:49.639187"], ["updated_at", "2018-06-08 22:02:49.639187"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:02:49.641615"], ["updated_at", "2018-06-08 22:02:49.641615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:02:49.642900"], ["updated_at", "2018-06-08 22:02:49.642900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.655753"], ["updated_at", "2018-06-08 22:02:49.655753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.656947"], ["updated_at", "2018-06-08 22:02:49.656947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.663902"], ["updated_at", "2018-06-08 22:02:49.663902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.665179"], ["updated_at", "2018-06-08 22:02:49.665179"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.667357"], ["updated_at", "2018-06-08 22:02:49.667357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.668230"], ["updated_at", "2018-06-08 22:02:49.668230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.681503"], ["updated_at", "2018-06-08 22:02:49.681503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.682594"], ["updated_at", "2018-06-08 22:02:49.682594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.688166"], ["updated_at", "2018-06-08 22:02:49.688166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:02:49.695740"], ["updated_at", "2018-06-08 22:02:49.695740"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:02:49.697249"], ["updated_at", "2018-06-08 22:02:49.697249"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.698598"], ["updated_at", "2018-06-08 22:02:49.698598"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.700817"], ["updated_at", "2018-06-08 22:02:49.700817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.701651"], ["updated_at", "2018-06-08 22:02:49.701651"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.703604"], ["updated_at", "2018-06-08 22:02:49.703604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.704619"], ["updated_at", "2018-06-08 22:02:49.704619"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.707346"], ["updated_at", "2018-06-08 22:02:49.707346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.708209"], ["updated_at", "2018-06-08 22:02:49.708209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.711635"], ["updated_at", "2018-06-08 22:02:49.711635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.716655"], ["updated_at", "2018-06-08 22:02:49.716655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:02:49.717895"], ["updated_at", "2018-06-08 22:02:49.717895"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.721451"], ["updated_at", "2018-06-08 22:02:49.721451"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.723768"], ["updated_at", "2018-06-08 22:02:49.723768"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.729729"], ["updated_at", "2018-06-08 22:02:49.729729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.733540"], ["updated_at", "2018-06-08 22:02:49.733540"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.736283"], ["updated_at", "2018-06-08 22:02:49.736283"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.761602"], ["updated_at", "2018-06-08 22:02:49.761602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:02:49.776843"], ["updated_at", "2018-06-08 22:02:49.776843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:02:49.778338"], ["updated_at", "2018-06-08 22:02:49.778338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:02:49.781588"], ["updated_at", "2018-06-08 22:02:49.781588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:02:49.782979"], ["updated_at", "2018-06-08 22:02:49.782979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.787168"], ["updated_at", "2018-06-08 22:02:49.787168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.788202"], ["updated_at", "2018-06-08 22:02:49.788202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.789117"], ["updated_at", "2018-06-08 22:02:49.789117"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.792627"], ["updated_at", "2018-06-08 22:02:49.792627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.793783"], ["updated_at", "2018-06-08 22:02:49.793783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.804886"], ["updated_at", "2018-06-08 22:02:49.804886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.806013"], ["updated_at", "2018-06-08 22:02:49.806013"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.810853"], ["updated_at", "2018-06-08 22:02:49.810853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.821599"], ["updated_at", "2018-06-08 22:02:49.821599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.831773"], ["updated_at", "2018-06-08 22:02:49.831773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.833015"], ["updated_at", "2018-06-08 22:02:49.833015"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:02:49.839485"], ["updated_at", "2018-06-08 22:02:49.839485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.853854"], ["updated_at", "2018-06-08 22:02:49.853854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.861668"], ["updated_at", "2018-06-08 22:02:49.861668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.865622"], ["updated_at", "2018-06-08 22:02:49.865622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.869787"], ["updated_at", "2018-06-08 22:02:49.869787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.874609"], ["updated_at", "2018-06-08 22:02:49.874609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.882977"], ["updated_at", "2018-06-08 22:02:49.882977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:02:49.923154"], ["updated_at", "2018-06-08 22:02:49.923154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:02:49.939718"], ["updated_at", "2018-06-08 22:02:49.939718"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:02:49.941371"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:02:49.943314"], ["updated_at", "2018-06-08 22:02:49.943314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:02:49.944621"], ["updated_at", "2018-06-08 22:02:49.944621"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:02:49.950522"], ["updated_at", "2018-06-08 22:02:49.950522"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.953679"], ["updated_at", "2018-06-08 22:02:49.953679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.958651"], ["updated_at", "2018-06-08 22:02:49.958651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.964391"], ["updated_at", "2018-06-08 22:02:49.964391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.965312"], ["updated_at", "2018-06-08 22:02:49.965312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.977532"], ["updated_at", "2018-06-08 22:02:49.977532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.978907"], ["updated_at", "2018-06-08 22:02:49.978907"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.980337"], ["updated_at", "2018-06-08 22:02:49.980337"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.983317"], ["updated_at", "2018-06-08 22:02:49.983317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:49.984232"], ["updated_at", "2018-06-08 22:02:49.984232"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:02:49.986284"], ["updated_at", "2018-06-08 22:02:49.986284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:02:49.988775"], ["updated_at", "2018-06-08 22:02:49.988775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:50.001876"], ["updated_at", "2018-06-08 22:02:50.001876"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:50.008212"], ["updated_at", "2018-06-08 22:02:50.008212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:50.009221"], ["updated_at", "2018-06-08 22:02:50.009221"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:50.012379"], ["updated_at", "2018-06-08 22:02:50.012379"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index -----------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:02:50.075833"], ["updated_at", "2018-06-08 22:02:50.075833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:02:50.077139"], ["updated_at", "2018-06-08 22:02:50.077139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:50.092359"], ["updated_at", "2018-06-08 22:02:50.092359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:50.125567"], ["updated_at", "2018-06-08 22:02:50.125567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:50.131864"], ["updated_at", "2018-06-08 22:02:50.131864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:02:50.134803"], ["updated_at", "2018-06-08 22:02:50.134803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:02:50.141505"], ["updated_at", "2018-06-08 22:02:50.141505"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params -----------------------------------------------------------------  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:03:13.178179"], ["updated_at", "2018-06-08 22:03:13.178179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:03:13.186473"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:03:13.188334"], ["updated_at", "2018-06-08 22:03:13.188334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:03:13.189167"], ["updated_at", "2018-06-08 22:03:13.189167"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.204152"], ["updated_at", "2018-06-08 22:03:13.204152"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.205886"], ["updated_at", "2018-06-08 22:03:13.205886"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.210531"], ["updated_at", "2018-06-08 22:03:13.210531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.225082"], ["updated_at", "2018-06-08 22:03:13.225082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.226401"], ["updated_at", "2018-06-08 22:03:13.226401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.232807"], ["updated_at", "2018-06-08 22:03:13.232807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:03:13.255962"], ["updated_at", "2018-06-08 22:03:13.255962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:03:13.273134"], ["updated_at", "2018-06-08 22:03:13.273134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.275692"], ["updated_at", "2018-06-08 22:03:13.275692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.279948"], ["updated_at", "2018-06-08 22:03:13.279948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.280799"], ["updated_at", "2018-06-08 22:03:13.280799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.293158"], ["updated_at", "2018-06-08 22:03:13.293158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.294148"], ["updated_at", "2018-06-08 22:03:13.294148"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:03:13.296708"], ["updated_at", "2018-06-08 22:03:13.296708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:03:13.299574"], ["updated_at", "2018-06-08 22:03:13.299574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.312311"], ["updated_at", "2018-06-08 22:03:13.312311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.313779"], ["updated_at", "2018-06-08 22:03:13.313779"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.314780"], ["updated_at", "2018-06-08 22:03:13.314780"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.318205"], ["updated_at", "2018-06-08 22:03:13.318205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.328840"], ["updated_at", "2018-06-08 22:03:13.328840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:03:13.340612"], ["updated_at", "2018-06-08 22:03:13.340612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.345579"], ["updated_at", "2018-06-08 22:03:13.345579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.351357"], ["updated_at", "2018-06-08 22:03:13.351357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.354673"], ["updated_at", "2018-06-08 22:03:13.354673"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.358703"], ["updated_at", "2018-06-08 22:03:13.358703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.363087"], ["updated_at", "2018-06-08 22:03:13.363087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.367352"], ["updated_at", "2018-06-08 22:03:13.367352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.368359"], ["updated_at", "2018-06-08 22:03:13.368359"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.372037"], ["updated_at", "2018-06-08 22:03:13.372037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:03:13.373570"], ["updated_at", "2018-06-08 22:03:13.373570"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.406025"], ["updated_at", "2018-06-08 22:03:13.406025"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.408046"], ["updated_at", "2018-06-08 22:03:13.408046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.418036"], ["updated_at", "2018-06-08 22:03:13.418036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.428680"], ["updated_at", "2018-06-08 22:03:13.428680"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.430218"], ["updated_at", "2018-06-08 22:03:13.430218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.431405"], ["updated_at", "2018-06-08 22:03:13.431405"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.434720"], ["updated_at", "2018-06-08 22:03:13.434720"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.437622"], ["updated_at", "2018-06-08 22:03:13.437622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.441774"], ["updated_at", "2018-06-08 22:03:13.441774"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:03:13.446447"], ["updated_at", "2018-06-08 22:03:13.446447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:03:13.447784"], ["updated_at", "2018-06-08 22:03:13.447784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.448823"], ["updated_at", "2018-06-08 22:03:13.448823"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.451450"], ["updated_at", "2018-06-08 22:03:13.451450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.452363"], ["updated_at", "2018-06-08 22:03:13.452363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.456936"], ["updated_at", "2018-06-08 22:03:13.456936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.461754"], ["updated_at", "2018-06-08 22:03:13.461754"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.462889"], ["updated_at", "2018-06-08 22:03:13.462889"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.470664"], ["updated_at", "2018-06-08 22:03:13.470664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.474104"], ["updated_at", "2018-06-08 22:03:13.474104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.479372"], ["updated_at", "2018-06-08 22:03:13.479372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.480612"], ["updated_at", "2018-06-08 22:03:13.480612"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.483081"], ["updated_at", "2018-06-08 22:03:13.483081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.484058"], ["updated_at", "2018-06-08 22:03:13.484058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:03:13.498298"], ["updated_at", "2018-06-08 22:03:13.498298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:03:13.499303"], ["updated_at", "2018-06-08 22:03:13.499303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:03:13.501284"], ["updated_at", "2018-06-08 22:03:13.501284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:03:13.502165"], ["updated_at", "2018-06-08 22:03:13.502165"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.508392"], ["updated_at", "2018-06-08 22:03:13.508392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.511352"], ["updated_at", "2018-06-08 22:03:13.511352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (7.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.526480"], ["updated_at", "2018-06-08 22:03:13.526480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.527450"], ["updated_at", "2018-06-08 22:03:13.527450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.533173"], ["updated_at", "2018-06-08 22:03:13.533173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.534007"], ["updated_at", "2018-06-08 22:03:13.534007"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.536828"], ["updated_at", "2018-06-08 22:03:13.536828"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.538185"], ["updated_at", "2018-06-08 22:03:13.538185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.541249"], ["updated_at", "2018-06-08 22:03:13.541249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.545058"], ["updated_at", "2018-06-08 22:03:13.545058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.551034"], ["updated_at", "2018-06-08 22:03:13.551034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.551934"], ["updated_at", "2018-06-08 22:03:13.551934"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:03:13.555920"], ["updated_at", "2018-06-08 22:03:13.555920"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:03:13.557584"], ["updated_at", "2018-06-08 22:03:13.557584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:03:13.560047"], ["updated_at", "2018-06-08 22:03:13.560047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:03:13.561003"], ["updated_at", "2018-06-08 22:03:13.561003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.570212"], ["updated_at", "2018-06-08 22:03:13.570212"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.577123"], ["updated_at", "2018-06-08 22:03:13.577123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>""} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller -----------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:03:13.752289"], ["updated_at", "2018-06-08 22:03:13.752289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:03:13.753593"], ["updated_at", "2018-06-08 22:03:13.753593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.785452"], ["updated_at", "2018-06-08 22:03:13.785452"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.804882"], ["updated_at", "2018-06-08 22:03:13.804882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.811280"], ["updated_at", "2018-06-08 22:03:13.811280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:13.814941"], ["updated_at", "2018-06-08 22:03:13.814941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:03:13.834228"], ["updated_at", "2018-06-08 22:03:13.834228"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource -------------------------------------------------------  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:03:42.819599"], ["updated_at", "2018-06-08 22:03:42.819599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:03:42.846289"], ["updated_at", "2018-06-08 22:03:42.846289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.868425"], ["updated_at", "2018-06-08 22:03:42.868425"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.881950"], ["updated_at", "2018-06-08 22:03:42.881950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.893168"], ["updated_at", "2018-06-08 22:03:42.893168"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.894677"], ["updated_at", "2018-06-08 22:03:42.894677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.907497"], ["updated_at", "2018-06-08 22:03:42.907497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.908740"], ["updated_at", "2018-06-08 22:03:42.908740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.929425"], ["updated_at", "2018-06-08 22:03:42.929425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.932003"], ["updated_at", "2018-06-08 22:03:42.932003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.937442"], ["updated_at", "2018-06-08 22:03:42.937442"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:03:42.941270"], ["updated_at", "2018-06-08 22:03:42.941270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:03:42.942482"], ["updated_at", "2018-06-08 22:03:42.942482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.943482"], ["updated_at", "2018-06-08 22:03:42.943482"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.945922"], ["updated_at", "2018-06-08 22:03:42.945922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.952343"], ["updated_at", "2018-06-08 22:03:42.952343"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.953918"], ["updated_at", "2018-06-08 22:03:42.953918"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:03:42.957566"], ["updated_at", "2018-06-08 22:03:42.957566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:03:42.958593"], ["updated_at", "2018-06-08 22:03:42.958593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:03:42.961189"], ["updated_at", "2018-06-08 22:03:42.961189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:03:42.962449"], ["updated_at", "2018-06-08 22:03:42.962449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.974101"], ["updated_at", "2018-06-08 22:03:42.974101"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.975385"], ["updated_at", "2018-06-08 22:03:42.975385"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.978843"], ["updated_at", "2018-06-08 22:03:42.978843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:03:42.979872"], ["updated_at", "2018-06-08 22:03:42.979872"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.982892"], ["updated_at", "2018-06-08 22:03:42.982892"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:42.986786"], ["updated_at", "2018-06-08 22:03:42.986786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.2ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.029530"], ["updated_at", "2018-06-08 22:03:43.029530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.030970"], ["updated_at", "2018-06-08 22:03:43.030970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.034473"], ["updated_at", "2018-06-08 22:03:43.034473"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.040932"], ["updated_at", "2018-06-08 22:03:43.040932"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.042947"], ["updated_at", "2018-06-08 22:03:43.042947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.044451"], ["updated_at", "2018-06-08 22:03:43.044451"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.047631"], ["updated_at", "2018-06-08 22:03:43.047631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.048680"], ["updated_at", "2018-06-08 22:03:43.048680"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.056986"], ["updated_at", "2018-06-08 22:03:43.056986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.059595"], ["updated_at", "2018-06-08 22:03:43.059595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:03:43.068471"], ["updated_at", "2018-06-08 22:03:43.068471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:03:43.072078"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:03:43.074122"], ["updated_at", "2018-06-08 22:03:43.074122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:03:43.075618"], ["updated_at", "2018-06-08 22:03:43.075618"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.080952"], ["updated_at", "2018-06-08 22:03:43.080952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.082157"], ["updated_at", "2018-06-08 22:03:43.082157"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.096978"], ["updated_at", "2018-06-08 22:03:43.096978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.104894"], ["updated_at", "2018-06-08 22:03:43.104894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:03:43.113392"], ["updated_at", "2018-06-08 22:03:43.113392"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.131249"], ["updated_at", "2018-06-08 22:03:43.131249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.132413"], ["updated_at", "2018-06-08 22:03:43.132413"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:03:43.136965"], ["updated_at", "2018-06-08 22:03:43.136965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.140084"], ["updated_at", "2018-06-08 22:03:43.140084"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.145904"], ["updated_at", "2018-06-08 22:03:43.145904"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.153371"], ["updated_at", "2018-06-08 22:03:43.153371"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.155280"], ["updated_at", "2018-06-08 22:03:43.155280"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.156700"], ["updated_at", "2018-06-08 22:03:43.156700"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.160603"], ["updated_at", "2018-06-08 22:03:43.160603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:03:43.169134"], ["updated_at", "2018-06-08 22:03:43.169134"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:03:43.171348"], ["updated_at", "2018-06-08 22:03:43.171348"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:03:43.175266"], ["updated_at", "2018-06-08 22:03:43.175266"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:03:43.177091"], ["updated_at", "2018-06-08 22:03:43.177091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.181636"], ["updated_at", "2018-06-08 22:03:43.181636"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.183000"], ["updated_at", "2018-06-08 22:03:43.183000"]]  (0.3ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.186598"], ["updated_at", "2018-06-08 22:03:43.186598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.190898"], ["updated_at", "2018-06-08 22:03:43.190898"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.194177"], ["updated_at", "2018-06-08 22:03:43.194177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.199333"], ["updated_at", "2018-06-08 22:03:43.199333"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.201118"], ["updated_at", "2018-06-08 22:03:43.201118"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.205226"], ["updated_at", "2018-06-08 22:03:43.205226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.210736"], ["updated_at", "2018-06-08 22:03:43.210736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.211711"], ["updated_at", "2018-06-08 22:03:43.211711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.227145"], ["updated_at", "2018-06-08 22:03:43.227145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.228107"], ["updated_at", "2018-06-08 22:03:43.228107"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.235553"], ["updated_at", "2018-06-08 22:03:43.235553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.236754"], ["updated_at", "2018-06-08 22:03:43.236754"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.240055"], ["updated_at", "2018-06-08 22:03:43.240055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.246278"], ["updated_at", "2018-06-08 22:03:43.246278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.247416"], ["updated_at", "2018-06-08 22:03:43.247416"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:03:43.259801"], ["updated_at", "2018-06-08 22:03:43.259801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.264616"], ["updated_at", "2018-06-08 22:03:43.264616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.284504"], ["updated_at", "2018-06-08 22:03:43.284504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.433546"], ["updated_at", "2018-06-08 22:03:43.433546"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.442815"], ["updated_at", "2018-06-08 22:03:43.442815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.446430"], ["updated_at", "2018-06-08 22:03:43.446430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:03:43.459618"], ["updated_at", "2018-06-08 22:03:43.459618"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:03:43.481451"], ["updated_at", "2018-06-08 22:03:43.481451"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:03:43.492696"], ["updated_at", "2018-06-08 22:03:43.492696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:03:43.493676"], ["updated_at", "2018-06-08 22:03:43.493676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>""} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show ---------------------------------------------------------------------------------------------  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:04:34.648822"], ["updated_at", "2018-06-08 22:04:34.648822"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:04:34.650367"], ["updated_at", "2018-06-08 22:04:34.650367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:04:34.680360"], ["updated_at", "2018-06-08 22:04:34.680360"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.710519"], ["updated_at", "2018-06-08 22:04:34.710519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.721793"], ["updated_at", "2018-06-08 22:04:34.721793"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.729680"], ["updated_at", "2018-06-08 22:04:34.729680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.734532"], ["updated_at", "2018-06-08 22:04:34.734532"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.911567"], ["updated_at", "2018-06-08 22:04:34.911567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.912704"], ["updated_at", "2018-06-08 22:04:34.912704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.924621"], ["updated_at", "2018-06-08 22:04:34.924621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.930227"], ["updated_at", "2018-06-08 22:04:34.930227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.935171"], ["updated_at", "2018-06-08 22:04:34.935171"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:04:34.937715"], ["updated_at", "2018-06-08 22:04:34.937715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:04:34.941310"], ["updated_at", "2018-06-08 22:04:34.941310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:04:34.956197"], ["updated_at", "2018-06-08 22:04:34.956197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:04:34.957237"], ["updated_at", "2018-06-08 22:04:34.957237"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.958101"], ["updated_at", "2018-06-08 22:04:34.958101"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.960129"], ["updated_at", "2018-06-08 22:04:34.960129"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.961000"], ["updated_at", "2018-06-08 22:04:34.961000"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.963527"], ["updated_at", "2018-06-08 22:04:34.963527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.964412"], ["updated_at", "2018-06-08 22:04:34.964412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:04:34.976263"], ["updated_at", "2018-06-08 22:04:34.976263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.994597"], ["updated_at", "2018-06-08 22:04:34.994597"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:34.995861"], ["updated_at", "2018-06-08 22:04:34.995861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.011174"], ["updated_at", "2018-06-08 22:04:35.011174"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.014446"], ["updated_at", "2018-06-08 22:04:35.014446"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.019324"], ["updated_at", "2018-06-08 22:04:35.019324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.020265"], ["updated_at", "2018-06-08 22:04:35.020265"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.023389"], ["updated_at", "2018-06-08 22:04:35.023389"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.024634"], ["updated_at", "2018-06-08 22:04:35.024634"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.037202"], ["updated_at", "2018-06-08 22:04:35.037202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.041013"], ["updated_at", "2018-06-08 22:04:35.041013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.043611"], ["updated_at", "2018-06-08 22:04:35.043611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:04:35.050725"], ["updated_at", "2018-06-08 22:04:35.050725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:04:35.053109"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:04:35.054415"], ["updated_at", "2018-06-08 22:04:35.054415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:04:35.056062"], ["updated_at", "2018-06-08 22:04:35.056062"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.061591"], ["updated_at", "2018-06-08 22:04:35.061591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.064260"], ["updated_at", "2018-06-08 22:04:35.064260"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.068712"], ["updated_at", "2018-06-08 22:04:35.068712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.075230"], ["updated_at", "2018-06-08 22:04:35.075230"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.076319"], ["updated_at", "2018-06-08 22:04:35.076319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.079130"], ["updated_at", "2018-06-08 22:04:35.079130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:04:35.083699"], ["updated_at", "2018-06-08 22:04:35.083699"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:04:35.084977"], ["updated_at", "2018-06-08 22:04:35.084977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:04:35.087062"], ["updated_at", "2018-06-08 22:04:35.087062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:04:35.088038"], ["updated_at", "2018-06-08 22:04:35.088038"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.093200"], ["updated_at", "2018-06-08 22:04:35.093200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:04:35.094172"], ["updated_at", "2018-06-08 22:04:35.094172"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.097618"], ["updated_at", "2018-06-08 22:04:35.097618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.103771"], ["updated_at", "2018-06-08 22:04:35.103771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.104821"], ["updated_at", "2018-06-08 22:04:35.104821"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.109449"], ["updated_at", "2018-06-08 22:04:35.109449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.110728"], ["updated_at", "2018-06-08 22:04:35.110728"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.113462"], ["updated_at", "2018-06-08 22:04:35.113462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.114464"], ["updated_at", "2018-06-08 22:04:35.114464"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.142117"], ["updated_at", "2018-06-08 22:04:35.142117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:04:35.147916"], ["updated_at", "2018-06-08 22:04:35.147916"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:04:35.149667"], ["updated_at", "2018-06-08 22:04:35.149667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:04:35.151904"], ["updated_at", "2018-06-08 22:04:35.151904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:04:35.152817"], ["updated_at", "2018-06-08 22:04:35.152817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:04:35.167860"], ["updated_at", "2018-06-08 22:04:35.167860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.178923"], ["updated_at", "2018-06-08 22:04:35.178923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.185898"], ["updated_at", "2018-06-08 22:04:35.185898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.193967"], ["updated_at", "2018-06-08 22:04:35.193967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.201783"], ["updated_at", "2018-06-08 22:04:35.201783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.208155"], ["updated_at", "2018-06-08 22:04:35.208155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.213141"], ["updated_at", "2018-06-08 22:04:35.213141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.214193"], ["updated_at", "2018-06-08 22:04:35.214193"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:04:35.216936"], ["updated_at", "2018-06-08 22:04:35.216936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.219687"], ["updated_at", "2018-06-08 22:04:35.219687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.225439"], ["updated_at", "2018-06-08 22:04:35.225439"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.226777"], ["updated_at", "2018-06-08 22:04:35.226777"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.227908"], ["updated_at", "2018-06-08 22:04:35.227908"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.231531"], ["updated_at", "2018-06-08 22:04:35.231531"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.232865"], ["updated_at", "2018-06-08 22:04:35.232865"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.235721"], ["updated_at", "2018-06-08 22:04:35.235721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.239902"], ["updated_at", "2018-06-08 22:04:35.239902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.240914"], ["updated_at", "2018-06-08 22:04:35.240914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.241783"], ["updated_at", "2018-06-08 22:04:35.241783"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.244657"], ["updated_at", "2018-06-08 22:04:35.244657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.247074"], ["updated_at", "2018-06-08 22:04:35.247074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.251903"], ["updated_at", "2018-06-08 22:04:35.251903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.252971"], ["updated_at", "2018-06-08 22:04:35.252971"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.255516"], ["updated_at", "2018-06-08 22:04:35.255516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:04:35.256927"], ["updated_at", "2018-06-08 22:04:35.256927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>""} Permission denied: No matching rules found for show for User with id (roles {:users__read=>true}, privileges [:show], context :users). Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Permission denied: No matching rules found for show for User with id (roles {:users__read=>true}, privileges [:show], context :users). Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id --------------------------------------------------------------------------------  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:05:15.099178"], ["updated_at", "2018-06-08 22:05:15.099178"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:05:15.158473"], ["updated_at", "2018-06-08 22:05:15.158473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:05:15.159612"], ["updated_at", "2018-06-08 22:05:15.159612"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.197488"], ["updated_at", "2018-06-08 22:05:15.197488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.204192"], ["updated_at", "2018-06-08 22:05:15.204192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.207546"], ["updated_at", "2018-06-08 22:05:15.207546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.226390"], ["updated_at", "2018-06-08 22:05:15.226390"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Permission denied: No matching rules found for show for User with id 1 (roles {:users__read=>true}, privileges [:show], context :users). Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Permission denied: No matching rules found for show for User with id 1 (roles {:users__read=>true}, privileges [:show], context :users). Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.301601"], ["updated_at", "2018-06-08 22:05:15.301601"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.310510"], ["updated_at", "2018-06-08 22:05:15.310510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.311628"], ["updated_at", "2018-06-08 22:05:15.311628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.314436"], ["updated_at", "2018-06-08 22:05:15.314436"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.320419"], ["updated_at", "2018-06-08 22:05:15.320419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.321812"], ["updated_at", "2018-06-08 22:05:15.321812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:05:15.341079"], ["updated_at", "2018-06-08 22:05:15.341079"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:05:15.356878"], ["updated_at", "2018-06-08 22:05:15.356878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:05:15.360945"], ["updated_at", "2018-06-08 22:05:15.360945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.384734"], ["updated_at", "2018-06-08 22:05:15.384734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.391689"], ["updated_at", "2018-06-08 22:05:15.391689"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.394375"], ["updated_at", "2018-06-08 22:05:15.394375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.395276"], ["updated_at", "2018-06-08 22:05:15.395276"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.398055"], ["updated_at", "2018-06-08 22:05:15.398055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.399062"], ["updated_at", "2018-06-08 22:05:15.399062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.409191"], ["updated_at", "2018-06-08 22:05:15.409191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.410271"], ["updated_at", "2018-06-08 22:05:15.410271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.417491"], ["updated_at", "2018-06-08 22:05:15.417491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.418385"], ["updated_at", "2018-06-08 22:05:15.418385"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.420916"], ["updated_at", "2018-06-08 22:05:15.420916"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:05:15.421955"], ["updated_at", "2018-06-08 22:05:15.421955"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.425127"], ["updated_at", "2018-06-08 22:05:15.425127"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.426397"], ["updated_at", "2018-06-08 22:05:15.426397"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:05:15.446579"], ["updated_at", "2018-06-08 22:05:15.446579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:05:15.448194"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:05:15.449503"], ["updated_at", "2018-06-08 22:05:15.449503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:05:15.450604"], ["updated_at", "2018-06-08 22:05:15.450604"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.454610"], ["updated_at", "2018-06-08 22:05:15.454610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.462234"], ["updated_at", "2018-06-08 22:05:15.462234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.463348"], ["updated_at", "2018-06-08 22:05:15.463348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.466954"], ["updated_at", "2018-06-08 22:05:15.466954"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.471174"], ["updated_at", "2018-06-08 22:05:15.471174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.473826"], ["updated_at", "2018-06-08 22:05:15.473826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.478280"], ["updated_at", "2018-06-08 22:05:15.478280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:05:15.484992"], ["updated_at", "2018-06-08 22:05:15.484992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:05:15.486072"], ["updated_at", "2018-06-08 22:05:15.486072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:05:15.487993"], ["updated_at", "2018-06-08 22:05:15.487993"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:05:15.489210"], ["updated_at", "2018-06-08 22:05:15.489210"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.497449"], ["updated_at", "2018-06-08 22:05:15.497449"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.504666"], ["updated_at", "2018-06-08 22:05:15.504666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.505670"], ["updated_at", "2018-06-08 22:05:15.505670"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.509175"], ["updated_at", "2018-06-08 22:05:15.509175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.516301"], ["updated_at", "2018-06-08 22:05:15.516301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.517312"], ["updated_at", "2018-06-08 22:05:15.517312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.518151"], ["updated_at", "2018-06-08 22:05:15.518151"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.520834"], ["updated_at", "2018-06-08 22:05:15.520834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.528416"], ["updated_at", "2018-06-08 22:05:15.528416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.532549"], ["updated_at", "2018-06-08 22:05:15.532549"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.537143"], ["updated_at", "2018-06-08 22:05:15.537143"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.539577"], ["updated_at", "2018-06-08 22:05:15.539577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.542859"], ["updated_at", "2018-06-08 22:05:15.542859"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.546930"], ["updated_at", "2018-06-08 22:05:15.546930"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.548009"], ["updated_at", "2018-06-08 22:05:15.548009"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:05:15.557519"], ["updated_at", "2018-06-08 22:05:15.557519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:05:15.559001"], ["updated_at", "2018-06-08 22:05:15.559001"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.560228"], ["updated_at", "2018-06-08 22:05:15.560228"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.562539"], ["updated_at", "2018-06-08 22:05:15.562539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.563391"], ["updated_at", "2018-06-08 22:05:15.563391"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.565688"], ["updated_at", "2018-06-08 22:05:15.565688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.570506"], ["updated_at", "2018-06-08 22:05:15.570506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.571538"], ["updated_at", "2018-06-08 22:05:15.571538"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.576546"], ["updated_at", "2018-06-08 22:05:15.576546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.584778"], ["updated_at", "2018-06-08 22:05:15.584778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.594215"], ["updated_at", "2018-06-08 22:05:15.594215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.597220"], ["updated_at", "2018-06-08 22:05:15.597220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:05:15.602529"], ["updated_at", "2018-06-08 22:05:15.602529"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.604893"], ["updated_at", "2018-06-08 22:05:15.604893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.620989"], ["updated_at", "2018-06-08 22:05:15.620989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.622240"], ["updated_at", "2018-06-08 22:05:15.622240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.623224"], ["updated_at", "2018-06-08 22:05:15.623224"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.630700"], ["updated_at", "2018-06-08 22:05:15.630700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.635539"], ["updated_at", "2018-06-08 22:05:15.635539"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:05:15.638316"], ["updated_at", "2018-06-08 22:05:15.638316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:05:15.639179"], ["updated_at", "2018-06-08 22:05:15.639179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:05:15.641273"], ["updated_at", "2018-06-08 22:05:15.641273"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:05:15.642540"], ["updated_at", "2018-06-08 22:05:15.642540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:05:15.655559"], ["updated_at", "2018-06-08 22:05:15.655559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.661276"], ["updated_at", "2018-06-08 22:05:15.661276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:15.662726"], ["updated_at", "2018-06-08 22:05:15.662726"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params -----------------------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) SQL (0.7ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:05:47.923608"], ["updated_at", "2018-06-08 22:05:47.923608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:05:47.925215"], ["updated_at", "2018-06-08 22:05:47.925215"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.009370"], ["updated_at", "2018-06-08 22:05:48.009370"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:05:48.034421"], ["updated_at", "2018-06-08 22:05:48.034421"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.048757"], ["updated_at", "2018-06-08 22:05:48.048757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.054911"], ["updated_at", "2018-06-08 22:05:48.054911"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.058687"], ["updated_at", "2018-06-08 22:05:48.058687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_has_access ---------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Permission denied: No matching rules found for show for User with id 1 (roles {:users__read=>true}, privileges [:show], context :users). Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Permission denied: No matching rules found for show for User with id 1 (roles {:users__read=>true}, privileges [:show], context :users). Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ----------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.169056"], ["updated_at", "2018-06-08 22:05:48.169056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.174872"], ["updated_at", "2018-06-08 22:05:48.174872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.181128"], ["updated_at", "2018-06-08 22:05:48.181128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.185463"], ["updated_at", "2018-06-08 22:05:48.185463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:05:48.190789"], ["updated_at", "2018-06-08 22:05:48.190789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:05:48.194136"], ["updated_at", "2018-06-08 22:05:48.194136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.207132"], ["updated_at", "2018-06-08 22:05:48.207132"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.208112"], ["updated_at", "2018-06-08 22:05:48.208112"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.210214"], ["updated_at", "2018-06-08 22:05:48.210214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.212502"], ["updated_at", "2018-06-08 22:05:48.212502"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.216239"], ["updated_at", "2018-06-08 22:05:48.216239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.216995"], ["updated_at", "2018-06-08 22:05:48.216995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.218815"], ["updated_at", "2018-06-08 22:05:48.218815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.232821"], ["updated_at", "2018-06-08 22:05:48.232821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.237742"], ["updated_at", "2018-06-08 22:05:48.237742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:05:48.238672"], ["updated_at", "2018-06-08 22:05:48.238672"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.240983"], ["updated_at", "2018-06-08 22:05:48.240983"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.242032"], ["updated_at", "2018-06-08 22:05:48.242032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.242874"], ["updated_at", "2018-06-08 22:05:48.242874"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.245116"], ["updated_at", "2018-06-08 22:05:48.245116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.245963"], ["updated_at", "2018-06-08 22:05:48.245963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.251841"], ["updated_at", "2018-06-08 22:05:48.251841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.252657"], ["updated_at", "2018-06-08 22:05:48.252657"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.255107"], ["updated_at", "2018-06-08 22:05:48.255107"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.256248"], ["updated_at", "2018-06-08 22:05:48.256248"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.259912"], ["updated_at", "2018-06-08 22:05:48.259912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.260988"], ["updated_at", "2018-06-08 22:05:48.260988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.271392"], ["updated_at", "2018-06-08 22:05:48.271392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.278535"], ["updated_at", "2018-06-08 22:05:48.278535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.279407"], ["updated_at", "2018-06-08 22:05:48.279407"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:05:48.282299"], ["updated_at", "2018-06-08 22:05:48.282299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:05:48.283279"], ["updated_at", "2018-06-08 22:05:48.283279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:05:48.285099"], ["updated_at", "2018-06-08 22:05:48.285099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:05:48.285959"], ["updated_at", "2018-06-08 22:05:48.285959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:05:48.297363"], ["updated_at", "2018-06-08 22:05:48.297363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:05:48.307328"], ["updated_at", "2018-06-08 22:05:48.307328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:05:48.308632"], ["updated_at", "2018-06-08 22:05:48.308632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:05:48.311055"], ["updated_at", "2018-06-08 22:05:48.311055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:05:48.312117"], ["updated_at", "2018-06-08 22:05:48.312117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.316069"], ["updated_at", "2018-06-08 22:05:48.316069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.316935"], ["updated_at", "2018-06-08 22:05:48.316935"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.318797"], ["updated_at", "2018-06-08 22:05:48.318797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:05:48.327169"], ["updated_at", "2018-06-08 22:05:48.327169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.331702"], ["updated_at", "2018-06-08 22:05:48.331702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.332657"], ["updated_at", "2018-06-08 22:05:48.332657"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.335684"], ["updated_at", "2018-06-08 22:05:48.335684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:05:48.345884"], ["updated_at", "2018-06-08 22:05:48.345884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.348780"], ["updated_at", "2018-06-08 22:05:48.348780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.352604"], ["updated_at", "2018-06-08 22:05:48.352604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.353382"], ["updated_at", "2018-06-08 22:05:48.353382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.354101"], ["updated_at", "2018-06-08 22:05:48.354101"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.357239"], ["updated_at", "2018-06-08 22:05:48.357239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.359941"], ["updated_at", "2018-06-08 22:05:48.359941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.363733"], ["updated_at", "2018-06-08 22:05:48.363733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.364690"], ["updated_at", "2018-06-08 22:05:48.364690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:05:48.375568"], ["updated_at", "2018-06-08 22:05:48.375568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:05:48.377253"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:05:48.378423"], ["updated_at", "2018-06-08 22:05:48.378423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:05:48.379253"], ["updated_at", "2018-06-08 22:05:48.379253"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.383896"], ["updated_at", "2018-06-08 22:05:48.383896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.387951"], ["updated_at", "2018-06-08 22:05:48.387951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.388820"], ["updated_at", "2018-06-08 22:05:48.388820"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.391068"], ["updated_at", "2018-06-08 22:05:48.391068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.393797"], ["updated_at", "2018-06-08 22:05:48.393797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.397652"], ["updated_at", "2018-06-08 22:05:48.397652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.400122"], ["updated_at", "2018-06-08 22:05:48.400122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.402181"], ["updated_at", "2018-06-08 22:05:48.402181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.405606"], ["updated_at", "2018-06-08 22:05:48.405606"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.411090"], ["updated_at", "2018-06-08 22:05:48.411090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.412167"], ["updated_at", "2018-06-08 22:05:48.412167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.415453"], ["updated_at", "2018-06-08 22:05:48.415453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:05:48.418857"], ["updated_at", "2018-06-08 22:05:48.418857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:05:48.419653"], ["updated_at", "2018-06-08 22:05:48.419653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.420393"], ["updated_at", "2018-06-08 22:05:48.420393"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.422366"], ["updated_at", "2018-06-08 22:05:48.422366"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.423479"], ["updated_at", "2018-06-08 22:05:48.423479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.431875"], ["updated_at", "2018-06-08 22:05:48.431875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.451091"], ["updated_at", "2018-06-08 22:05:48.451091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:05:48.451985"], ["updated_at", "2018-06-08 22:05:48.451985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params -----------------------------------------------------------------------  (1.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.572682"], ["updated_at", "2018-06-08 22:15:08.572682"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.619837"], ["updated_at", "2018-06-08 22:15:08.619837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.621053"], ["updated_at", "2018-06-08 22:15:08.621053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.621875"], ["updated_at", "2018-06-08 22:15:08.621875"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.625084"], ["updated_at", "2018-06-08 22:15:08.625084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.625982"], ["updated_at", "2018-06-08 22:15:08.625982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:15:08.634707"], ["updated_at", "2018-06-08 22:15:08.634707"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.639042"], ["updated_at", "2018-06-08 22:15:08.639042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.645414"], ["updated_at", "2018-06-08 22:15:08.645414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.648514"], ["updated_at", "2018-06-08 22:15:08.648514"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:15:08.654018"], ["updated_at", "2018-06-08 22:15:08.654018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:15:08.655130"], ["updated_at", "2018-06-08 22:15:08.655130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:15:08.657191"], ["updated_at", "2018-06-08 22:15:08.657191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:15:08.658274"], ["updated_at", "2018-06-08 22:15:08.658274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.670171"], ["updated_at", "2018-06-08 22:15:08.670171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.677763"], ["updated_at", "2018-06-08 22:15:08.677763"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.678850"], ["updated_at", "2018-06-08 22:15:08.678850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.682014"], ["updated_at", "2018-06-08 22:15:08.682014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.688322"], ["updated_at", "2018-06-08 22:15:08.688322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.690905"], ["updated_at", "2018-06-08 22:15:08.690905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.704487"], ["updated_at", "2018-06-08 22:15:08.704487"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.708704"], ["updated_at", "2018-06-08 22:15:08.708704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.709498"], ["updated_at", "2018-06-08 22:15:08.709498"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.711816"], ["updated_at", "2018-06-08 22:15:08.711816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.712569"], ["updated_at", "2018-06-08 22:15:08.712569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.720598"], ["updated_at", "2018-06-08 22:15:08.720598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.721579"], ["updated_at", "2018-06-08 22:15:08.721579"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.724136"], ["updated_at", "2018-06-08 22:15:08.724136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.724934"], ["updated_at", "2018-06-08 22:15:08.724934"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.727153"], ["updated_at", "2018-06-08 22:15:08.727153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.732032"], ["updated_at", "2018-06-08 22:15:08.732032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.735978"], ["updated_at", "2018-06-08 22:15:08.735978"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.740279"], ["updated_at", "2018-06-08 22:15:08.740279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.746428"], ["updated_at", "2018-06-08 22:15:08.746428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.747622"], ["updated_at", "2018-06-08 22:15:08.747622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.758807"], ["updated_at", "2018-06-08 22:15:08.758807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.759625"], ["updated_at", "2018-06-08 22:15:08.759625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.768148"], ["updated_at", "2018-06-08 22:15:08.768148"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:15:08.774011"], ["updated_at", "2018-06-08 22:15:08.774011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:15:08.776259"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:15:08.777678"], ["updated_at", "2018-06-08 22:15:08.777678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:15:08.778479"], ["updated_at", "2018-06-08 22:15:08.778479"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:15:08.783549"], ["updated_at", "2018-06-08 22:15:08.783549"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:15:08.786780"], ["updated_at", "2018-06-08 22:15:08.786780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.797426"], ["updated_at", "2018-06-08 22:15:08.797426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.798887"], ["updated_at", "2018-06-08 22:15:08.798887"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.824718"], ["updated_at", "2018-06-08 22:15:08.824718"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:15:08.825655"], ["updated_at", "2018-06-08 22:15:08.825655"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:15:08.833653"], ["updated_at", "2018-06-08 22:15:08.833653"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.840116"], ["updated_at", "2018-06-08 22:15:08.840116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.846882"], ["updated_at", "2018-06-08 22:15:08.846882"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.857108"], ["updated_at", "2018-06-08 22:15:08.857108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:15:08.865294"], ["updated_at", "2018-06-08 22:15:08.865294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:15:08.866484"], ["updated_at", "2018-06-08 22:15:08.866484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.867641"], ["updated_at", "2018-06-08 22:15:08.867641"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.870167"], ["updated_at", "2018-06-08 22:15:08.870167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.875526"], ["updated_at", "2018-06-08 22:15:08.875526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.876378"], ["updated_at", "2018-06-08 22:15:08.876378"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:15:08.885018"], ["updated_at", "2018-06-08 22:15:08.885018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.896037"], ["updated_at", "2018-06-08 22:15:08.896037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.897168"], ["updated_at", "2018-06-08 22:15:08.897168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.910631"], ["updated_at", "2018-06-08 22:15:08.910631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.911502"], ["updated_at", "2018-06-08 22:15:08.911502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.913709"], ["updated_at", "2018-06-08 22:15:08.913709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.922268"], ["updated_at", "2018-06-08 22:15:08.922268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.923293"], ["updated_at", "2018-06-08 22:15:08.923293"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.924420"], ["updated_at", "2018-06-08 22:15:08.924420"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.927661"], ["updated_at", "2018-06-08 22:15:08.927661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.931008"], ["updated_at", "2018-06-08 22:15:08.931008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.938176"], ["updated_at", "2018-06-08 22:15:08.938176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.942619"], ["updated_at", "2018-06-08 22:15:08.942619"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.958180"], ["updated_at", "2018-06-08 22:15:08.958180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.958979"], ["updated_at", "2018-06-08 22:15:08.958979"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.963349"], ["updated_at", "2018-06-08 22:15:08.963349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.964375"], ["updated_at", "2018-06-08 22:15:08.964375"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:15:08.973799"], ["updated_at", "2018-06-08 22:15:08.973799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:15:08.974934"], ["updated_at", "2018-06-08 22:15:08.974934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:15:08.976825"], ["updated_at", "2018-06-08 22:15:08.976825"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:15:08.977689"], ["updated_at", "2018-06-08 22:15:08.977689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.988408"], ["updated_at", "2018-06-08 22:15:08.988408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.994267"], ["updated_at", "2018-06-08 22:15:08.994267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:08.997587"], ["updated_at", "2018-06-08 22:15:08.997587"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:15:09.020505"], ["updated_at", "2018-06-08 22:15:09.020505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:15:09.029675"], ["updated_at", "2018-06-08 22:15:09.029675"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:15:09.040060"], ["updated_at", "2018-06-08 22:15:09.040060"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:15:09.040999"], ["updated_at", "2018-06-08 22:15:09.040999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search ---------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:16:02.936978"], ["updated_at", "2018-06-08 22:16:02.936978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:16:02.944297"], ["updated_at", "2018-06-08 22:16:02.944297"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:16:02.955612"], ["updated_at", "2018-06-08 22:16:02.955612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:16:02.956857"], ["updated_at", "2018-06-08 22:16:02.956857"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:02.970763"], ["updated_at", "2018-06-08 22:16:02.970763"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:02.988885"], ["updated_at", "2018-06-08 22:16:02.988885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:02.997954"], ["updated_at", "2018-06-08 22:16:02.997954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.000922"], ["updated_at", "2018-06-08 22:16:03.000922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.005975"], ["updated_at", "2018-06-08 22:16:03.005975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.007192"], ["updated_at", "2018-06-08 22:16:03.007192"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.020654"], ["updated_at", "2018-06-08 22:16:03.020654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:16:03.030084"], ["updated_at", "2018-06-08 22:16:03.030084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:16:03.033146"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:16:03.035276"], ["updated_at", "2018-06-08 22:16:03.035276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:16:03.036559"], ["updated_at", "2018-06-08 22:16:03.036559"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.065757"], ["updated_at", "2018-06-08 22:16:03.065757"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.067020"], ["updated_at", "2018-06-08 22:16:03.067020"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.069693"], ["updated_at", "2018-06-08 22:16:03.069693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:16:03.078242"], ["updated_at", "2018-06-08 22:16:03.078242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:16:03.093871"], ["updated_at", "2018-06-08 22:16:03.093871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.097171"], ["updated_at", "2018-06-08 22:16:03.097171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.103414"], ["updated_at", "2018-06-08 22:16:03.103414"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.107139"], ["updated_at", "2018-06-08 22:16:03.107139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.133838"], ["updated_at", "2018-06-08 22:16:03.133838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.140588"], ["updated_at", "2018-06-08 22:16:03.140588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.142010"], ["updated_at", "2018-06-08 22:16:03.142010"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.151680"], ["updated_at", "2018-06-08 22:16:03.151680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.152660"], ["updated_at", "2018-06-08 22:16:03.152660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.153565"], ["updated_at", "2018-06-08 22:16:03.153565"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.156590"], ["updated_at", "2018-06-08 22:16:03.156590"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.158201"], ["updated_at", "2018-06-08 22:16:03.158201"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.161381"], ["updated_at", "2018-06-08 22:16:03.161381"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.173672"], ["updated_at", "2018-06-08 22:16:03.173672"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:16:03.183948"], ["updated_at", "2018-06-08 22:16:03.183948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:16:03.185126"], ["updated_at", "2018-06-08 22:16:03.185126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:16:03.187022"], ["updated_at", "2018-06-08 22:16:03.187022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:16:03.187928"], ["updated_at", "2018-06-08 22:16:03.187928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.196639"], ["updated_at", "2018-06-08 22:16:03.196639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.197593"], ["updated_at", "2018-06-08 22:16:03.197593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.204076"], ["updated_at", "2018-06-08 22:16:03.204076"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.205643"], ["updated_at", "2018-06-08 22:16:03.205643"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.219065"], ["updated_at", "2018-06-08 22:16:03.219065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.219911"], ["updated_at", "2018-06-08 22:16:03.219911"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.222469"], ["updated_at", "2018-06-08 22:16:03.222469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.225856"], ["updated_at", "2018-06-08 22:16:03.225856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.229369"], ["updated_at", "2018-06-08 22:16:03.229369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.230253"], ["updated_at", "2018-06-08 22:16:03.230253"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.233380"], ["updated_at", "2018-06-08 22:16:03.233380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.234264"], ["updated_at", "2018-06-08 22:16:03.234264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.246417"], ["updated_at", "2018-06-08 22:16:03.246417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.251852"], ["updated_at", "2018-06-08 22:16:03.251852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.252632"], ["updated_at", "2018-06-08 22:16:03.252632"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.255442"], ["updated_at", "2018-06-08 22:16:03.255442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.256773"], ["updated_at", "2018-06-08 22:16:03.256773"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:16:03.263145"], ["updated_at", "2018-06-08 22:16:03.263145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.267561"], ["updated_at", "2018-06-08 22:16:03.267561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.275485"], ["updated_at", "2018-06-08 22:16:03.275485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.278888"], ["updated_at", "2018-06-08 22:16:03.278888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.281930"], ["updated_at", "2018-06-08 22:16:03.281930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.285983"], ["updated_at", "2018-06-08 22:16:03.285983"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.288392"], ["updated_at", "2018-06-08 22:16:03.288392"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:16:03.293854"], ["updated_at", "2018-06-08 22:16:03.293854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:16:03.294771"], ["updated_at", "2018-06-08 22:16:03.294771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.295571"], ["updated_at", "2018-06-08 22:16:03.295571"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.297430"], ["updated_at", "2018-06-08 22:16:03.297430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.298517"], ["updated_at", "2018-06-08 22:16:03.298517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.299335"], ["updated_at", "2018-06-08 22:16:03.299335"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.301703"], ["updated_at", "2018-06-08 22:16:03.301703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.302475"], ["updated_at", "2018-06-08 22:16:03.302475"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.305459"], ["updated_at", "2018-06-08 22:16:03.305459"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:16:03.312380"], ["updated_at", "2018-06-08 22:16:03.312380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:16:03.315976"], ["updated_at", "2018-06-08 22:16:03.315976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.327072"], ["updated_at", "2018-06-08 22:16:03.327072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:16:03.328074"], ["updated_at", "2018-06-08 22:16:03.328074"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.331551"], ["updated_at", "2018-06-08 22:16:03.331551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.332690"], ["updated_at", "2018-06-08 22:16:03.332690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.335408"], ["updated_at", "2018-06-08 22:16:03.335408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.341836"], ["updated_at", "2018-06-08 22:16:03.341836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.348498"], ["updated_at", "2018-06-08 22:16:03.348498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:16:03.361482"], ["updated_at", "2018-06-08 22:16:03.361482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:16:03.362406"], ["updated_at", "2018-06-08 22:16:03.362406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.410570"], ["updated_at", "2018-06-08 22:16:03.410570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.416211"], ["updated_at", "2018-06-08 22:16:03.416211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.419213"], ["updated_at", "2018-06-08 22:16:03.419213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:03.426599"], ["updated_at", "2018-06-08 22:16:03.426599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:16:03.451113"], ["updated_at", "2018-06-08 22:16:03.451113"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller -----------------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.669058"], ["updated_at", "2018-06-08 22:16:30.669058"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.712213"], ["updated_at", "2018-06-08 22:16:30.712213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.719855"], ["updated_at", "2018-06-08 22:16:30.719855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.724467"], ["updated_at", "2018-06-08 22:16:30.724467"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:16:30.753783"], ["updated_at", "2018-06-08 22:16:30.753783"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:16:30.763868"], ["updated_at", "2018-06-08 22:16:30.763868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:16:30.764859"], ["updated_at", "2018-06-08 22:16:30.764859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.3ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 8], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:16:30.926514"], ["updated_at", "2018-06-08 22:16:30.926514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:16:30.927617"], ["updated_at", "2018-06-08 22:16:30.927617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.928574"], ["updated_at", "2018-06-08 22:16:30.928574"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:16:30.930769"], ["updated_at", "2018-06-08 22:16:30.930769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:16:30.931686"], ["updated_at", "2018-06-08 22:16:30.931686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:16:30.934392"], ["updated_at", "2018-06-08 22:16:30.934392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:16:30.936141"], ["updated_at", "2018-06-08 22:16:30.936141"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.947943"], ["updated_at", "2018-06-08 22:16:30.947943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.958238"], ["updated_at", "2018-06-08 22:16:30.958238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.963610"], ["updated_at", "2018-06-08 22:16:30.963610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.964703"], ["updated_at", "2018-06-08 22:16:30.964703"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.967002"], ["updated_at", "2018-06-08 22:16:30.967002"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.978554"], ["updated_at", "2018-06-08 22:16:30.978554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.979493"], ["updated_at", "2018-06-08 22:16:30.979493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.993159"], ["updated_at", "2018-06-08 22:16:30.993159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.994394"], ["updated_at", "2018-06-08 22:16:30.994394"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.996824"], ["updated_at", "2018-06-08 22:16:30.996824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:30.999449"], ["updated_at", "2018-06-08 22:16:30.999449"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.005942"], ["updated_at", "2018-06-08 22:16:31.005942"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.007586"], ["updated_at", "2018-06-08 22:16:31.007586"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.014506"], ["updated_at", "2018-06-08 22:16:31.014506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.023538"], ["updated_at", "2018-06-08 22:16:31.023538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.024588"], ["updated_at", "2018-06-08 22:16:31.024588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.028505"], ["updated_at", "2018-06-08 22:16:31.028505"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.033127"], ["updated_at", "2018-06-08 22:16:31.033127"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.034810"], ["updated_at", "2018-06-08 22:16:31.034810"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.036701"], ["updated_at", "2018-06-08 22:16:31.036701"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:16:31.040772"], ["updated_at", "2018-06-08 22:16:31.040772"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:16:31.041898"], ["updated_at", "2018-06-08 22:16:31.041898"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:16:31.044950"], ["updated_at", "2018-06-08 22:16:31.044950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:16:31.046294"], ["updated_at", "2018-06-08 22:16:31.046294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.063517"], ["updated_at", "2018-06-08 22:16:31.063517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.066371"], ["updated_at", "2018-06-08 22:16:31.066371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.071467"], ["updated_at", "2018-06-08 22:16:31.071467"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.076629"], ["updated_at", "2018-06-08 22:16:31.076629"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.077683"], ["updated_at", "2018-06-08 22:16:31.077683"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.080302"], ["updated_at", "2018-06-08 22:16:31.080302"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.087298"], ["updated_at", "2018-06-08 22:16:31.087298"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.088904"], ["updated_at", "2018-06-08 22:16:31.088904"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.092373"], ["updated_at", "2018-06-08 22:16:31.092373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.093779"], ["updated_at", "2018-06-08 22:16:31.093779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.096957"], ["updated_at", "2018-06-08 22:16:31.096957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.102349"], ["updated_at", "2018-06-08 22:16:31.102349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.103916"], ["updated_at", "2018-06-08 22:16:31.103916"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:16:31.107275"], ["updated_at", "2018-06-08 22:16:31.107275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.110170"], ["updated_at", "2018-06-08 22:16:31.110170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.115535"], ["updated_at", "2018-06-08 22:16:31.115535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.123764"], ["updated_at", "2018-06-08 22:16:31.123764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.131792"], ["updated_at", "2018-06-08 22:16:31.131792"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.138762"], ["updated_at", "2018-06-08 22:16:31.138762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.139886"], ["updated_at", "2018-06-08 22:16:31.139886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.150335"], ["updated_at", "2018-06-08 22:16:31.150335"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.153876"], ["updated_at", "2018-06-08 22:16:31.153876"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.157297"], ["updated_at", "2018-06-08 22:16:31.157297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:16:31.171391"], ["updated_at", "2018-06-08 22:16:31.171391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.176640"], ["updated_at", "2018-06-08 22:16:31.176640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.177864"], ["updated_at", "2018-06-08 22:16:31.177864"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.182527"], ["updated_at", "2018-06-08 22:16:31.182527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.183554"], ["updated_at", "2018-06-08 22:16:31.183554"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:16:31.202627"], ["updated_at", "2018-06-08 22:16:31.202627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:16:31.205757"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:16:31.207002"], ["updated_at", "2018-06-08 22:16:31.207002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:16:31.207938"], ["updated_at", "2018-06-08 22:16:31.207938"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:16:31.212889"], ["updated_at", "2018-06-08 22:16:31.212889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:16:31.216120"], ["updated_at", "2018-06-08 22:16:31.216120"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.227121"], ["updated_at", "2018-06-08 22:16:31.227121"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.233215"], ["updated_at", "2018-06-08 22:16:31.233215"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:16:31.235212"], ["updated_at", "2018-06-08 22:16:31.235212"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:16:31.241653"], ["updated_at", "2018-06-08 22:16:31.241653"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.258434"], ["updated_at", "2018-06-08 22:16:31.258434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.259711"], ["updated_at", "2018-06-08 22:16:31.259711"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.263104"], ["updated_at", "2018-06-08 22:16:31.263104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.264121"], ["updated_at", "2018-06-08 22:16:31.264121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.265165"], ["updated_at", "2018-06-08 22:16:31.265165"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.268137"], ["updated_at", "2018-06-08 22:16:31.268137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.271015"], ["updated_at", "2018-06-08 22:16:31.271015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.275558"], ["updated_at", "2018-06-08 22:16:31.275558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.282120"], ["updated_at", "2018-06-08 22:16:31.282120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:16:31.283150"], ["updated_at", "2018-06-08 22:16:31.283150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller -----------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.081669"], ["updated_at", "2018-06-08 22:17:20.081669"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.143809"], ["updated_at", "2018-06-08 22:17:20.143809"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.151401"], ["updated_at", "2018-06-08 22:17:20.151401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.155139"], ["updated_at", "2018-06-08 22:17:20.155139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:17:20.163384"], ["updated_at", "2018-06-08 22:17:20.163384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:17:20.164741"], ["updated_at", "2018-06-08 22:17:20.164741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:17:20.210541"], ["updated_at", "2018-06-08 22:17:20.210541"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params -----------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.350228"], ["updated_at", "2018-06-08 22:17:20.350228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.351340"], ["updated_at", "2018-06-08 22:17:20.351340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (2,6)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (7))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.363373"], ["updated_at", "2018-06-08 22:17:20.363373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.368320"], ["updated_at", "2018-06-08 22:17:20.368320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.371010"], ["updated_at", "2018-06-08 22:17:20.371010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.373981"], ["updated_at", "2018-06-08 22:17:20.373981"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.402114"], ["updated_at", "2018-06-08 22:17:20.402114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.403168"], ["updated_at", "2018-06-08 22:17:20.403168"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.406098"], ["updated_at", "2018-06-08 22:17:20.406098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.407132"], ["updated_at", "2018-06-08 22:17:20.407132"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.408078"], ["updated_at", "2018-06-08 22:17:20.408078"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.410603"], ["updated_at", "2018-06-08 22:17:20.410603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.411512"], ["updated_at", "2018-06-08 22:17:20.411512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.419392"], ["updated_at", "2018-06-08 22:17:20.419392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.422104"], ["updated_at", "2018-06-08 22:17:20.422104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.427035"], ["updated_at", "2018-06-08 22:17:20.427035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.427989"], ["updated_at", "2018-06-08 22:17:20.427989"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.430419"], ["updated_at", "2018-06-08 22:17:20.430419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.431237"], ["updated_at", "2018-06-08 22:17:20.431237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.437784"], ["updated_at", "2018-06-08 22:17:20.437784"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.444950"], ["updated_at", "2018-06-08 22:17:20.444950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.451602"], ["updated_at", "2018-06-08 22:17:20.451602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.457804"], ["updated_at", "2018-06-08 22:17:20.457804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.459055"], ["updated_at", "2018-06-08 22:17:20.459055"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.461271"], ["updated_at", "2018-06-08 22:17:20.461271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.462150"], ["updated_at", "2018-06-08 22:17:20.462150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.464397"], ["updated_at", "2018-06-08 22:17:20.464397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.468576"], ["updated_at", "2018-06-08 22:17:20.468576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.470953"], ["updated_at", "2018-06-08 22:17:20.470953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.475990"], ["updated_at", "2018-06-08 22:17:20.475990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.477052"], ["updated_at", "2018-06-08 22:17:20.477052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.479095"], ["updated_at", "2018-06-08 22:17:20.479095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.482560"], ["updated_at", "2018-06-08 22:17:20.482560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.484581"], ["updated_at", "2018-06-08 22:17:20.484581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.487904"], ["updated_at", "2018-06-08 22:17:20.487904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.498332"], ["updated_at", "2018-06-08 22:17:20.498332"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.500761"], ["updated_at", "2018-06-08 22:17:20.500761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.501610"], ["updated_at", "2018-06-08 22:17:20.501610"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:17:20.508291"], ["updated_at", "2018-06-08 22:17:20.508291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:17:20.518732"], ["updated_at", "2018-06-08 22:17:20.518732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:17:20.519633"], ["updated_at", "2018-06-08 22:17:20.519633"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:17:20.522179"], ["updated_at", "2018-06-08 22:17:20.522179"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:17:20.524048"], ["updated_at", "2018-06-08 22:17:20.524048"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.532127"], ["updated_at", "2018-06-08 22:17:20.532127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.536528"], ["updated_at", "2018-06-08 22:17:20.536528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.537549"], ["updated_at", "2018-06-08 22:17:20.537549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.550737"], ["updated_at", "2018-06-08 22:17:20.550737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.560124"], ["updated_at", "2018-06-08 22:17:20.560124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:17:20.566547"], ["updated_at", "2018-06-08 22:17:20.566547"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.569316"], ["updated_at", "2018-06-08 22:17:20.569316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.574483"], ["updated_at", "2018-06-08 22:17:20.574483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.575805"], ["updated_at", "2018-06-08 22:17:20.575805"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.578677"], ["updated_at", "2018-06-08 22:17:20.578677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.579505"], ["updated_at", "2018-06-08 22:17:20.579505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.580314"], ["updated_at", "2018-06-08 22:17:20.580314"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.583134"], ["updated_at", "2018-06-08 22:17:20.583134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:17:20.584088"], ["updated_at", "2018-06-08 22:17:20.584088"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:17:20.586548"], ["updated_at", "2018-06-08 22:17:20.586548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:17:20.590157"], ["updated_at", "2018-06-08 22:17:20.590157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.599958"], ["updated_at", "2018-06-08 22:17:20.599958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.600785"], ["updated_at", "2018-06-08 22:17:20.600785"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.603244"], ["updated_at", "2018-06-08 22:17:20.603244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:17:20.610956"], ["updated_at", "2018-06-08 22:17:20.610956"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:17:20.612842"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:17:20.613975"], ["updated_at", "2018-06-08 22:17:20.613975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:17:20.614952"], ["updated_at", "2018-06-08 22:17:20.614952"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:17:20.626098"], ["updated_at", "2018-06-08 22:17:20.626098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.630182"], ["updated_at", "2018-06-08 22:17:20.630182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.634641"], ["updated_at", "2018-06-08 22:17:20.634641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.635429"], ["updated_at", "2018-06-08 22:17:20.635429"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:17:20.637496"], ["updated_at", "2018-06-08 22:17:20.637496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:17:20.638565"], ["updated_at", "2018-06-08 22:17:20.638565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.639688"], ["updated_at", "2018-06-08 22:17:20.639688"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:17:20.642391"], ["updated_at", "2018-06-08 22:17:20.642391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:17:20.643502"], ["updated_at", "2018-06-08 22:17:20.643502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:17:20.645655"], ["updated_at", "2018-06-08 22:17:20.645655"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:17:20.646640"], ["updated_at", "2018-06-08 22:17:20.646640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.652540"], ["updated_at", "2018-06-08 22:17:20.652540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:20.653393"], ["updated_at", "2018-06-08 22:17:20.653393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:17:34.093885"], ["updated_at", "2018-06-08 22:17:34.093885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:17:34.094965"], ["updated_at", "2018-06-08 22:17:34.094965"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:17:34.136245"], ["updated_at", "2018-06-08 22:17:34.136245"]]  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.145100"], ["updated_at", "2018-06-08 22:17:34.145100"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.165386"], ["updated_at", "2018-06-08 22:17:34.165386"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.173910"], ["updated_at", "2018-06-08 22:17:34.173910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.178048"], ["updated_at", "2018-06-08 22:17:34.178048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.223670"], ["updated_at", "2018-06-08 22:17:34.223670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.225034"], ["updated_at", "2018-06-08 22:17:34.225034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.233815"], ["updated_at", "2018-06-08 22:17:34.233815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.240880"], ["updated_at", "2018-06-08 22:17:34.240880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.242091"], ["updated_at", "2018-06-08 22:17:34.242091"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.250211"], ["updated_at", "2018-06-08 22:17:34.250211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.257606"], ["updated_at", "2018-06-08 22:17:34.257606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.260136"], ["updated_at", "2018-06-08 22:17:34.260136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.265541"], ["updated_at", "2018-06-08 22:17:34.265541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:17:34.272114"], ["updated_at", "2018-06-08 22:17:34.272114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:17:34.273163"], ["updated_at", "2018-06-08 22:17:34.273163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.274112"], ["updated_at", "2018-06-08 22:17:34.274112"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.276202"], ["updated_at", "2018-06-08 22:17:34.276202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.282820"], ["updated_at", "2018-06-08 22:17:34.282820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.289167"], ["updated_at", "2018-06-08 22:17:34.289167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.290288"], ["updated_at", "2018-06-08 22:17:34.290288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.312525"], ["updated_at", "2018-06-08 22:17:34.312525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.313547"], ["updated_at", "2018-06-08 22:17:34.313547"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:17:34.317296"], ["updated_at", "2018-06-08 22:17:34.317296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:17:34.319925"], ["updated_at", "2018-06-08 22:17:34.319925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.329163"], ["updated_at", "2018-06-08 22:17:34.329163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:17:34.330088"], ["updated_at", "2018-06-08 22:17:34.330088"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.333206"], ["updated_at", "2018-06-08 22:17:34.333206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.336429"], ["updated_at", "2018-06-08 22:17:34.336429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.338894"], ["updated_at", "2018-06-08 22:17:34.338894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:17:34.347631"], ["updated_at", "2018-06-08 22:17:34.347631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:17:34.350795"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:17:34.352121"], ["updated_at", "2018-06-08 22:17:34.352121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:17:34.353132"], ["updated_at", "2018-06-08 22:17:34.353132"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.357206"], ["updated_at", "2018-06-08 22:17:34.357206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.358038"], ["updated_at", "2018-06-08 22:17:34.358038"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.370470"], ["updated_at", "2018-06-08 22:17:34.370470"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.371802"], ["updated_at", "2018-06-08 22:17:34.371802"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:17:34.374072"], ["updated_at", "2018-06-08 22:17:34.374072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.376611"], ["updated_at", "2018-06-08 22:17:34.376611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.381285"], ["updated_at", "2018-06-08 22:17:34.381285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.382485"], ["updated_at", "2018-06-08 22:17:34.382485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.385125"], ["updated_at", "2018-06-08 22:17:34.385125"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.389490"], ["updated_at", "2018-06-08 22:17:34.389490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.390400"], ["updated_at", "2018-06-08 22:17:34.390400"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.392423"], ["updated_at", "2018-06-08 22:17:34.392423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.393339"], ["updated_at", "2018-06-08 22:17:34.393339"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.396119"], ["updated_at", "2018-06-08 22:17:34.396119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.398945"], ["updated_at", "2018-06-08 22:17:34.398945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.402894"], ["updated_at", "2018-06-08 22:17:34.402894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.409240"], ["updated_at", "2018-06-08 22:17:34.409240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.410134"], ["updated_at", "2018-06-08 22:17:34.410134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.412802"], ["updated_at", "2018-06-08 22:17:34.412802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:17:34.417964"], ["updated_at", "2018-06-08 22:17:34.417964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:17:34.418922"], ["updated_at", "2018-06-08 22:17:34.418922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:17:34.420826"], ["updated_at", "2018-06-08 22:17:34.420826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:17:34.421765"], ["updated_at", "2018-06-08 22:17:34.421765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:17:34.430109"], ["updated_at", "2018-06-08 22:17:34.430109"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.441505"], ["updated_at", "2018-06-08 22:17:34.441505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.442414"], ["updated_at", "2018-06-08 22:17:34.442414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.453761"], ["updated_at", "2018-06-08 22:17:34.453761"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.455051"], ["updated_at", "2018-06-08 22:17:34.455051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.462296"], ["updated_at", "2018-06-08 22:17:34.462296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.463398"], ["updated_at", "2018-06-08 22:17:34.463398"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.464754"], ["updated_at", "2018-06-08 22:17:34.464754"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.467953"], ["updated_at", "2018-06-08 22:17:34.467953"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.468911"], ["updated_at", "2018-06-08 22:17:34.468911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.474720"], ["updated_at", "2018-06-08 22:17:34.474720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.477206"], ["updated_at", "2018-06-08 22:17:34.477206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.481073"], ["updated_at", "2018-06-08 22:17:34.481073"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.484312"], ["updated_at", "2018-06-08 22:17:34.484312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:17:34.489353"], ["updated_at", "2018-06-08 22:17:34.489353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:17:34.490274"], ["updated_at", "2018-06-08 22:17:34.490274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:17:34.492035"], ["updated_at", "2018-06-08 22:17:34.492035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:17:34.492893"], ["updated_at", "2018-06-08 22:17:34.492893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:17:34.500833"], ["updated_at", "2018-06-08 22:17:34.500833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.506378"], ["updated_at", "2018-06-08 22:17:34.506378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.507497"], ["updated_at", "2018-06-08 22:17:34.507497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.508354"], ["updated_at", "2018-06-08 22:17:34.508354"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.511756"], ["updated_at", "2018-06-08 22:17:34.511756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.520306"], ["updated_at", "2018-06-08 22:17:34.520306"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.538915"], ["updated_at", "2018-06-08 22:17:34.538915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.544726"], ["updated_at", "2018-06-08 22:17:34.544726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:17:34.545605"], ["updated_at", "2018-06-08 22:17:34.545605"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:20:49.379747"], ["updated_at", "2018-06-08 22:20:49.379747"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:20:49.393427"], ["updated_at", "2018-06-08 22:20:49.393427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:20:49.394847"], ["updated_at", "2018-06-08 22:20:49.394847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.418429"], ["updated_at", "2018-06-08 22:20:49.418429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.425129"], ["updated_at", "2018-06-08 22:20:49.425129"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.428795"], ["updated_at", "2018-06-08 22:20:49.428795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.458387"], ["updated_at", "2018-06-08 22:20:49.458387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.486461"], ["updated_at", "2018-06-08 22:20:49.486461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.487468"], ["updated_at", "2018-06-08 22:20:49.487468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.499034"], ["updated_at", "2018-06-08 22:20:49.499034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:20:49.504976"], ["updated_at", "2018-06-08 22:20:49.504976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:20:49.505976"], ["updated_at", "2018-06-08 22:20:49.505976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:20:49.508452"], ["updated_at", "2018-06-08 22:20:49.508452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:20:49.509434"], ["updated_at", "2018-06-08 22:20:49.509434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.528462"], ["updated_at", "2018-06-08 22:20:49.528462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.529328"], ["updated_at", "2018-06-08 22:20:49.529328"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:20:49.534877"], ["updated_at", "2018-06-08 22:20:49.534877"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:20:49.537022"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:20:49.538138"], ["updated_at", "2018-06-08 22:20:49.538138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:20:49.538977"], ["updated_at", "2018-06-08 22:20:49.538977"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.543138"], ["updated_at", "2018-06-08 22:20:49.543138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.544174"], ["updated_at", "2018-06-08 22:20:49.544174"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.546606"], ["updated_at", "2018-06-08 22:20:49.546606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:20:49.547660"], ["updated_at", "2018-06-08 22:20:49.547660"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.550433"], ["updated_at", "2018-06-08 22:20:49.550433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:20:49.555059"], ["updated_at", "2018-06-08 22:20:49.555059"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:20:49.556999"], ["updated_at", "2018-06-08 22:20:49.556999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.558071"], ["updated_at", "2018-06-08 22:20:49.558071"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.574537"], ["updated_at", "2018-06-08 22:20:49.574537"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.575812"], ["updated_at", "2018-06-08 22:20:49.575812"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.578243"], ["updated_at", "2018-06-08 22:20:49.578243"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.579305"], ["updated_at", "2018-06-08 22:20:49.579305"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.587973"], ["updated_at", "2018-06-08 22:20:49.587973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.588987"], ["updated_at", "2018-06-08 22:20:49.588987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.592033"], ["updated_at", "2018-06-08 22:20:49.592033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.600281"], ["updated_at", "2018-06-08 22:20:49.600281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.604634"], ["updated_at", "2018-06-08 22:20:49.604634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.606767"], ["updated_at", "2018-06-08 22:20:49.606767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.610257"], ["updated_at", "2018-06-08 22:20:49.610257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.611144"], ["updated_at", "2018-06-08 22:20:49.611144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.617668"], ["updated_at", "2018-06-08 22:20:49.617668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.618642"], ["updated_at", "2018-06-08 22:20:49.618642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:20:49.633097"], ["updated_at", "2018-06-08 22:20:49.633097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.637634"], ["updated_at", "2018-06-08 22:20:49.637634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.641995"], ["updated_at", "2018-06-08 22:20:49.641995"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.644324"], ["updated_at", "2018-06-08 22:20:49.644324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.645184"], ["updated_at", "2018-06-08 22:20:49.645184"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.648120"], ["updated_at", "2018-06-08 22:20:49.648120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.651409"], ["updated_at", "2018-06-08 22:20:49.651409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.656159"], ["updated_at", "2018-06-08 22:20:49.656159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.663310"], ["updated_at", "2018-06-08 22:20:49.663310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.670199"], ["updated_at", "2018-06-08 22:20:49.670199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.671101"], ["updated_at", "2018-06-08 22:20:49.671101"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.673890"], ["updated_at", "2018-06-08 22:20:49.673890"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.674879"], ["updated_at", "2018-06-08 22:20:49.674879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:20:49.681298"], ["updated_at", "2018-06-08 22:20:49.681298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.683946"], ["updated_at", "2018-06-08 22:20:49.683946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.692275"], ["updated_at", "2018-06-08 22:20:49.692275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.693208"], ["updated_at", "2018-06-08 22:20:49.693208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:20:49.702398"], ["updated_at", "2018-06-08 22:20:49.702398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:20:49.703567"], ["updated_at", "2018-06-08 22:20:49.703567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:20:49.705551"], ["updated_at", "2018-06-08 22:20:49.705551"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:20:49.706677"], ["updated_at", "2018-06-08 22:20:49.706677"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.710523"], ["updated_at", "2018-06-08 22:20:49.710523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.711519"], ["updated_at", "2018-06-08 22:20:49.711519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.712410"], ["updated_at", "2018-06-08 22:20:49.712410"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.715980"], ["updated_at", "2018-06-08 22:20:49.715980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.716836"], ["updated_at", "2018-06-08 22:20:49.716836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.718845"], ["updated_at", "2018-06-08 22:20:49.718845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:20:49.722503"], ["updated_at", "2018-06-08 22:20:49.722503"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:20:49.725310"], ["updated_at", "2018-06-08 22:20:49.725310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.735635"], ["updated_at", "2018-06-08 22:20:49.735635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.738932"], ["updated_at", "2018-06-08 22:20:49.738932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.741697"], ["updated_at", "2018-06-08 22:20:49.741697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.745520"], ["updated_at", "2018-06-08 22:20:49.745520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:20:49.752095"], ["updated_at", "2018-06-08 22:20:49.752095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.762296"], ["updated_at", "2018-06-08 22:20:49.762296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.769017"], ["updated_at", "2018-06-08 22:20:49.769017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.771947"], ["updated_at", "2018-06-08 22:20:49.771947"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.776512"], ["updated_at", "2018-06-08 22:20:49.776512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.784088"], ["updated_at", "2018-06-08 22:20:49.784088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.789827"], ["updated_at", "2018-06-08 22:20:49.789827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.790758"], ["updated_at", "2018-06-08 22:20:49.790758"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.792483"], ["updated_at", "2018-06-08 22:20:49.792483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.793391"], ["updated_at", "2018-06-08 22:20:49.793391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:20:49.794189"], ["updated_at", "2018-06-08 22:20:49.794189"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.496291"], ["updated_at", "2018-06-08 22:21:41.496291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.502945"], ["updated_at", "2018-06-08 22:21:41.502945"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.509118"], ["updated_at", "2018-06-08 22:21:41.509118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.510048"], ["updated_at", "2018-06-08 22:21:41.510048"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.548768"], ["updated_at", "2018-06-08 22:21:41.548768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.549772"], ["updated_at", "2018-06-08 22:21:41.549772"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:21:41.551952"], ["updated_at", "2018-06-08 22:21:41.551952"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:21:41.554686"], ["updated_at", "2018-06-08 22:21:41.554686"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.567380"], ["updated_at", "2018-06-08 22:21:41.567380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.568459"], ["updated_at", "2018-06-08 22:21:41.568459"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.572359"], ["updated_at", "2018-06-08 22:21:41.572359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.573661"], ["updated_at", "2018-06-08 22:21:41.573661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.585464"], ["updated_at", "2018-06-08 22:21:41.585464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.588250"], ["updated_at", "2018-06-08 22:21:41.588250"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.590345"], ["updated_at", "2018-06-08 22:21:41.590345"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.603056"], ["updated_at", "2018-06-08 22:21:41.603056"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:21:41.604413"], ["updated_at", "2018-06-08 22:21:41.604413"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.607459"], ["updated_at", "2018-06-08 22:21:41.607459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.608513"], ["updated_at", "2018-06-08 22:21:41.608513"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.611468"], ["updated_at", "2018-06-08 22:21:41.611468"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.612505"], ["updated_at", "2018-06-08 22:21:41.612505"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.615192"], ["updated_at", "2018-06-08 22:21:41.615192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.616158"], ["updated_at", "2018-06-08 22:21:41.616158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.638859"], ["updated_at", "2018-06-08 22:21:41.638859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.646190"], ["updated_at", "2018-06-08 22:21:41.646190"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.647229"], ["updated_at", "2018-06-08 22:21:41.647229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.653965"], ["updated_at", "2018-06-08 22:21:41.653965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.655211"], ["updated_at", "2018-06-08 22:21:41.655211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.656442"], ["updated_at", "2018-06-08 22:21:41.656442"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.678030"], ["updated_at", "2018-06-08 22:21:41.678030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.679246"], ["updated_at", "2018-06-08 22:21:41.679246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.680372"], ["updated_at", "2018-06-08 22:21:41.680372"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:21:41.691007"], ["updated_at", "2018-06-08 22:21:41.691007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:21:41.697503"], ["updated_at", "2018-06-08 22:21:41.697503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:21:41.698642"], ["updated_at", "2018-06-08 22:21:41.698642"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:21:41.700814"], ["updated_at", "2018-06-08 22:21:41.700814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:21:41.701895"], ["updated_at", "2018-06-08 22:21:41.701895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.706639"], ["updated_at", "2018-06-08 22:21:41.706639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.713373"], ["updated_at", "2018-06-08 22:21:41.713373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.714671"], ["updated_at", "2018-06-08 22:21:41.714671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.717932"], ["updated_at", "2018-06-08 22:21:41.717932"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:21:41.737908"], ["updated_at", "2018-06-08 22:21:41.737908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.752767"], ["updated_at", "2018-06-08 22:21:41.752767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.754366"], ["updated_at", "2018-06-08 22:21:41.754366"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:21:41.757315"], ["updated_at", "2018-06-08 22:21:41.757315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:21:41.758672"], ["updated_at", "2018-06-08 22:21:41.758672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.760187"], ["updated_at", "2018-06-08 22:21:41.760187"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:21:41.763012"], ["updated_at", "2018-06-08 22:21:41.763012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:21:41.764297"], ["updated_at", "2018-06-08 22:21:41.764297"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:21:41.766712"], ["updated_at", "2018-06-08 22:21:41.766712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:21:41.767784"], ["updated_at", "2018-06-08 22:21:41.767784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.779066"], ["updated_at", "2018-06-08 22:21:41.779066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.787469"], ["updated_at", "2018-06-08 22:21:41.787469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.791332"], ["updated_at", "2018-06-08 22:21:41.791332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.797204"], ["updated_at", "2018-06-08 22:21:41.797204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.810596"], ["updated_at", "2018-06-08 22:21:41.810596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.813470"], ["updated_at", "2018-06-08 22:21:41.813470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:21:41.818391"], ["updated_at", "2018-06-08 22:21:41.818391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.820819"], ["updated_at", "2018-06-08 22:21:41.820819"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.826428"], ["updated_at", "2018-06-08 22:21:41.826428"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.827527"], ["updated_at", "2018-06-08 22:21:41.827527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.830674"], ["updated_at", "2018-06-08 22:21:41.830674"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.834585"], ["updated_at", "2018-06-08 22:21:41.834585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.840969"], ["updated_at", "2018-06-08 22:21:41.840969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.847426"], ["updated_at", "2018-06-08 22:21:41.847426"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.851570"], ["updated_at", "2018-06-08 22:21:41.851570"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.852412"], ["updated_at", "2018-06-08 22:21:41.852412"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.860782"], ["updated_at", "2018-06-08 22:21:41.860782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.868245"], ["updated_at", "2018-06-08 22:21:41.868245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.869379"], ["updated_at", "2018-06-08 22:21:41.869379"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.874145"], ["updated_at", "2018-06-08 22:21:41.874145"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.876962"], ["updated_at", "2018-06-08 22:21:41.876962"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.885555"], ["updated_at", "2018-06-08 22:21:41.885555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.892129"], ["updated_at", "2018-06-08 22:21:41.892129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:41.895102"], ["updated_at", "2018-06-08 22:21:41.895102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:21:41.899540"], ["updated_at", "2018-06-08 22:21:41.899540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:21:41.900760"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:21:41.902285"], ["updated_at", "2018-06-08 22:21:41.902285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:21:41.903348"], ["updated_at", "2018-06-08 22:21:41.903348"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------- HelperTest: test_permit ----------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params -----------------------------------------------------------------  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:21:41.977628"], ["updated_at", "2018-06-08 22:21:41.977628"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:42.001077"], ["updated_at", "2018-06-08 22:21:42.001077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:42.009836"], ["updated_at", "2018-06-08 22:21:42.009836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:42.014215"], ["updated_at", "2018-06-08 22:21:42.014215"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:21:42.028386"], ["updated_at", "2018-06-08 22:21:42.028386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:21:42.029594"], ["updated_at", "2018-06-08 22:21:42.029594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:42.066299"], ["updated_at", "2018-06-08 22:21:42.066299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search ---------------------------------------------------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.580173"], ["updated_at", "2018-06-08 22:21:50.580173"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.616920"], ["updated_at", "2018-06-08 22:21:50.616920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.618483"], ["updated_at", "2018-06-08 22:21:50.618483"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.3ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.651907"], ["updated_at", "2018-06-08 22:21:50.651907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.653301"], ["updated_at", "2018-06-08 22:21:50.653301"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.666488"], ["updated_at", "2018-06-08 22:21:50.666488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:21:50.667622"], ["updated_at", "2018-06-08 22:21:50.667622"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:21:50.676138"], ["updated_at", "2018-06-08 22:21:50.676138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.689566"], ["updated_at", "2018-06-08 22:21:50.689566"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.691126"], ["updated_at", "2018-06-08 22:21:50.691126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:21:50.704199"], ["updated_at", "2018-06-08 22:21:50.704199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:21:50.705363"], ["updated_at", "2018-06-08 22:21:50.705363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.706605"], ["updated_at", "2018-06-08 22:21:50.706605"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.710293"], ["updated_at", "2018-06-08 22:21:50.710293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.716726"], ["updated_at", "2018-06-08 22:21:50.716726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.717718"], ["updated_at", "2018-06-08 22:21:50.717718"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.721404"], ["updated_at", "2018-06-08 22:21:50.721404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.731536"], ["updated_at", "2018-06-08 22:21:50.731536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.739979"], ["updated_at", "2018-06-08 22:21:50.739979"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.741846"], ["updated_at", "2018-06-08 22:21:50.741846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.745194"], ["updated_at", "2018-06-08 22:21:50.745194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.749822"], ["updated_at", "2018-06-08 22:21:50.749822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.750880"], ["updated_at", "2018-06-08 22:21:50.750880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.758238"], ["updated_at", "2018-06-08 22:21:50.758238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.759332"], ["updated_at", "2018-06-08 22:21:50.759332"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.761588"], ["updated_at", "2018-06-08 22:21:50.761588"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.762603"], ["updated_at", "2018-06-08 22:21:50.762603"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.765281"], ["updated_at", "2018-06-08 22:21:50.765281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.766313"], ["updated_at", "2018-06-08 22:21:50.766313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.768753"], ["updated_at", "2018-06-08 22:21:50.768753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:21:50.772884"], ["updated_at", "2018-06-08 22:21:50.772884"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.776194"], ["updated_at", "2018-06-08 22:21:50.776194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.789542"], ["updated_at", "2018-06-08 22:21:50.789542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.800271"], ["updated_at", "2018-06-08 22:21:50.800271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:21:50.808136"], ["updated_at", "2018-06-08 22:21:50.808136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:21:50.809737"], ["updated_at", "2018-06-08 22:21:50.809737"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:21:50.811618"], ["updated_at", "2018-06-08 22:21:50.811618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:21:50.812471"], ["updated_at", "2018-06-08 22:21:50.812471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.825169"], ["updated_at", "2018-06-08 22:21:50.825169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.826126"], ["updated_at", "2018-06-08 22:21:50.826126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.826977"], ["updated_at", "2018-06-08 22:21:50.826977"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.829551"], ["updated_at", "2018-06-08 22:21:50.829551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.830336"], ["updated_at", "2018-06-08 22:21:50.830336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.835930"], ["updated_at", "2018-06-08 22:21:50.835930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.841509"], ["updated_at", "2018-06-08 22:21:50.841509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.846421"], ["updated_at", "2018-06-08 22:21:50.846421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.848708"], ["updated_at", "2018-06-08 22:21:50.848708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.852046"], ["updated_at", "2018-06-08 22:21:50.852046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.854217"], ["updated_at", "2018-06-08 22:21:50.854217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.856582"], ["updated_at", "2018-06-08 22:21:50.856582"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.860588"], ["updated_at", "2018-06-08 22:21:50.860588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.862827"], ["updated_at", "2018-06-08 22:21:50.862827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.865948"], ["updated_at", "2018-06-08 22:21:50.865948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.866857"], ["updated_at", "2018-06-08 22:21:50.866857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.874549"], ["updated_at", "2018-06-08 22:21:50.874549"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.875820"], ["updated_at", "2018-06-08 22:21:50.875820"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.878230"], ["updated_at", "2018-06-08 22:21:50.878230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.880630"], ["updated_at", "2018-06-08 22:21:50.880630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.884849"], ["updated_at", "2018-06-08 22:21:50.884849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:21:50.889424"], ["updated_at", "2018-06-08 22:21:50.889424"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:21:50.892424"], ["updated_at", "2018-06-08 22:21:50.892424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:21:50.905051"], ["updated_at", "2018-06-08 22:21:50.905051"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.910093"], ["updated_at", "2018-06-08 22:21:50.910093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.910934"], ["updated_at", "2018-06-08 22:21:50.910934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.911805"], ["updated_at", "2018-06-08 22:21:50.911805"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.914140"], ["updated_at", "2018-06-08 22:21:50.914140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.914889"], ["updated_at", "2018-06-08 22:21:50.914889"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:21:50.917107"], ["updated_at", "2018-06-08 22:21:50.917107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:21:50.918030"], ["updated_at", "2018-06-08 22:21:50.918030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:21:50.919915"], ["updated_at", "2018-06-08 22:21:50.919915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:21:50.920931"], ["updated_at", "2018-06-08 22:21:50.920931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.929109"], ["updated_at", "2018-06-08 22:21:50.929109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.934926"], ["updated_at", "2018-06-08 22:21:50.934926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.935848"], ["updated_at", "2018-06-08 22:21:50.935848"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:50.938689"], ["updated_at", "2018-06-08 22:21:50.938689"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:21:50.942180"], ["updated_at", "2018-06-08 22:21:50.942180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:21:50.944049"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:21:50.945538"], ["updated_at", "2018-06-08 22:21:50.945538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:21:50.946374"], ["updated_at", "2018-06-08 22:21:50.946374"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- ----------------------- HelperTest: test_permit ----------------------- ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- ----------------------------- HelperTest: test_has_any_role ----------------------------- -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy --------------------------------------------  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:21:51.038361"], ["updated_at", "2018-06-08 22:21:51.038361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:21:51.039418"], ["updated_at", "2018-06-08 22:21:51.039418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:51.091429"], ["updated_at", "2018-06-08 22:21:51.091429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:51.096854"], ["updated_at", "2018-06-08 22:21:51.096854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:51.102277"], ["updated_at", "2018-06-08 22:21:51.102277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:21:51.105247"], ["updated_at", "2018-06-08 22:21:51.105247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:21:51.112498"], ["updated_at", "2018-06-08 22:21:51.112498"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.553747"], ["updated_at", "2018-06-08 22:22:43.553747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.560134"], ["updated_at", "2018-06-08 22:22:43.560134"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.597864"], ["updated_at", "2018-06-08 22:22:43.597864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.599306"], ["updated_at", "2018-06-08 22:22:43.599306"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.602104"], ["updated_at", "2018-06-08 22:22:43.602104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.605049"], ["updated_at", "2018-06-08 22:22:43.605049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.609835"], ["updated_at", "2018-06-08 22:22:43.609835"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.610913"], ["updated_at", "2018-06-08 22:22:43.610913"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.615966"], ["updated_at", "2018-06-08 22:22:43.615966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.617212"], ["updated_at", "2018-06-08 22:22:43.617212"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.620144"], ["updated_at", "2018-06-08 22:22:43.620144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.620974"], ["updated_at", "2018-06-08 22:22:43.620974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.621778"], ["updated_at", "2018-06-08 22:22:43.621778"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.624324"], ["updated_at", "2018-06-08 22:22:43.624324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.626564"], ["updated_at", "2018-06-08 22:22:43.626564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.629499"], ["updated_at", "2018-06-08 22:22:43.629499"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:22:43.637532"], ["updated_at", "2018-06-08 22:22:43.637532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:22:43.638524"], ["updated_at", "2018-06-08 22:22:43.638524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.639584"], ["updated_at", "2018-06-08 22:22:43.639584"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.641901"], ["updated_at", "2018-06-08 22:22:43.641901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.642822"], ["updated_at", "2018-06-08 22:22:43.642822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.645431"], ["updated_at", "2018-06-08 22:22:43.645431"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.652436"], ["updated_at", "2018-06-08 22:22:43.652436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.658422"], ["updated_at", "2018-06-08 22:22:43.658422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.663320"], ["updated_at", "2018-06-08 22:22:43.663320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.664748"], ["updated_at", "2018-06-08 22:22:43.664748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.678300"], ["updated_at", "2018-06-08 22:22:43.678300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.679324"], ["updated_at", "2018-06-08 22:22:43.679324"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.682161"], ["updated_at", "2018-06-08 22:22:43.682161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.684932"], ["updated_at", "2018-06-08 22:22:43.684932"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:22:43.690028"], ["updated_at", "2018-06-08 22:22:43.690028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:22:43.691265"], ["updated_at", "2018-06-08 22:22:43.691265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:22:43.693339"], ["updated_at", "2018-06-08 22:22:43.693339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:22:43.694338"], ["updated_at", "2018-06-08 22:22:43.694338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.714906"], ["updated_at", "2018-06-08 22:22:43.714906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:22:43.745802"], ["updated_at", "2018-06-08 22:22:43.745802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:22:43.748721"], ["updated_at", "2018-06-08 22:22:43.748721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.758288"], ["updated_at", "2018-06-08 22:22:43.758288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.759319"], ["updated_at", "2018-06-08 22:22:43.759319"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.762017"], ["updated_at", "2018-06-08 22:22:43.762017"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.763343"], ["updated_at", "2018-06-08 22:22:43.763343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.777839"], ["updated_at", "2018-06-08 22:22:43.777839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.778907"], ["updated_at", "2018-06-08 22:22:43.778907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.783151"], ["updated_at", "2018-06-08 22:22:43.783151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.787110"], ["updated_at", "2018-06-08 22:22:43.787110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.791523"], ["updated_at", "2018-06-08 22:22:43.791523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.792320"], ["updated_at", "2018-06-08 22:22:43.792320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.799091"], ["updated_at", "2018-06-08 22:22:43.799091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.808834"], ["updated_at", "2018-06-08 22:22:43.808834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:22:43.817636"], ["updated_at", "2018-06-08 22:22:43.817636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:22:43.818653"], ["updated_at", "2018-06-08 22:22:43.818653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:22:43.820350"], ["updated_at", "2018-06-08 22:22:43.820350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:22:43.821195"], ["updated_at", "2018-06-08 22:22:43.821195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:22:43.824417"], ["updated_at", "2018-06-08 22:22:43.824417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.826926"], ["updated_at", "2018-06-08 22:22:43.826926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.834936"], ["updated_at", "2018-06-08 22:22:43.834936"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.835953"], ["updated_at", "2018-06-08 22:22:43.835953"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:22:43.840526"], ["updated_at", "2018-06-08 22:22:43.840526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:22:43.842736"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:22:43.844482"], ["updated_at", "2018-06-08 22:22:43.844482"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:22:43.846125"], ["updated_at", "2018-06-08 22:22:43.846125"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.852630"], ["updated_at", "2018-06-08 22:22:43.852630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.853590"], ["updated_at", "2018-06-08 22:22:43.853590"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:22:43.857816"], ["updated_at", "2018-06-08 22:22:43.857816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.870991"], ["updated_at", "2018-06-08 22:22:43.870991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.871949"], ["updated_at", "2018-06-08 22:22:43.871949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.877366"], ["updated_at", "2018-06-08 22:22:43.877366"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.884861"], ["updated_at", "2018-06-08 22:22:43.884861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.903869"], ["updated_at", "2018-06-08 22:22:43.903869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.909846"], ["updated_at", "2018-06-08 22:22:43.909846"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.911826"], ["updated_at", "2018-06-08 22:22:43.911826"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.916090"], ["updated_at", "2018-06-08 22:22:43.916090"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.921082"], ["updated_at", "2018-06-08 22:22:43.921082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:22:43.922068"], ["updated_at", "2018-06-08 22:22:43.922068"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.925245"], ["updated_at", "2018-06-08 22:22:43.925245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.931857"], ["updated_at", "2018-06-08 22:22:43.931857"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.933422"], ["updated_at", "2018-06-08 22:22:43.933422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:43.934944"], ["updated_at", "2018-06-08 22:22:43.934944"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:22:43.941456"], ["updated_at", "2018-06-08 22:22:43.941456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:22:43.989595"], ["updated_at", "2018-06-08 22:22:43.989595"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:44.022282"], ["updated_at", "2018-06-08 22:22:44.022282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:22:44.032499"], ["updated_at", "2018-06-08 22:22:44.032499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:22:44.033616"], ["updated_at", "2018-06-08 22:22:44.033616"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:44.054449"], ["updated_at", "2018-06-08 22:22:44.054449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:44.059520"], ["updated_at", "2018-06-08 22:22:44.059520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:44.062672"], ["updated_at", "2018-06-08 22:22:44.062672"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.166241"], ["updated_at", "2018-06-08 22:22:57.166241"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.222241"], ["updated_at", "2018-06-08 22:22:57.222241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.237466"], ["updated_at", "2018-06-08 22:22:57.237466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.241607"], ["updated_at", "2018-06-08 22:22:57.241607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:22:57.257563"], ["updated_at", "2018-06-08 22:22:57.257563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:22:57.258622"], ["updated_at", "2018-06-08 22:22:57.258622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.2ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:22:57.299787"], ["updated_at", "2018-06-08 22:22:57.299787"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.396667"], ["updated_at", "2018-06-08 22:22:57.396667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.397861"], ["updated_at", "2018-06-08 22:22:57.397861"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 3) OR ("test_attrs_test_models_2"."id" = 3)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.405456"], ["updated_at", "2018-06-08 22:22:57.405456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.408387"], ["updated_at", "2018-06-08 22:22:57.408387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.410523"], ["updated_at", "2018-06-08 22:22:57.410523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:22:57.417012"], ["updated_at", "2018-06-08 22:22:57.417012"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.425699"], ["updated_at", "2018-06-08 22:22:57.425699"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.426716"], ["updated_at", "2018-06-08 22:22:57.426716"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.427527"], ["updated_at", "2018-06-08 22:22:57.427527"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.429939"], ["updated_at", "2018-06-08 22:22:57.429939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.430679"], ["updated_at", "2018-06-08 22:22:57.430679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.440216"], ["updated_at", "2018-06-08 22:22:57.440216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.441280"], ["updated_at", "2018-06-08 22:22:57.441280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.442156"], ["updated_at", "2018-06-08 22:22:57.442156"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:22:57.444946"], ["updated_at", "2018-06-08 22:22:57.444946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:22:57.445925"], ["updated_at", "2018-06-08 22:22:57.445925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.446695"], ["updated_at", "2018-06-08 22:22:57.446695"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.449002"], ["updated_at", "2018-06-08 22:22:57.449002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:22:57.450004"], ["updated_at", "2018-06-08 22:22:57.450004"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:22:57.453483"], ["updated_at", "2018-06-08 22:22:57.453483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:22:57.454608"], ["updated_at", "2018-06-08 22:22:57.454608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:22:57.456303"], ["updated_at", "2018-06-08 22:22:57.456303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:22:57.457097"], ["updated_at", "2018-06-08 22:22:57.457097"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.460642"], ["updated_at", "2018-06-08 22:22:57.460642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.461391"], ["updated_at", "2018-06-08 22:22:57.461391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.463440"], ["updated_at", "2018-06-08 22:22:57.463440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.466856"], ["updated_at", "2018-06-08 22:22:57.466856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.467771"], ["updated_at", "2018-06-08 22:22:57.467771"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.471411"], ["updated_at", "2018-06-08 22:22:57.471411"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.475559"], ["updated_at", "2018-06-08 22:22:57.475559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.480146"], ["updated_at", "2018-06-08 22:22:57.480146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.482912"], ["updated_at", "2018-06-08 22:22:57.482912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.489007"], ["updated_at", "2018-06-08 22:22:57.489007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.490102"], ["updated_at", "2018-06-08 22:22:57.490102"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.501510"], ["updated_at", "2018-06-08 22:22:57.501510"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:22:57.504584"], ["updated_at", "2018-06-08 22:22:57.504584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:22:57.505601"], ["updated_at", "2018-06-08 22:22:57.505601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:22:57.507551"], ["updated_at", "2018-06-08 22:22:57.507551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:22:57.508484"], ["updated_at", "2018-06-08 22:22:57.508484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.517058"], ["updated_at", "2018-06-08 22:22:57.517058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:22:57.522703"], ["updated_at", "2018-06-08 22:22:57.522703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:22:57.525221"], ["updated_at", "2018-06-08 22:22:57.525221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.534374"], ["updated_at", "2018-06-08 22:22:57.534374"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.536277"], ["updated_at", "2018-06-08 22:22:57.536277"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.539602"], ["updated_at", "2018-06-08 22:22:57.539602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.540695"], ["updated_at", "2018-06-08 22:22:57.540695"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.543510"], ["updated_at", "2018-06-08 22:22:57.543510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.553712"], ["updated_at", "2018-06-08 22:22:57.553712"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.555104"], ["updated_at", "2018-06-08 22:22:57.555104"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:22:57.562398"], ["updated_at", "2018-06-08 22:22:57.562398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.574889"], ["updated_at", "2018-06-08 22:22:57.574889"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.580903"], ["updated_at", "2018-06-08 22:22:57.580903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.587336"], ["updated_at", "2018-06-08 22:22:57.587336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:22:57.610214"], ["updated_at", "2018-06-08 22:22:57.610214"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.613017"], ["updated_at", "2018-06-08 22:22:57.613017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:22:57.618856"], ["updated_at", "2018-06-08 22:22:57.618856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:22:57.621145"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:22:57.622575"], ["updated_at", "2018-06-08 22:22:57.622575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:22:57.623812"], ["updated_at", "2018-06-08 22:22:57.623812"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.627950"], ["updated_at", "2018-06-08 22:22:57.627950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.629182"], ["updated_at", "2018-06-08 22:22:57.629182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.631765"], ["updated_at", "2018-06-08 22:22:57.631765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.641165"], ["updated_at", "2018-06-08 22:22:57.641165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.648032"], ["updated_at", "2018-06-08 22:22:57.648032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.660200"], ["updated_at", "2018-06-08 22:22:57.660200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.661083"], ["updated_at", "2018-06-08 22:22:57.661083"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.663681"], ["updated_at", "2018-06-08 22:22:57.663681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.666589"], ["updated_at", "2018-06-08 22:22:57.666589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.670830"], ["updated_at", "2018-06-08 22:22:57.670830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.673531"], ["updated_at", "2018-06-08 22:22:57.673531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.677042"], ["updated_at", "2018-06-08 22:22:57.677042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.678178"], ["updated_at", "2018-06-08 22:22:57.678178"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.690918"], ["updated_at", "2018-06-08 22:22:57.690918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.691892"], ["updated_at", "2018-06-08 22:22:57.691892"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.697819"], ["updated_at", "2018-06-08 22:22:57.697819"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.706086"], ["updated_at", "2018-06-08 22:22:57.706086"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.707278"], ["updated_at", "2018-06-08 22:22:57.707278"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.710216"], ["updated_at", "2018-06-08 22:22:57.710216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:22:57.711066"], ["updated_at", "2018-06-08 22:22:57.711066"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.806869"], ["updated_at", "2018-06-08 22:23:30.806869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.813487"], ["updated_at", "2018-06-08 22:23:30.813487"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.818678"], ["updated_at", "2018-06-08 22:23:30.818678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.819945"], ["updated_at", "2018-06-08 22:23:30.819945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:23:30.862883"], ["updated_at", "2018-06-08 22:23:30.862883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:23:30.872099"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:23:30.874009"], ["updated_at", "2018-06-08 22:23:30.874009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:23:30.875043"], ["updated_at", "2018-06-08 22:23:30.875043"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.879183"], ["updated_at", "2018-06-08 22:23:30.879183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:23:30.885292"], ["updated_at", "2018-06-08 22:23:30.885292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:23:30.886568"], ["updated_at", "2018-06-08 22:23:30.886568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:23:30.888898"], ["updated_at", "2018-06-08 22:23:30.888898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:23:30.889754"], ["updated_at", "2018-06-08 22:23:30.889754"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.893523"], ["updated_at", "2018-06-08 22:23:30.893523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.894357"], ["updated_at", "2018-06-08 22:23:30.894357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.899881"], ["updated_at", "2018-06-08 22:23:30.899881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.901481"], ["updated_at", "2018-06-08 22:23:30.901481"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.903076"], ["updated_at", "2018-06-08 22:23:30.903076"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.906602"], ["updated_at", "2018-06-08 22:23:30.906602"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.907904"], ["updated_at", "2018-06-08 22:23:30.907904"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.910195"], ["updated_at", "2018-06-08 22:23:30.910195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.912618"], ["updated_at", "2018-06-08 22:23:30.912618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.914854"], ["updated_at", "2018-06-08 22:23:30.914854"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.920392"], ["updated_at", "2018-06-08 22:23:30.920392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.927356"], ["updated_at", "2018-06-08 22:23:30.927356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.932765"], ["updated_at", "2018-06-08 22:23:30.932765"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:23:30.946028"], ["updated_at", "2018-06-08 22:23:30.946028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.952719"], ["updated_at", "2018-06-08 22:23:30.952719"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.954032"], ["updated_at", "2018-06-08 22:23:30.954032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.956747"], ["updated_at", "2018-06-08 22:23:30.956747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.963819"], ["updated_at", "2018-06-08 22:23:30.963819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:23:30.964863"], ["updated_at", "2018-06-08 22:23:30.964863"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.969546"], ["updated_at", "2018-06-08 22:23:30.969546"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.970759"], ["updated_at", "2018-06-08 22:23:30.970759"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.973844"], ["updated_at", "2018-06-08 22:23:30.973844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:23:30.978542"], ["updated_at", "2018-06-08 22:23:30.978542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:23:30.979398"], ["updated_at", "2018-06-08 22:23:30.979398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:23:30.981385"], ["updated_at", "2018-06-08 22:23:30.981385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:23:30.982643"], ["updated_at", "2018-06-08 22:23:30.982643"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.994432"], ["updated_at", "2018-06-08 22:23:30.994432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:30.995478"], ["updated_at", "2018-06-08 22:23:30.995478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:23:31.013236"], ["updated_at", "2018-06-08 22:23:31.013236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:23:31.016021"], ["updated_at", "2018-06-08 22:23:31.016021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.028325"], ["updated_at", "2018-06-08 22:23:31.028325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.029334"], ["updated_at", "2018-06-08 22:23:31.029334"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.035321"], ["updated_at", "2018-06-08 22:23:31.035321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.036824"], ["updated_at", "2018-06-08 22:23:31.036824"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.038614"], ["updated_at", "2018-06-08 22:23:31.038614"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.042884"], ["updated_at", "2018-06-08 22:23:31.042884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.043921"], ["updated_at", "2018-06-08 22:23:31.043921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.046600"], ["updated_at", "2018-06-08 22:23:31.046600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:23:31.065677"], ["updated_at", "2018-06-08 22:23:31.065677"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:23:31.067293"], ["updated_at", "2018-06-08 22:23:31.067293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.068741"], ["updated_at", "2018-06-08 22:23:31.068741"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.071730"], ["updated_at", "2018-06-08 22:23:31.071730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.072868"], ["updated_at", "2018-06-08 22:23:31.072868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.080194"], ["updated_at", "2018-06-08 22:23:31.080194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.089945"], ["updated_at", "2018-06-08 22:23:31.089945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.098198"], ["updated_at", "2018-06-08 22:23:31.098198"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.100016"], ["updated_at", "2018-06-08 22:23:31.100016"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.3ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:23:31.106060"], ["updated_at", "2018-06-08 22:23:31.106060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.118804"], ["updated_at", "2018-06-08 22:23:31.118804"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:23:31.122469"], ["updated_at", "2018-06-08 22:23:31.122469"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.131875"], ["updated_at", "2018-06-08 22:23:31.131875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.137878"], ["updated_at", "2018-06-08 22:23:31.137878"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.159074"], ["updated_at", "2018-06-08 22:23:31.159074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.161287"], ["updated_at", "2018-06-08 22:23:31.161287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.164669"], ["updated_at", "2018-06-08 22:23:31.164669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.170028"], ["updated_at", "2018-06-08 22:23:31.170028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.171156"], ["updated_at", "2018-06-08 22:23:31.171156"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.173183"], ["updated_at", "2018-06-08 22:23:31.173183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.176008"], ["updated_at", "2018-06-08 22:23:31.176008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.179762"], ["updated_at", "2018-06-08 22:23:31.179762"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.180598"], ["updated_at", "2018-06-08 22:23:31.180598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.190427"], ["updated_at", "2018-06-08 22:23:31.190427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.195214"], ["updated_at", "2018-06-08 22:23:31.195214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.196037"], ["updated_at", "2018-06-08 22:23:31.196037"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.198239"], ["updated_at", "2018-06-08 22:23:31.198239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.201122"], ["updated_at", "2018-06-08 22:23:31.201122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:23:31.253062"], ["updated_at", "2018-06-08 22:23:31.253062"]]  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.262358"], ["updated_at", "2018-06-08 22:23:31.262358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:23:31.290434"], ["updated_at", "2018-06-08 22:23:31.290434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:23:31.291589"], ["updated_at", "2018-06-08 22:23:31.291589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.315048"], ["updated_at", "2018-06-08 22:23:31.315048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.323789"], ["updated_at", "2018-06-08 22:23:31.323789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:23:31.327366"], ["updated_at", "2018-06-08 22:23:31.327366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (29.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 29ms (Views: 27.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.005797"], ["updated_at", "2018-06-08 22:25:31.005797"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.103082"], ["updated_at", "2018-06-08 22:25:31.103082"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.133397"], ["updated_at", "2018-06-08 22:25:31.133397"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.136011"], ["updated_at", "2018-06-08 22:25:31.136011"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:25:31.216587"], ["updated_at", "2018-06-08 22:25:31.216587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:25:31.218013"], ["updated_at", "2018-06-08 22:25:31.218013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:25:31.221338"], ["updated_at", "2018-06-08 22:25:31.221338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:25:31.222789"], ["updated_at", "2018-06-08 22:25:31.222789"]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:25:31.230123"], ["updated_at", "2018-06-08 22:25:31.230123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:25:31.231450"], ["updated_at", "2018-06-08 22:25:31.231450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.232594"], ["updated_at", "2018-06-08 22:25:31.232594"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.238875"], ["updated_at", "2018-06-08 22:25:31.238875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.242551"], ["updated_at", "2018-06-08 22:25:31.242551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.248543"], ["updated_at", "2018-06-08 22:25:31.248543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.255789"], ["updated_at", "2018-06-08 22:25:31.255789"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.257673"], ["updated_at", "2018-06-08 22:25:31.257673"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.261498"], ["updated_at", "2018-06-08 22:25:31.261498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.262772"], ["updated_at", "2018-06-08 22:25:31.262772"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.265675"], ["updated_at", "2018-06-08 22:25:31.265675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.266766"], ["updated_at", "2018-06-08 22:25:31.266766"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.269086"], ["updated_at", "2018-06-08 22:25:31.269086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.270340"], ["updated_at", "2018-06-08 22:25:31.270340"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.275038"], ["updated_at", "2018-06-08 22:25:31.275038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.276258"], ["updated_at", "2018-06-08 22:25:31.276258"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.280878"], ["updated_at", "2018-06-08 22:25:31.280878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.294268"], ["updated_at", "2018-06-08 22:25:31.294268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.295291"], ["updated_at", "2018-06-08 22:25:31.295291"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.305285"], ["updated_at", "2018-06-08 22:25:31.305285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:25:31.306727"], ["updated_at", "2018-06-08 22:25:31.306727"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.317564"], ["updated_at", "2018-06-08 22:25:31.317564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:25:31.326162"], ["updated_at", "2018-06-08 22:25:31.326162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.329407"], ["updated_at", "2018-06-08 22:25:31.329407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.336930"], ["updated_at", "2018-06-08 22:25:31.336930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.340075"], ["updated_at", "2018-06-08 22:25:31.340075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.342342"], ["updated_at", "2018-06-08 22:25:31.342342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.356373"], ["updated_at", "2018-06-08 22:25:31.356373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.359124"], ["updated_at", "2018-06-08 22:25:31.359124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:25:31.367504"], ["updated_at", "2018-06-08 22:25:31.367504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.381162"], ["updated_at", "2018-06-08 22:25:31.381162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.382305"], ["updated_at", "2018-06-08 22:25:31.382305"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.385992"], ["updated_at", "2018-06-08 22:25:31.385992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.387040"], ["updated_at", "2018-06-08 22:25:31.387040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.389634"], ["updated_at", "2018-06-08 22:25:31.389634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.395648"], ["updated_at", "2018-06-08 22:25:31.395648"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.408683"], ["updated_at", "2018-06-08 22:25:31.408683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.416874"], ["updated_at", "2018-06-08 22:25:31.416874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.424462"], ["updated_at", "2018-06-08 22:25:31.424462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.425785"], ["updated_at", "2018-06-08 22:25:31.425785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.430521"], ["updated_at", "2018-06-08 22:25:31.430521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.435205"], ["updated_at", "2018-06-08 22:25:31.435205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.443032"], ["updated_at", "2018-06-08 22:25:31.443032"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.445539"], ["updated_at", "2018-06-08 22:25:31.445539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.446696"], ["updated_at", "2018-06-08 22:25:31.446696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.447909"], ["updated_at", "2018-06-08 22:25:31.447909"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.450957"], ["updated_at", "2018-06-08 22:25:31.450957"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.451940"], ["updated_at", "2018-06-08 22:25:31.451940"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.465936"], ["updated_at", "2018-06-08 22:25:31.465936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.466980"], ["updated_at", "2018-06-08 22:25:31.466980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.467837"], ["updated_at", "2018-06-08 22:25:31.467837"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.471415"], ["updated_at", "2018-06-08 22:25:31.471415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:25:31.477937"], ["updated_at", "2018-06-08 22:25:31.477937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:25:31.479052"], ["updated_at", "2018-06-08 22:25:31.479052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:25:31.481340"], ["updated_at", "2018-06-08 22:25:31.481340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:25:31.482617"], ["updated_at", "2018-06-08 22:25:31.482617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.493343"], ["updated_at", "2018-06-08 22:25:31.493343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.494429"], ["updated_at", "2018-06-08 22:25:31.494429"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.509170"], ["updated_at", "2018-06-08 22:25:31.509170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.510320"], ["updated_at", "2018-06-08 22:25:31.510320"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:25:31.513307"], ["updated_at", "2018-06-08 22:25:31.513307"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:25:31.516295"], ["updated_at", "2018-06-08 22:25:31.516295"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.529832"], ["updated_at", "2018-06-08 22:25:31.529832"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:25:31.541670"], ["updated_at", "2018-06-08 22:25:31.541670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:25:31.552765"], ["updated_at", "2018-06-08 22:25:31.552765"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:25:31.555247"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:25:31.557932"], ["updated_at", "2018-06-08 22:25:31.557932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:25:31.559265"], ["updated_at", "2018-06-08 22:25:31.559265"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.564599"], ["updated_at", "2018-06-08 22:25:31.564599"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.571358"], ["updated_at", "2018-06-08 22:25:31.571358"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.572990"], ["updated_at", "2018-06-08 22:25:31.572990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:25:31.651634"], ["updated_at", "2018-06-08 22:25:31.651634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:25:31.652692"], ["updated_at", "2018-06-08 22:25:31.652692"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms)[0m begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.672987"], ["updated_at", "2018-06-08 22:25:31.672987"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.693881"], ["updated_at", "2018-06-08 22:25:31.693881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.701141"], ["updated_at", "2018-06-08 22:25:31.701141"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:31.705402"], ["updated_at", "2018-06-08 22:25:31.705402"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:25:31.727532"], ["updated_at", "2018-06-08 22:25:31.727532"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:25:45.876022"], ["updated_at", "2018-06-08 22:25:45.876022"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:45.897215"], ["updated_at", "2018-06-08 22:25:45.897215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:45.906650"], ["updated_at", "2018-06-08 22:25:45.906650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:45.910879"], ["updated_at", "2018-06-08 22:25:45.910879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:25:45.945582"], ["updated_at", "2018-06-08 22:25:45.945582"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:25:45.947569"], ["updated_at", "2018-06-08 22:25:45.947569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:45.990713"], ["updated_at", "2018-06-08 22:25:45.990713"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:25:46.023931"], ["updated_at", "2018-06-08 22:25:46.023931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:25:46.025087"], ["updated_at", "2018-06-08 22:25:46.025087"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.026201"], ["updated_at", "2018-06-08 22:25:46.026201"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:25:46.029704"], ["updated_at", "2018-06-08 22:25:46.029704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:25:46.031119"], ["updated_at", "2018-06-08 22:25:46.031119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:25:46.034081"], ["updated_at", "2018-06-08 22:25:46.034081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:25:46.035542"], ["updated_at", "2018-06-08 22:25:46.035542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.049882"], ["updated_at", "2018-06-08 22:25:46.049882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.051062"], ["updated_at", "2018-06-08 22:25:46.051062"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.054359"], ["updated_at", "2018-06-08 22:25:46.054359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.055343"], ["updated_at", "2018-06-08 22:25:46.055343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.6ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:25:46.064985"], ["updated_at", "2018-06-08 22:25:46.064985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.068376"], ["updated_at", "2018-06-08 22:25:46.068376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.073756"], ["updated_at", "2018-06-08 22:25:46.073756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.075024"], ["updated_at", "2018-06-08 22:25:46.075024"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.079804"], ["updated_at", "2018-06-08 22:25:46.079804"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.081711"], ["updated_at", "2018-06-08 22:25:46.081711"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.085923"], ["updated_at", "2018-06-08 22:25:46.085923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.094052"], ["updated_at", "2018-06-08 22:25:46.094052"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.103724"], ["updated_at", "2018-06-08 22:25:46.103724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.106692"], ["updated_at", "2018-06-08 22:25:46.106692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.109573"], ["updated_at", "2018-06-08 22:25:46.109573"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.115322"], ["updated_at", "2018-06-08 22:25:46.115322"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.118102"], ["updated_at", "2018-06-08 22:25:46.118102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:25:46.126489"], ["updated_at", "2018-06-08 22:25:46.126489"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:25:46.130513"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:25:46.132262"], ["updated_at", "2018-06-08 22:25:46.132262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:25:46.133436"], ["updated_at", "2018-06-08 22:25:46.133436"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.139313"], ["updated_at", "2018-06-08 22:25:46.139313"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.146236"], ["updated_at", "2018-06-08 22:25:46.146236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.147594"], ["updated_at", "2018-06-08 22:25:46.147594"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.150633"], ["updated_at", "2018-06-08 22:25:46.150633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.3ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.162103"], ["updated_at", "2018-06-08 22:25:46.162103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:25:46.163550"], ["updated_at", "2018-06-08 22:25:46.163550"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.168403"], ["updated_at", "2018-06-08 22:25:46.168403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.175400"], ["updated_at", "2018-06-08 22:25:46.175400"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.177540"], ["updated_at", "2018-06-08 22:25:46.177540"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.193661"], ["updated_at", "2018-06-08 22:25:46.193661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.200207"], ["updated_at", "2018-06-08 22:25:46.200207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.207177"], ["updated_at", "2018-06-08 22:25:46.207177"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.210842"], ["updated_at", "2018-06-08 22:25:46.210842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.212741"], ["updated_at", "2018-06-08 22:25:46.212741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.226943"], ["updated_at", "2018-06-08 22:25:46.226943"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:25:46.233764"], ["updated_at", "2018-06-08 22:25:46.233764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:25:46.237717"], ["updated_at", "2018-06-08 22:25:46.237717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.258775"], ["updated_at", "2018-06-08 22:25:46.258775"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.260669"], ["updated_at", "2018-06-08 22:25:46.260669"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:25:46.268026"], ["updated_at", "2018-06-08 22:25:46.268026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.283044"], ["updated_at", "2018-06-08 22:25:46.283044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.284414"], ["updated_at", "2018-06-08 22:25:46.284414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:25:46.299139"], ["updated_at", "2018-06-08 22:25:46.299139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.304182"], ["updated_at", "2018-06-08 22:25:46.304182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.306892"], ["updated_at", "2018-06-08 22:25:46.306892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.311720"], ["updated_at", "2018-06-08 22:25:46.311720"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.313332"], ["updated_at", "2018-06-08 22:25:46.313332"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.314633"], ["updated_at", "2018-06-08 22:25:46.314633"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:25:46.335434"], ["updated_at", "2018-06-08 22:25:46.335434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:25:46.336546"], ["updated_at", "2018-06-08 22:25:46.336546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:25:46.338624"], ["updated_at", "2018-06-08 22:25:46.338624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:25:46.339640"], ["updated_at", "2018-06-08 22:25:46.339640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.349471"], ["updated_at", "2018-06-08 22:25:46.349471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.350585"], ["updated_at", "2018-06-08 22:25:46.350585"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.353845"], ["updated_at", "2018-06-08 22:25:46.353845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.354847"], ["updated_at", "2018-06-08 22:25:46.354847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.362027"], ["updated_at", "2018-06-08 22:25:46.362027"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.371300"], ["updated_at", "2018-06-08 22:25:46.371300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.372328"], ["updated_at", "2018-06-08 22:25:46.372328"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.374625"], ["updated_at", "2018-06-08 22:25:46.374625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.378771"], ["updated_at", "2018-06-08 22:25:46.378771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.383625"], ["updated_at", "2018-06-08 22:25:46.383625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.384668"], ["updated_at", "2018-06-08 22:25:46.384668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.387617"], ["updated_at", "2018-06-08 22:25:46.387617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.391922"], ["updated_at", "2018-06-08 22:25:46.391922"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.393132"], ["updated_at", "2018-06-08 22:25:46.393132"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.396610"], ["updated_at", "2018-06-08 22:25:46.396610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.401183"], ["updated_at", "2018-06-08 22:25:46.401183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.417721"], ["updated_at", "2018-06-08 22:25:46.417721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.418801"], ["updated_at", "2018-06-08 22:25:46.418801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:46.419947"], ["updated_at", "2018-06-08 22:25:46.419947"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.3ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:56.720479"], ["updated_at", "2018-06-08 22:25:56.720479"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:56.756481"], ["updated_at", "2018-06-08 22:25:56.756481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:56.760926"], ["updated_at", "2018-06-08 22:25:56.760926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:56.777786"], ["updated_at", "2018-06-08 22:25:56.777786"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:25:56.848434"], ["updated_at", "2018-06-08 22:25:56.848434"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:25:56.850373"], ["updated_at", "2018-06-08 22:25:56.850373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:25:56.880387"], ["updated_at", "2018-06-08 22:25:56.880387"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.044421"], ["updated_at", "2018-06-08 22:25:57.044421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.045805"], ["updated_at", "2018-06-08 22:25:57.045805"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.050560"], ["updated_at", "2018-06-08 22:25:57.050560"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.052286"], ["updated_at", "2018-06-08 22:25:57.052286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.056721"], ["updated_at", "2018-06-08 22:25:57.056721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.061302"], ["updated_at", "2018-06-08 22:25:57.061302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.064267"], ["updated_at", "2018-06-08 22:25:57.064267"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:25:57.070419"], ["updated_at", "2018-06-08 22:25:57.070419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:25:57.071571"], ["updated_at", "2018-06-08 22:25:57.071571"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:25:57.074557"], ["updated_at", "2018-06-08 22:25:57.074557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:25:57.075686"], ["updated_at", "2018-06-08 22:25:57.075686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.084339"], ["updated_at", "2018-06-08 22:25:57.084339"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:25:57.085848"], ["updated_at", "2018-06-08 22:25:57.085848"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.091681"], ["updated_at", "2018-06-08 22:25:57.091681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.099742"], ["updated_at", "2018-06-08 22:25:57.099742"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.101523"], ["updated_at", "2018-06-08 22:25:57.101523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.111648"], ["updated_at", "2018-06-08 22:25:57.111648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.112799"], ["updated_at", "2018-06-08 22:25:57.112799"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.117023"], ["updated_at", "2018-06-08 22:25:57.117023"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.124928"], ["updated_at", "2018-06-08 22:25:57.124928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.126189"], ["updated_at", "2018-06-08 22:25:57.126189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.127212"], ["updated_at", "2018-06-08 22:25:57.127212"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.130922"], ["updated_at", "2018-06-08 22:25:57.130922"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.140869"], ["updated_at", "2018-06-08 22:25:57.140869"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.142359"], ["updated_at", "2018-06-08 22:25:57.142359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:25:57.158283"], ["updated_at", "2018-06-08 22:25:57.158283"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.175784"], ["updated_at", "2018-06-08 22:25:57.175784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.210031"], ["updated_at", "2018-06-08 22:25:57.210031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.211302"], ["updated_at", "2018-06-08 22:25:57.211302"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.215869"], ["updated_at", "2018-06-08 22:25:57.215869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.217303"], ["updated_at", "2018-06-08 22:25:57.217303"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.248297"], ["updated_at", "2018-06-08 22:25:57.248297"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.260876"], ["updated_at", "2018-06-08 22:25:57.260876"]]  (0.1ms) commit transaction  (0.9ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.277436"], ["updated_at", "2018-06-08 22:25:57.277436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:25:57.289919"], ["updated_at", "2018-06-08 22:25:57.289919"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:25:57.294750"], ["updated_at", "2018-06-08 22:25:57.294750"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.5ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:25:57.334820"], ["updated_at", "2018-06-08 22:25:57.334820"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:25:57.337596"], ["updated_at", "2018-06-08 22:25:57.337596"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.362635"], ["updated_at", "2018-06-08 22:25:57.362635"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.375263"], ["updated_at", "2018-06-08 22:25:57.375263"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.424276"], ["updated_at", "2018-06-08 22:25:57.424276"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.426909"], ["updated_at", "2018-06-08 22:25:57.426909"]]  (0.2ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.439909"], ["updated_at", "2018-06-08 22:25:57.439909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.444887"], ["updated_at", "2018-06-08 22:25:57.444887"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.480858"], ["updated_at", "2018-06-08 22:25:57.480858"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.504730"], ["updated_at", "2018-06-08 22:25:57.504730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.514338"], ["updated_at", "2018-06-08 22:25:57.514338"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.522502"], ["updated_at", "2018-06-08 22:25:57.522502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.540602"], ["updated_at", "2018-06-08 22:25:57.540602"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.543897"], ["updated_at", "2018-06-08 22:25:57.543897"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.548558"], ["updated_at", "2018-06-08 22:25:57.548558"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.563840"], ["updated_at", "2018-06-08 22:25:57.563840"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:25:57.584953"], ["updated_at", "2018-06-08 22:25:57.584953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.598099"], ["updated_at", "2018-06-08 22:25:57.598099"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.731777"], ["updated_at", "2018-06-08 22:25:57.731777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.733234"], ["updated_at", "2018-06-08 22:25:57.733234"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.737608"], ["updated_at", "2018-06-08 22:25:57.737608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.744962"], ["updated_at", "2018-06-08 22:25:57.744962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.756036"], ["updated_at", "2018-06-08 22:25:57.756036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.757229"], ["updated_at", "2018-06-08 22:25:57.757229"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:25:57.765670"], ["updated_at", "2018-06-08 22:25:57.765670"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.785635"], ["updated_at", "2018-06-08 22:25:57.785635"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.786996"], ["updated_at", "2018-06-08 22:25:57.786996"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.789698"], ["updated_at", "2018-06-08 22:25:57.789698"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:25:57.795156"], ["updated_at", "2018-06-08 22:25:57.795156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:25:57.796310"], ["updated_at", "2018-06-08 22:25:57.796310"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.798107"], ["updated_at", "2018-06-08 22:25:57.798107"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.801666"], ["updated_at", "2018-06-08 22:25:57.801666"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.803387"], ["updated_at", "2018-06-08 22:25:57.803387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:25:57.820470"], ["updated_at", "2018-06-08 22:25:57.820470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:25:57.822171"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:25:57.823736"], ["updated_at", "2018-06-08 22:25:57.823736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:25:57.824917"], ["updated_at", "2018-06-08 22:25:57.824917"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.829542"], ["updated_at", "2018-06-08 22:25:57.829542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.841783"], ["updated_at", "2018-06-08 22:25:57.841783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:25:57.848650"], ["updated_at", "2018-06-08 22:25:57.848650"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:25:57.853434"], ["updated_at", "2018-06-08 22:25:57.853434"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.867246"], ["updated_at", "2018-06-08 22:25:57.867246"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:25:57.869080"], ["updated_at", "2018-06-08 22:25:57.869080"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:26.697802"], ["updated_at", "2018-06-08 22:26:26.697802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 9], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:26.801350"], ["updated_at", "2018-06-08 22:26:26.801350"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:26.820954"], ["updated_at", "2018-06-08 22:26:26.820954"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:26.826932"], ["updated_at", "2018-06-08 22:26:26.826932"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:26:26.849470"], ["updated_at", "2018-06-08 22:26:26.849470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:26:26.850953"], ["updated_at", "2018-06-08 22:26:26.850953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.4ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:26:26.908502"], ["updated_at", "2018-06-08 22:26:26.908502"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.068486"], ["updated_at", "2018-06-08 22:26:27.068486"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.073118"], ["updated_at", "2018-06-08 22:26:27.073118"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.081551"], ["updated_at", "2018-06-08 22:26:27.081551"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.083532"], ["updated_at", "2018-06-08 22:26:27.083532"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.096505"], ["updated_at", "2018-06-08 22:26:27.096505"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.098472"], ["updated_at", "2018-06-08 22:26:27.098472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.100411"], ["updated_at", "2018-06-08 22:26:27.100411"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.107437"], ["updated_at", "2018-06-08 22:26:27.107437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.119321"], ["updated_at", "2018-06-08 22:26:27.119321"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.123002"], ["updated_at", "2018-06-08 22:26:27.123002"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.135649"], ["updated_at", "2018-06-08 22:26:27.135649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.144923"], ["updated_at", "2018-06-08 22:26:27.144923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.146267"], ["updated_at", "2018-06-08 22:26:27.146267"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.150222"], ["updated_at", "2018-06-08 22:26:27.150222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.155348"], ["updated_at", "2018-06-08 22:26:27.155348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.163267"], ["updated_at", "2018-06-08 22:26:27.163267"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.165411"], ["updated_at", "2018-06-08 22:26:27.165411"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.169872"], ["updated_at", "2018-06-08 22:26:27.169872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.178087"], ["updated_at", "2018-06-08 22:26:27.178087"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.185381"], ["updated_at", "2018-06-08 22:26:27.185381"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.194220"], ["updated_at", "2018-06-08 22:26:27.194220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.195905"], ["updated_at", "2018-06-08 22:26:27.195905"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.197593"], ["updated_at", "2018-06-08 22:26:27.197593"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.202654"], ["updated_at", "2018-06-08 22:26:27.202654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.203910"], ["updated_at", "2018-06-08 22:26:27.203910"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:26:27.207133"], ["updated_at", "2018-06-08 22:26:27.207133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.211415"], ["updated_at", "2018-06-08 22:26:27.211415"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.222291"], ["updated_at", "2018-06-08 22:26:27.222291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.223707"], ["updated_at", "2018-06-08 22:26:27.223707"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.228549"], ["updated_at", "2018-06-08 22:26:27.228549"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.233956"], ["updated_at", "2018-06-08 22:26:27.233956"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:26:27.239563"], ["updated_at", "2018-06-08 22:26:27.239563"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:26:27.241631"], ["updated_at", "2018-06-08 22:26:27.241631"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.243984"], ["updated_at", "2018-06-08 22:26:27.243984"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.249255"], ["updated_at", "2018-06-08 22:26:27.249255"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.259546"], ["updated_at", "2018-06-08 22:26:27.259546"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.271764"], ["updated_at", "2018-06-08 22:26:27.271764"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.273055"], ["updated_at", "2018-06-08 22:26:27.273055"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.304602"], ["updated_at", "2018-06-08 22:26:27.304602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.306160"], ["updated_at", "2018-06-08 22:26:27.306160"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.311326"], ["updated_at", "2018-06-08 22:26:27.311326"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.319170"], ["updated_at", "2018-06-08 22:26:27.319170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.320454"], ["updated_at", "2018-06-08 22:26:27.320454"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.340136"], ["updated_at", "2018-06-08 22:26:27.340136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.341658"], ["updated_at", "2018-06-08 22:26:27.341658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.7ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.362697"], ["updated_at", "2018-06-08 22:26:27.362697"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.364968"], ["updated_at", "2018-06-08 22:26:27.364968"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.2ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:26:27.426005"], ["updated_at", "2018-06-08 22:26:27.426005"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:26:27.436083"], ["updated_at", "2018-06-08 22:26:27.436083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:26:27.440009"], ["updated_at", "2018-06-08 22:26:27.440009"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.458655"], ["updated_at", "2018-06-08 22:26:27.458655"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.460716"], ["updated_at", "2018-06-08 22:26:27.460716"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.466743"], ["updated_at", "2018-06-08 22:26:27.466743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:26:27.486145"], ["updated_at", "2018-06-08 22:26:27.486145"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:26:27.490087"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:26:27.492805"], ["updated_at", "2018-06-08 22:26:27.492805"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:26:27.495635"], ["updated_at", "2018-06-08 22:26:27.495635"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:26:27.506475"], ["updated_at", "2018-06-08 22:26:27.506475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:26:27.524835"], ["updated_at", "2018-06-08 22:26:27.524835"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:26:27.526953"], ["updated_at", "2018-06-08 22:26:27.526953"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:26:27.531244"], ["updated_at", "2018-06-08 22:26:27.531244"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:26:27.533320"], ["updated_at", "2018-06-08 22:26:27.533320"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.549834"], ["updated_at", "2018-06-08 22:26:27.549834"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.551895"], ["updated_at", "2018-06-08 22:26:27.551895"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:26:27.555723"], ["updated_at", "2018-06-08 22:26:27.555723"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:26:27.556991"], ["updated_at", "2018-06-08 22:26:27.556991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:26:27.560057"], ["updated_at", "2018-06-08 22:26:27.560057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:26:27.561808"], ["updated_at", "2018-06-08 22:26:27.561808"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.568511"], ["updated_at", "2018-06-08 22:26:27.568511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.569802"], ["updated_at", "2018-06-08 22:26:27.569802"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.572945"], ["updated_at", "2018-06-08 22:26:27.572945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.577589"], ["updated_at", "2018-06-08 22:26:27.577589"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.584519"], ["updated_at", "2018-06-08 22:26:27.584519"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:26:27.586168"], ["updated_at", "2018-06-08 22:26:27.586168"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.589733"], ["updated_at", "2018-06-08 22:26:27.589733"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.593285"], ["updated_at", "2018-06-08 22:26:27.593285"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.597589"], ["updated_at", "2018-06-08 22:26:27.597589"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.615383"], ["updated_at", "2018-06-08 22:26:27.615383"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:26:27.617168"], ["updated_at", "2018-06-08 22:26:27.617168"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models" ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (1.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:48.922741"], ["updated_at", "2018-06-08 22:27:48.922741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:48.936702"], ["updated_at", "2018-06-08 22:27:48.936702"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:48.952829"], ["updated_at", "2018-06-08 22:27:48.952829"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:48.955349"], ["updated_at", "2018-06-08 22:27:48.955349"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.020930"], ["updated_at", "2018-06-08 22:27:49.020930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.041296"], ["updated_at", "2018-06-08 22:27:49.041296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.042801"], ["updated_at", "2018-06-08 22:27:49.042801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.044246"], ["updated_at", "2018-06-08 22:27:49.044246"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.048927"], ["updated_at", "2018-06-08 22:27:49.048927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.050515"], ["updated_at", "2018-06-08 22:27:49.050515"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.053677"], ["updated_at", "2018-06-08 22:27:49.053677"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.056805"], ["updated_at", "2018-06-08 22:27:49.056805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.058419"], ["updated_at", "2018-06-08 22:27:49.058419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:27:49.087719"], ["updated_at", "2018-06-08 22:27:49.087719"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.113934"], ["updated_at", "2018-06-08 22:27:49.113934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.124864"], ["updated_at", "2018-06-08 22:27:49.124864"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.137901"], ["updated_at", "2018-06-08 22:27:49.137901"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.140433"], ["updated_at", "2018-06-08 22:27:49.140433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.142010"], ["updated_at", "2018-06-08 22:27:49.142010"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.148287"], ["updated_at", "2018-06-08 22:27:49.148287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.150131"], ["updated_at", "2018-06-08 22:27:49.150131"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.4ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.155948"], ["updated_at", "2018-06-08 22:27:49.155948"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:27:49.163572"], ["updated_at", "2018-06-08 22:27:49.163572"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:27:49.168788"], ["updated_at", "2018-06-08 22:27:49.168788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:27:49.187634"], ["updated_at", "2018-06-08 22:27:49.187634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:27:49.189819"], ["updated_at", "2018-06-08 22:27:49.189819"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:27:49.194074"], ["updated_at", "2018-06-08 22:27:49.194074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:27:49.195924"], ["updated_at", "2018-06-08 22:27:49.195924"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.203693"], ["updated_at", "2018-06-08 22:27:49.203693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.205406"], ["updated_at", "2018-06-08 22:27:49.205406"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.224436"], ["updated_at", "2018-06-08 22:27:49.224436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.227772"], ["updated_at", "2018-06-08 22:27:49.227772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.235689"], ["updated_at", "2018-06-08 22:27:49.235689"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.237865"], ["updated_at", "2018-06-08 22:27:49.237865"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.242767"], ["updated_at", "2018-06-08 22:27:49.242767"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.255159"], ["updated_at", "2018-06-08 22:27:49.255159"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.257069"], ["updated_at", "2018-06-08 22:27:49.257069"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.264885"], ["updated_at", "2018-06-08 22:27:49.264885"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:27:49.278614"], ["updated_at", "2018-06-08 22:27:49.278614"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:27:49.281892"], ["updated_at", "2018-06-08 22:27:49.281892"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:27:49.285754"], ["updated_at", "2018-06-08 22:27:49.285754"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:27:49.287912"], ["updated_at", "2018-06-08 22:27:49.287912"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.8ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.303829"], ["updated_at", "2018-06-08 22:27:49.303829"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.308692"], ["updated_at", "2018-06-08 22:27:49.308692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.315560"], ["updated_at", "2018-06-08 22:27:49.315560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.316987"], ["updated_at", "2018-06-08 22:27:49.316987"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.321586"], ["updated_at", "2018-06-08 22:27:49.321586"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.326357"], ["updated_at", "2018-06-08 22:27:49.326357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.330128"], ["updated_at", "2018-06-08 22:27:49.330128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.335945"], ["updated_at", "2018-06-08 22:27:49.335945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:27:49.343112"], ["updated_at", "2018-06-08 22:27:49.343112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:27:49.344677"], ["updated_at", "2018-06-08 22:27:49.344677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.346361"], ["updated_at", "2018-06-08 22:27:49.346361"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.360308"], ["updated_at", "2018-06-08 22:27:49.360308"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.373255"], ["updated_at", "2018-06-08 22:27:49.373255"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.375364"], ["updated_at", "2018-06-08 22:27:49.375364"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.378749"], ["updated_at", "2018-06-08 22:27:49.378749"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:27:49.393314"], ["updated_at", "2018-06-08 22:27:49.393314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:27:49.395662"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:27:49.398626"], ["updated_at", "2018-06-08 22:27:49.398626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:27:49.400303"], ["updated_at", "2018-06-08 22:27:49.400303"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.424686"], ["updated_at", "2018-06-08 22:27:49.424686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.426255"], ["updated_at", "2018-06-08 22:27:49.426255"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.4ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:27:49.447500"], ["updated_at", "2018-06-08 22:27:49.447500"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.486457"], ["updated_at", "2018-06-08 22:27:49.486457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.488330"], ["updated_at", "2018-06-08 22:27:49.488330"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.493985"], ["updated_at", "2018-06-08 22:27:49.493985"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:27:49.496104"], ["updated_at", "2018-06-08 22:27:49.496104"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.502029"], ["updated_at", "2018-06-08 22:27:49.502029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.503680"], ["updated_at", "2018-06-08 22:27:49.503680"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.517313"], ["updated_at", "2018-06-08 22:27:49.517313"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.522440"], ["updated_at", "2018-06-08 22:27:49.522440"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.545771"], ["updated_at", "2018-06-08 22:27:49.545771"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.561688"], ["updated_at", "2018-06-08 22:27:49.561688"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.575951"], ["updated_at", "2018-06-08 22:27:49.575951"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.577285"], ["updated_at", "2018-06-08 22:27:49.577285"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.582899"], ["updated_at", "2018-06-08 22:27:49.582899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:27:49.589758"], ["updated_at", "2018-06-08 22:27:49.589758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.594101"], ["updated_at", "2018-06-08 22:27:49.594101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:49.916033"], ["updated_at", "2018-06-08 22:27:49.916033"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:27:49.975495"], ["updated_at", "2018-06-08 22:27:49.975495"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:27:49.985228"], ["updated_at", "2018-06-08 22:27:49.985228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:27:49.986940"], ["updated_at", "2018-06-08 22:27:49.986940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:50.012169"], ["updated_at", "2018-06-08 22:27:50.012169"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:50.022456"], ["updated_at", "2018-06-08 22:27:50.022456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:27:50.027826"], ["updated_at", "2018-06-08 22:27:50.027826"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (1.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 6.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.4ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:34:09.486340"], ["updated_at", "2018-06-08 22:34:09.486340"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.504215"], ["updated_at", "2018-06-08 22:34:09.504215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.516251"], ["updated_at", "2018-06-08 22:34:09.516251"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.522183"], ["updated_at", "2018-06-08 22:34:09.522183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.576333"], ["updated_at", "2018-06-08 22:34:09.576333"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:34:09.590206"], ["updated_at", "2018-06-08 22:34:09.590206"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:34:09.591701"], ["updated_at", "2018-06-08 22:34:09.591701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.8ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 15ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.744851"], ["updated_at", "2018-06-08 22:34:09.744851"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:34:09.758685"], ["updated_at", "2018-06-08 22:34:09.758685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.763872"], ["updated_at", "2018-06-08 22:34:09.763872"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.799206"], ["updated_at", "2018-06-08 22:34:09.799206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.802748"], ["updated_at", "2018-06-08 22:34:09.802748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.808591"], ["updated_at", "2018-06-08 22:34:09.808591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.839280"], ["updated_at", "2018-06-08 22:34:09.839280"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.841061"], ["updated_at", "2018-06-08 22:34:09.841061"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.845563"], ["updated_at", "2018-06-08 22:34:09.845563"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.855244"], ["updated_at", "2018-06-08 22:34:09.855244"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.863854"], ["updated_at", "2018-06-08 22:34:09.863854"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.866301"], ["updated_at", "2018-06-08 22:34:09.866301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.868227"], ["updated_at", "2018-06-08 22:34:09.868227"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.872767"], ["updated_at", "2018-06-08 22:34:09.872767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.874076"], ["updated_at", "2018-06-08 22:34:09.874076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.889735"], ["updated_at", "2018-06-08 22:34:09.889735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.900236"], ["updated_at", "2018-06-08 22:34:09.900236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.909855"], ["updated_at", "2018-06-08 22:34:09.909855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.911223"], ["updated_at", "2018-06-08 22:34:09.911223"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.913161"], ["updated_at", "2018-06-08 22:34:09.913161"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.918578"], ["updated_at", "2018-06-08 22:34:09.918578"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.920012"], ["updated_at", "2018-06-08 22:34:09.920012"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.941932"], ["updated_at", "2018-06-08 22:34:09.941932"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.943320"], ["updated_at", "2018-06-08 22:34:09.943320"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.946354"], ["updated_at", "2018-06-08 22:34:09.946354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.953639"], ["updated_at", "2018-06-08 22:34:09.953639"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.955673"], ["updated_at", "2018-06-08 22:34:09.955673"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.961616"], ["updated_at", "2018-06-08 22:34:09.961616"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.969912"], ["updated_at", "2018-06-08 22:34:09.969912"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.972191"], ["updated_at", "2018-06-08 22:34:09.972191"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.976687"], ["updated_at", "2018-06-08 22:34:09.976687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.977927"], ["updated_at", "2018-06-08 22:34:09.977927"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.982482"], ["updated_at", "2018-06-08 22:34:09.982482"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.984033"], ["updated_at", "2018-06-08 22:34:09.984033"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:34:09.993397"], ["updated_at", "2018-06-08 22:34:09.993397"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:34:09.994916"], ["updated_at", "2018-06-08 22:34:09.994916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:09.996362"], ["updated_at", "2018-06-08 22:34:09.996362"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.004940"], ["updated_at", "2018-06-08 22:34:10.004940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.009232"], ["updated_at", "2018-06-08 22:34:10.009232"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.016759"], ["updated_at", "2018-06-08 22:34:10.016759"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.018413"], ["updated_at", "2018-06-08 22:34:10.018413"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.022932"], ["updated_at", "2018-06-08 22:34:10.022932"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.029702"], ["updated_at", "2018-06-08 22:34:10.029702"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.031491"], ["updated_at", "2018-06-08 22:34:10.031491"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.054895"], ["updated_at", "2018-06-08 22:34:10.054895"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.056314"], ["updated_at", "2018-06-08 22:34:10.056314"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.059355"], ["updated_at", "2018-06-08 22:34:10.059355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.5ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (1.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.086588"], ["updated_at", "2018-06-08 22:34:10.086588"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.090954"], ["updated_at", "2018-06-08 22:34:10.090954"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.092401"], ["updated_at", "2018-06-08 22:34:10.092401"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.096623"], ["updated_at", "2018-06-08 22:34:10.096623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.100917"], ["updated_at", "2018-06-08 22:34:10.100917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.104178"], ["updated_at", "2018-06-08 22:34:10.104178"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:34:10.120292"], ["updated_at", "2018-06-08 22:34:10.120292"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:34:10.128993"], ["updated_at", "2018-06-08 22:34:10.128993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:34:10.133578"], ["updated_at", "2018-06-08 22:34:10.133578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:34:10.150326"], ["updated_at", "2018-06-08 22:34:10.150326"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:34:10.152188"], ["updated_at", "2018-06-08 22:34:10.152188"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:34:10.156372"], ["updated_at", "2018-06-08 22:34:10.156372"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:34:10.158352"], ["updated_at", "2018-06-08 22:34:10.158352"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.180169"], ["updated_at", "2018-06-08 22:34:10.180169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.188369"], ["updated_at", "2018-06-08 22:34:10.188369"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.193008"], ["updated_at", "2018-06-08 22:34:10.193008"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:34:10.198765"], ["updated_at", "2018-06-08 22:34:10.198765"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:34:10.200325"], ["updated_at", "2018-06-08 22:34:10.200325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:34:10.203235"], ["updated_at", "2018-06-08 22:34:10.203235"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:34:10.204792"], ["updated_at", "2018-06-08 22:34:10.204792"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.212982"], ["updated_at", "2018-06-08 22:34:10.212982"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:34:10.215137"], ["updated_at", "2018-06-08 22:34:10.215137"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.222559"], ["updated_at", "2018-06-08 22:34:10.222559"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:34:10.239457"], ["updated_at", "2018-06-08 22:34:10.239457"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:34:10.243342"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:34:10.245690"], ["updated_at", "2018-06-08 22:34:10.245690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:34:10.247258"], ["updated_at", "2018-06-08 22:34:10.247258"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:34:10.259148"], ["updated_at", "2018-06-08 22:34:10.259148"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.286556"], ["updated_at", "2018-06-08 22:34:10.286556"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.288859"], ["updated_at", "2018-06-08 22:34:10.288859"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.300508"], ["updated_at", "2018-06-08 22:34:10.300508"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:10.302028"], ["updated_at", "2018-06-08 22:34:10.302028"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.8ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:51.923885"], ["updated_at", "2018-06-08 22:34:51.923885"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:51.969591"], ["updated_at", "2018-06-08 22:34:51.969591"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:34:51.973691"], ["updated_at", "2018-06-08 22:34:51.973691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:34:51.975420"], ["updated_at", "2018-06-08 22:34:51.975420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:34:51.979090"], ["updated_at", "2018-06-08 22:34:51.979090"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:34:51.981361"], ["updated_at", "2018-06-08 22:34:51.981361"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.3ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:51.995127"], ["updated_at", "2018-06-08 22:34:51.995127"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:51.996989"], ["updated_at", "2018-06-08 22:34:51.996989"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.025454"], ["updated_at", "2018-06-08 22:34:52.025454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.027095"], ["updated_at", "2018-06-08 22:34:52.027095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.031214"], ["updated_at", "2018-06-08 22:34:52.031214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:34:52.047514"], ["updated_at", "2018-06-08 22:34:52.047514"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.056335"], ["updated_at", "2018-06-08 22:34:52.056335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.057851"], ["updated_at", "2018-06-08 22:34:52.057851"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:34:52.062060"], ["updated_at", "2018-06-08 22:34:52.062060"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:34:52.063892"], ["updated_at", "2018-06-08 22:34:52.063892"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:34:52.068517"], ["updated_at", "2018-06-08 22:34:52.068517"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:34:52.070526"], ["updated_at", "2018-06-08 22:34:52.070526"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.089781"], ["updated_at", "2018-06-08 22:34:52.089781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.091861"], ["updated_at", "2018-06-08 22:34:52.091861"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.096590"], ["updated_at", "2018-06-08 22:34:52.096590"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.101627"], ["updated_at", "2018-06-08 22:34:52.101627"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:34:52.140926"], ["updated_at", "2018-06-08 22:34:52.140926"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:34:52.142761"], ["updated_at", "2018-06-08 22:34:52.142761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.143995"], ["updated_at", "2018-06-08 22:34:52.143995"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.148745"], ["updated_at", "2018-06-08 22:34:52.148745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.204337"], ["updated_at", "2018-06-08 22:34:52.204337"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.3ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.220854"], ["updated_at", "2018-06-08 22:34:52.220854"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.222980"], ["updated_at", "2018-06-08 22:34:52.222980"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.229375"], ["updated_at", "2018-06-08 22:34:52.229375"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.237870"], ["updated_at", "2018-06-08 22:34:52.237870"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.239252"], ["updated_at", "2018-06-08 22:34:52.239252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.260654"], ["updated_at", "2018-06-08 22:34:52.260654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.280175"], ["updated_at", "2018-06-08 22:34:52.280175"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.282204"], ["updated_at", "2018-06-08 22:34:52.282204"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:34:52.288369"], ["updated_at", "2018-06-08 22:34:52.288369"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.295452"], ["updated_at", "2018-06-08 22:34:52.295452"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.305614"], ["updated_at", "2018-06-08 22:34:52.305614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.307671"], ["updated_at", "2018-06-08 22:34:52.307671"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.309990"], ["updated_at", "2018-06-08 22:34:52.309990"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.315433"], ["updated_at", "2018-06-08 22:34:52.315433"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:34:52.317348"], ["updated_at", "2018-06-08 22:34:52.317348"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.323136"], ["updated_at", "2018-06-08 22:34:52.323136"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.325320"], ["updated_at", "2018-06-08 22:34:52.325320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.365971"], ["updated_at", "2018-06-08 22:34:52.365971"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.367920"], ["updated_at", "2018-06-08 22:34:52.367920"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.379792"], ["updated_at", "2018-06-08 22:34:52.379792"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.385375"], ["updated_at", "2018-06-08 22:34:52.385375"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.392039"], ["updated_at", "2018-06-08 22:34:52.392039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.393278"], ["updated_at", "2018-06-08 22:34:52.393278"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.397876"], ["updated_at", "2018-06-08 22:34:52.397876"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.433413"], ["updated_at", "2018-06-08 22:34:52.433413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.439607"], ["updated_at", "2018-06-08 22:34:52.439607"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.441358"], ["updated_at", "2018-06-08 22:34:52.441358"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.444792"], ["updated_at", "2018-06-08 22:34:52.444792"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.453745"], ["updated_at", "2018-06-08 22:34:52.453745"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.463390"], ["updated_at", "2018-06-08 22:34:52.463390"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.475458"], ["updated_at", "2018-06-08 22:34:52.475458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.476758"], ["updated_at", "2018-06-08 22:34:52.476758"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:34:52.488515"], ["updated_at", "2018-06-08 22:34:52.488515"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.534052"], ["updated_at", "2018-06-08 22:34:52.534052"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.539093"], ["updated_at", "2018-06-08 22:34:52.539093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.545671"], ["updated_at", "2018-06-08 22:34:52.545671"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.551151"], ["updated_at", "2018-06-08 22:34:52.551151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.555868"], ["updated_at", "2018-06-08 22:34:52.555868"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.562699"], ["updated_at", "2018-06-08 22:34:52.562699"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:34:52.573431"], ["updated_at", "2018-06-08 22:34:52.573431"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:34:52.578398"], ["updated_at", "2018-06-08 22:34:52.578398"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:34:52.597560"], ["updated_at", "2018-06-08 22:34:52.597560"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:34:52.601437"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:34:52.604603"], ["updated_at", "2018-06-08 22:34:52.604603"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:34:52.606455"], ["updated_at", "2018-06-08 22:34:52.606455"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.612990"], ["updated_at", "2018-06-08 22:34:52.612990"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.615043"], ["updated_at", "2018-06-08 22:34:52.615043"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.626787"], ["updated_at", "2018-06-08 22:34:52.626787"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.628251"], ["updated_at", "2018-06-08 22:34:52.628251"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.629544"], ["updated_at", "2018-06-08 22:34:52.629544"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.635287"], ["updated_at", "2018-06-08 22:34:52.635287"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.637518"], ["updated_at", "2018-06-08 22:34:52.637518"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models" ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 1ms (ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.783510"], ["updated_at", "2018-06-08 22:34:52.783510"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.793785"], ["updated_at", "2018-06-08 22:34:52.793785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.799822"], ["updated_at", "2018-06-08 22:34:52.799822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:34:52.832279"], ["updated_at", "2018-06-08 22:34:52.832279"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:34:52.855816"], ["updated_at", "2018-06-08 22:34:52.855816"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:34:52.858172"], ["updated_at", "2018-06-08 22:34:52.858172"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.3ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:34:52.896321"], ["updated_at", "2018-06-08 22:34:52.896321"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (3.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 9ms (Views: 6.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:36:14.865210"], ["updated_at", "2018-06-08 22:36:14.865210"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:14.914238"], ["updated_at", "2018-06-08 22:36:14.914238"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:14.929112"], ["updated_at", "2018-06-08 22:36:14.929112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:14.935719"], ["updated_at", "2018-06-08 22:36:14.935719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:36:14.953299"], ["updated_at", "2018-06-08 22:36:14.953299"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:36:14.955348"], ["updated_at", "2018-06-08 22:36:14.955348"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:14.999788"], ["updated_at", "2018-06-08 22:36:14.999788"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.211842"], ["updated_at", "2018-06-08 22:36:15.211842"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.225950"], ["updated_at", "2018-06-08 22:36:15.225950"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.238325"], ["updated_at", "2018-06-08 22:36:15.238325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.246507"], ["updated_at", "2018-06-08 22:36:15.246507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.257232"], ["updated_at", "2018-06-08 22:36:15.257232"]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:36:15.270004"], ["updated_at", "2018-06-08 22:36:15.270004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:36:15.271610"], ["updated_at", "2018-06-08 22:36:15.271610"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:36:15.276238"], ["updated_at", "2018-06-08 22:36:15.276238"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:36:15.278032"], ["updated_at", "2018-06-08 22:36:15.278032"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.329390"], ["updated_at", "2018-06-08 22:36:15.329390"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.333080"], ["updated_at", "2018-06-08 22:36:15.333080"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.343670"], ["updated_at", "2018-06-08 22:36:15.343670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.345257"], ["updated_at", "2018-06-08 22:36:15.345257"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.350075"], ["updated_at", "2018-06-08 22:36:15.350075"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:36:15.352600"], ["updated_at", "2018-06-08 22:36:15.352600"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.357665"], ["updated_at", "2018-06-08 22:36:15.357665"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.361459"], ["updated_at", "2018-06-08 22:36:15.361459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.363379"], ["updated_at", "2018-06-08 22:36:15.363379"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:36:15.376241"], ["updated_at", "2018-06-08 22:36:15.376241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.396043"], ["updated_at", "2018-06-08 22:36:15.396043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.397392"], ["updated_at", "2018-06-08 22:36:15.397392"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.3ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:36:15.425385"], ["updated_at", "2018-06-08 22:36:15.425385"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:36:15.427331"], ["updated_at", "2018-06-08 22:36:15.427331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.428715"], ["updated_at", "2018-06-08 22:36:15.428715"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.433908"], ["updated_at", "2018-06-08 22:36:15.433908"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.443531"], ["updated_at", "2018-06-08 22:36:15.443531"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.447770"], ["updated_at", "2018-06-08 22:36:15.447770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.452324"], ["updated_at", "2018-06-08 22:36:15.452324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.457628"], ["updated_at", "2018-06-08 22:36:15.457628"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.459624"], ["updated_at", "2018-06-08 22:36:15.459624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.468929"], ["updated_at", "2018-06-08 22:36:15.468929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.476415"], ["updated_at", "2018-06-08 22:36:15.476415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.478067"], ["updated_at", "2018-06-08 22:36:15.478067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:36:15.497833"], ["updated_at", "2018-06-08 22:36:15.497833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:36:15.501715"], ["updated_at", "2018-06-08 22:36:15.501715"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.519967"], ["updated_at", "2018-06-08 22:36:15.519967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.521732"], ["updated_at", "2018-06-08 22:36:15.521732"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:36:15.524589"], ["updated_at", "2018-06-08 22:36:15.524589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.529744"], ["updated_at", "2018-06-08 22:36:15.529744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.537601"], ["updated_at", "2018-06-08 22:36:15.537601"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.539712"], ["updated_at", "2018-06-08 22:36:15.539712"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.542053"], ["updated_at", "2018-06-08 22:36:15.542053"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:36:15.548586"], ["updated_at", "2018-06-08 22:36:15.548586"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 22:36:15.551121"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:36:15.553265"], ["updated_at", "2018-06-08 22:36:15.553265"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:36:15.554617"], ["updated_at", "2018-06-08 22:36:15.554617"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.561781"], ["updated_at", "2018-06-08 22:36:15.561781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.571186"], ["updated_at", "2018-06-08 22:36:15.571186"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.576096"], ["updated_at", "2018-06-08 22:36:15.576096"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.582473"], ["updated_at", "2018-06-08 22:36:15.582473"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.584862"], ["updated_at", "2018-06-08 22:36:15.584862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.586629"], ["updated_at", "2018-06-08 22:36:15.586629"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.592197"], ["updated_at", "2018-06-08 22:36:15.592197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.594075"], ["updated_at", "2018-06-08 22:36:15.594075"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.604994"], ["updated_at", "2018-06-08 22:36:15.604994"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.607262"], ["updated_at", "2018-06-08 22:36:15.607262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.611646"], ["updated_at", "2018-06-08 22:36:15.611646"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.622845"], ["updated_at", "2018-06-08 22:36:15.622845"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.624372"], ["updated_at", "2018-06-08 22:36:15.624372"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.628638"], ["updated_at", "2018-06-08 22:36:15.628638"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.634991"], ["updated_at", "2018-06-08 22:36:15.634991"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.636996"], ["updated_at", "2018-06-08 22:36:15.636996"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.642551"], ["updated_at", "2018-06-08 22:36:15.642551"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.644706"], ["updated_at", "2018-06-08 22:36:15.644706"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:36:15.655508"], ["updated_at", "2018-06-08 22:36:15.655508"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.664180"], ["updated_at", "2018-06-08 22:36:15.664180"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.669514"], ["updated_at", "2018-06-08 22:36:15.669514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.675336"], ["updated_at", "2018-06-08 22:36:15.675336"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.677251"], ["updated_at", "2018-06-08 22:36:15.677251"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (4.9ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.698985"], ["updated_at", "2018-06-08 22:36:15.698985"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.706376"], ["updated_at", "2018-06-08 22:36:15.706376"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.708157"], ["updated_at", "2018-06-08 22:36:15.708157"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.727341"], ["updated_at", "2018-06-08 22:36:15.727341"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.729361"], ["updated_at", "2018-06-08 22:36:15.729361"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:15.733857"], ["updated_at", "2018-06-08 22:36:15.733857"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:36:15.743781"], ["updated_at", "2018-06-08 22:36:15.743781"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:36:15.745529"], ["updated_at", "2018-06-08 22:36:15.745529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:36:15.748750"], ["updated_at", "2018-06-08 22:36:15.748750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:36:15.750579"], ["updated_at", "2018-06-08 22:36:15.750579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.122101"], ["updated_at", "2018-06-08 22:36:25.122101"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:36:25.184371"], ["updated_at", "2018-06-08 22:36:25.184371"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.228656"], ["updated_at", "2018-06-08 22:36:25.228656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.238804"], ["updated_at", "2018-06-08 22:36:25.238804"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.246020"], ["updated_at", "2018-06-08 22:36:25.246020"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:36:25.265227"], ["updated_at", "2018-06-08 22:36:25.265227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:36:25.266755"], ["updated_at", "2018-06-08 22:36:25.266755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.3ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (1.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.390239"], ["updated_at", "2018-06-08 22:36:25.390239"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.401407"], ["updated_at", "2018-06-08 22:36:25.401407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.410665"], ["updated_at", "2018-06-08 22:36:25.410665"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.412341"], ["updated_at", "2018-06-08 22:36:25.412341"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:36:25.421869"], ["updated_at", "2018-06-08 22:36:25.421869"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:36:25.427122"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:36:25.429746"], ["updated_at", "2018-06-08 22:36:25.429746"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:36:25.431681"], ["updated_at", "2018-06-08 22:36:25.431681"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.438309"], ["updated_at", "2018-06-08 22:36:25.438309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:36:25.452586"], ["updated_at", "2018-06-08 22:36:25.452586"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.463210"], ["updated_at", "2018-06-08 22:36:25.463210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.465297"], ["updated_at", "2018-06-08 22:36:25.465297"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.487747"], ["updated_at", "2018-06-08 22:36:25.487747"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.489519"], ["updated_at", "2018-06-08 22:36:25.489519"]]  (0.1ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.3ms) DELETE FROM "test_models"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:36:25.495219"], ["updated_at", "2018-06-08 22:36:25.495219"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:36:25.500742"], ["updated_at", "2018-06-08 22:36:25.500742"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.5ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.520445"], ["updated_at", "2018-06-08 22:36:25.520445"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.526796"], ["updated_at", "2018-06-08 22:36:25.526796"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.531921"], ["updated_at", "2018-06-08 22:36:25.531921"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.3ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.565547"], ["updated_at", "2018-06-08 22:36:25.565547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.566998"], ["updated_at", "2018-06-08 22:36:25.566998"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.570212"], ["updated_at", "2018-06-08 22:36:25.570212"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.571988"], ["updated_at", "2018-06-08 22:36:25.571988"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.577572"], ["updated_at", "2018-06-08 22:36:25.577572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.600394"], ["updated_at", "2018-06-08 22:36:25.600394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.601909"], ["updated_at", "2018-06-08 22:36:25.601909"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.612845"], ["updated_at", "2018-06-08 22:36:25.612845"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.614299"], ["updated_at", "2018-06-08 22:36:25.614299"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.631752"], ["updated_at", "2018-06-08 22:36:25.631752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.641509"], ["updated_at", "2018-06-08 22:36:25.641509"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.643188"], ["updated_at", "2018-06-08 22:36:25.643188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.647147"], ["updated_at", "2018-06-08 22:36:25.647147"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:36:25.653587"], ["updated_at", "2018-06-08 22:36:25.653587"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:36:25.655389"], ["updated_at", "2018-06-08 22:36:25.655389"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.657612"], ["updated_at", "2018-06-08 22:36:25.657612"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:36:25.665817"], ["updated_at", "2018-06-08 22:36:25.665817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.670101"], ["updated_at", "2018-06-08 22:36:25.670101"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.678716"], ["updated_at", "2018-06-08 22:36:25.678716"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.687864"], ["updated_at", "2018-06-08 22:36:25.687864"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.692590"], ["updated_at", "2018-06-08 22:36:25.692590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.693969"], ["updated_at", "2018-06-08 22:36:25.693969"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.698170"], ["updated_at", "2018-06-08 22:36:25.698170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.699968"], ["updated_at", "2018-06-08 22:36:25.699968"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.703511"], ["updated_at", "2018-06-08 22:36:25.703511"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.704998"], ["updated_at", "2018-06-08 22:36:25.704998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.706281"], ["updated_at", "2018-06-08 22:36:25.706281"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.716698"], ["updated_at", "2018-06-08 22:36:25.716698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.718118"], ["updated_at", "2018-06-08 22:36:25.718118"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.722384"], ["updated_at", "2018-06-08 22:36:25.722384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.724219"], ["updated_at", "2018-06-08 22:36:25.724219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.740318"], ["updated_at", "2018-06-08 22:36:25.740318"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.749784"], ["updated_at", "2018-06-08 22:36:25.749784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.760826"], ["updated_at", "2018-06-08 22:36:25.760826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.772144"], ["updated_at", "2018-06-08 22:36:25.772144"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.777044"], ["updated_at", "2018-06-08 22:36:25.777044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.783010"], ["updated_at", "2018-06-08 22:36:25.783010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.786926"], ["updated_at", "2018-06-08 22:36:25.786926"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:36:25.794636"], ["updated_at", "2018-06-08 22:36:25.794636"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:36:25.796427"], ["updated_at", "2018-06-08 22:36:25.796427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:36:25.799591"], ["updated_at", "2018-06-08 22:36:25.799591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:36:25.800978"], ["updated_at", "2018-06-08 22:36:25.800978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.813045"], ["updated_at", "2018-06-08 22:36:25.813045"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.814801"], ["updated_at", "2018-06-08 22:36:25.814801"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.818826"], ["updated_at", "2018-06-08 22:36:25.818826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.827265"], ["updated_at", "2018-06-08 22:36:25.827265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.835946"], ["updated_at", "2018-06-08 22:36:25.835946"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.837688"], ["updated_at", "2018-06-08 22:36:25.837688"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.839720"], ["updated_at", "2018-06-08 22:36:25.839720"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.844179"], ["updated_at", "2018-06-08 22:36:25.844179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:36:25.845477"], ["updated_at", "2018-06-08 22:36:25.845477"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.849904"], ["updated_at", "2018-06-08 22:36:25.849904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.853572"], ["updated_at", "2018-06-08 22:36:25.853572"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:36:25.877475"], ["updated_at", "2018-06-08 22:36:25.877475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:36:25.879182"], ["updated_at", "2018-06-08 22:36:25.879182"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:36:25.883002"], ["updated_at", "2018-06-08 22:36:25.883002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:36:25.884730"], ["updated_at", "2018-06-08 22:36:25.884730"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:36:25.894234"], ["updated_at", "2018-06-08 22:36:25.894234"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.915514"], ["updated_at", "2018-06-08 22:36:25.915514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:25.917143"], ["updated_at", "2018-06-08 22:36:25.917143"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (6.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.4ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.2ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:36:36.897639"], ["updated_at", "2018-06-08 22:36:36.897639"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:36.927030"], ["updated_at", "2018-06-08 22:36:36.927030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:36.939954"], ["updated_at", "2018-06-08 22:36:36.939954"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:36.948793"], ["updated_at", "2018-06-08 22:36:36.948793"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:36.967942"], ["updated_at", "2018-06-08 22:36:36.967942"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.5ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.3ms) begin transaction  (0.1ms) rollback transaction SQL (0.4ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:36:37.036186"], ["updated_at", "2018-06-08 22:36:37.036186"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:36:37.039284"], ["updated_at", "2018-06-08 22:36:37.039284"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (1.0ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.198650"], ["updated_at", "2018-06-08 22:36:37.198650"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.201969"], ["updated_at", "2018-06-08 22:36:37.201969"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:36:37.208430"], ["updated_at", "2018-06-08 22:36:37.208430"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:36:37.212266"], ["updated_at", "2018-06-08 22:36:37.212266"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:36:37.222270"], ["updated_at", "2018-06-08 22:36:37.222270"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:36:37.225910"], ["updated_at", "2018-06-08 22:36:37.225910"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.237731"], ["updated_at", "2018-06-08 22:36:37.237731"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.254306"], ["updated_at", "2018-06-08 22:36:37.254306"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.257296"], ["updated_at", "2018-06-08 22:36:37.257296"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.261554"], ["updated_at", "2018-06-08 22:36:37.261554"]]  (0.4ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.272482"], ["updated_at", "2018-06-08 22:36:37.272482"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.7ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.309009"], ["updated_at", "2018-06-08 22:36:37.309009"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.6ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.331201"], ["updated_at", "2018-06-08 22:36:37.331201"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.338788"], ["updated_at", "2018-06-08 22:36:37.338788"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.4ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.350088"], ["updated_at", "2018-06-08 22:36:37.350088"]]  (0.1ms) commit transaction  (0.8ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.373195"], ["updated_at", "2018-06-08 22:36:37.373195"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.377521"], ["updated_at", "2018-06-08 22:36:37.377521"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.399555"], ["updated_at", "2018-06-08 22:36:37.399555"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.9ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:36:37.417941"], ["updated_at", "2018-06-08 22:36:37.417941"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:36:37.426178"], ["updated_at", "2018-06-08 22:36:37.426178"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.4ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.5ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (2.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.493572"], ["updated_at", "2018-06-08 22:36:37.493572"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.499552"], ["updated_at", "2018-06-08 22:36:37.499552"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.556338"], ["updated_at", "2018-06-08 22:36:37.556338"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.563191"], ["updated_at", "2018-06-08 22:36:37.563191"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.570854"], ["updated_at", "2018-06-08 22:36:37.570854"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (1.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.584565"], ["updated_at", "2018-06-08 22:36:37.584565"]]  (0.1ms) commit transaction  (0.4ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.587911"], ["updated_at", "2018-06-08 22:36:37.587911"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.597473"], ["updated_at", "2018-06-08 22:36:37.597473"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.603881"], ["updated_at", "2018-06-08 22:36:37.603881"]]  (0.2ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.632689"], ["updated_at", "2018-06-08 22:36:37.632689"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.3ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.664921"], ["updated_at", "2018-06-08 22:36:37.664921"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.668429"], ["updated_at", "2018-06-08 22:36:37.668429"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.707074"], ["updated_at", "2018-06-08 22:36:37.707074"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.709591"], ["updated_at", "2018-06-08 22:36:37.709591"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.734148"], ["updated_at", "2018-06-08 22:36:37.734148"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.736043"], ["updated_at", "2018-06-08 22:36:37.736043"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:36:37.763080"], ["updated_at", "2018-06-08 22:36:37.763080"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:36:37.775150"], ["updated_at", "2018-06-08 22:36:37.775150"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:36:37.777686"], ["updated_at", "2018-06-08 22:36:37.777686"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.780228"], ["updated_at", "2018-06-08 22:36:37.780228"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.786439"], ["updated_at", "2018-06-08 22:36:37.786439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.801035"], ["updated_at", "2018-06-08 22:36:37.801035"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.819690"], ["updated_at", "2018-06-08 22:36:37.819690"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.835806"], ["updated_at", "2018-06-08 22:36:37.835806"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.837934"], ["updated_at", "2018-06-08 22:36:37.837934"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:36:37.842162"], ["updated_at", "2018-06-08 22:36:37.842162"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:36:37.844239"], ["updated_at", "2018-06-08 22:36:37.844239"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:36:37.848561"], ["updated_at", "2018-06-08 22:36:37.848561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:36:37.850607"], ["updated_at", "2018-06-08 22:36:37.850607"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.873797"], ["updated_at", "2018-06-08 22:36:37.873797"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.877442"], ["updated_at", "2018-06-08 22:36:37.877442"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.888301"], ["updated_at", "2018-06-08 22:36:37.888301"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.4ms) begin transaction SQL (0.8ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.893862"], ["updated_at", "2018-06-08 22:36:37.893862"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.903199"], ["updated_at", "2018-06-08 22:36:37.903199"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.905077"], ["updated_at", "2018-06-08 22:36:37.905077"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.911485"], ["updated_at", "2018-06-08 22:36:37.911485"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:36:37.922317"], ["updated_at", "2018-06-08 22:36:37.922317"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.929542"], ["updated_at", "2018-06-08 22:36:37.929542"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.941640"], ["updated_at", "2018-06-08 22:36:37.941640"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.943761"], ["updated_at", "2018-06-08 22:36:37.943761"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.949431"], ["updated_at", "2018-06-08 22:36:37.949431"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:36:37.965762"], ["updated_at", "2018-06-08 22:36:37.965762"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:36:37.972098"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:36:37.974686"], ["updated_at", "2018-06-08 22:36:37.974686"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:36:37.977545"], ["updated_at", "2018-06-08 22:36:37.977545"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:37.987379"], ["updated_at", "2018-06-08 22:36:37.987379"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:36:38.002898"], ["updated_at", "2018-06-08 22:36:38.002898"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (1.0ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.032171"], ["updated_at", "2018-06-08 22:36:38.032171"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.035011"], ["updated_at", "2018-06-08 22:36:38.035011"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.066636"], ["updated_at", "2018-06-08 22:36:38.066636"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.070186"], ["updated_at", "2018-06-08 22:36:38.070186"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.086625"], ["updated_at", "2018-06-08 22:36:38.086625"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.097248"], ["updated_at", "2018-06-08 22:36:38.097248"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.100465"], ["updated_at", "2018-06-08 22:36:38.100465"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.102956"], ["updated_at", "2018-06-08 22:36:38.102956"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.110718"], ["updated_at", "2018-06-08 22:36:38.110718"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.113219"], ["updated_at", "2018-06-08 22:36:38.113219"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:36:38.122587"], ["updated_at", "2018-06-08 22:36:38.122587"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:36:38.126226"], ["updated_at", "2018-06-08 22:36:38.126226"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_models" ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 1ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (1.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.4ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.457960"], ["updated_at", "2018-06-08 22:41:52.457960"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.507623"], ["updated_at", "2018-06-08 22:41:52.507623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.508766"], ["updated_at", "2018-06-08 22:41:52.508766"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.518759"], ["updated_at", "2018-06-08 22:41:52.518759"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.520137"], ["updated_at", "2018-06-08 22:41:52.520137"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.523449"], ["updated_at", "2018-06-08 22:41:52.523449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.524770"], ["updated_at", "2018-06-08 22:41:52.524770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.528152"], ["updated_at", "2018-06-08 22:41:52.528152"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.534240"], ["updated_at", "2018-06-08 22:41:52.534240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.535530"], ["updated_at", "2018-06-08 22:41:52.535530"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:41:52.568907"], ["updated_at", "2018-06-08 22:41:52.568907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.574799"], ["updated_at", "2018-06-08 22:41:52.574799"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.576015"], ["updated_at", "2018-06-08 22:41:52.576015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.576845"], ["updated_at", "2018-06-08 22:41:52.576845"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.583063"], ["updated_at", "2018-06-08 22:41:52.583063"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.584441"], ["updated_at", "2018-06-08 22:41:52.584441"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.587428"], ["updated_at", "2018-06-08 22:41:52.587428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.598334"], ["updated_at", "2018-06-08 22:41:52.598334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.610442"], ["updated_at", "2018-06-08 22:41:52.610442"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.615850"], ["updated_at", "2018-06-08 22:41:52.615850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.623041"], ["updated_at", "2018-06-08 22:41:52.623041"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.624916"], ["updated_at", "2018-06-08 22:41:52.624916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 22:41:52.635224"], ["updated_at", "2018-06-08 22:41:52.635224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 22:41:52.639107"], ["updated_at", "2018-06-08 22:41:52.639107"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 22:41:52.659949"], ["updated_at", "2018-06-08 22:41:52.659949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 22:41:52.662621"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 22:41:52.665094"], ["updated_at", "2018-06-08 22:41:52.665094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 22:41:52.666256"], ["updated_at", "2018-06-08 22:41:52.666256"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.671114"], ["updated_at", "2018-06-08 22:41:52.671114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.672401"], ["updated_at", "2018-06-08 22:41:52.672401"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.676482"], ["updated_at", "2018-06-08 22:41:52.676482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.695745"], ["updated_at", "2018-06-08 22:41:52.695745"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.702916"], ["updated_at", "2018-06-08 22:41:52.702916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.709354"], ["updated_at", "2018-06-08 22:41:52.709354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 22:41:52.715264"], ["updated_at", "2018-06-08 22:41:52.715264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.719755"], ["updated_at", "2018-06-08 22:41:52.719755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.727952"], ["updated_at", "2018-06-08 22:41:52.727952"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.736555"], ["updated_at", "2018-06-08 22:41:52.736555"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.737763"], ["updated_at", "2018-06-08 22:41:52.737763"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.742086"], ["updated_at", "2018-06-08 22:41:52.742086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.743369"], ["updated_at", "2018-06-08 22:41:52.743369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:41:52.753983"], ["updated_at", "2018-06-08 22:41:52.753983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:41:52.755178"], ["updated_at", "2018-06-08 22:41:52.755178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:41:52.757693"], ["updated_at", "2018-06-08 22:41:52.757693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:41:52.758965"], ["updated_at", "2018-06-08 22:41:52.758965"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.763825"], ["updated_at", "2018-06-08 22:41:52.763825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.765438"], ["updated_at", "2018-06-08 22:41:52.765438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.766948"], ["updated_at", "2018-06-08 22:41:52.766948"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.771845"], ["updated_at", "2018-06-08 22:41:52.771845"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.773439"], ["updated_at", "2018-06-08 22:41:52.773439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.789553"], ["updated_at", "2018-06-08 22:41:52.789553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 22:41:52.795737"], ["updated_at", "2018-06-08 22:41:52.795737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.809760"], ["updated_at", "2018-06-08 22:41:52.809760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.810658"], ["updated_at", "2018-06-08 22:41:52.810658"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.815057"], ["updated_at", "2018-06-08 22:41:52.815057"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.824025"], ["updated_at", "2018-06-08 22:41:52.824025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.824958"], ["updated_at", "2018-06-08 22:41:52.824958"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.827186"], ["updated_at", "2018-06-08 22:41:52.827186"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.832207"], ["updated_at", "2018-06-08 22:41:52.832207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.833272"], ["updated_at", "2018-06-08 22:41:52.833272"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.836171"], ["updated_at", "2018-06-08 22:41:52.836171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.838806"], ["updated_at", "2018-06-08 22:41:52.838806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.847073"], ["updated_at", "2018-06-08 22:41:52.847073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.851144"], ["updated_at", "2018-06-08 22:41:52.851144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.857088"], ["updated_at", "2018-06-08 22:41:52.857088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.858585"], ["updated_at", "2018-06-08 22:41:52.858585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 22:41:52.872608"], ["updated_at", "2018-06-08 22:41:52.872608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 22:41:52.873832"], ["updated_at", "2018-06-08 22:41:52.873832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 22:41:52.875821"], ["updated_at", "2018-06-08 22:41:52.875821"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 22:41:52.876711"], ["updated_at", "2018-06-08 22:41:52.876711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.903601"], ["updated_at", "2018-06-08 22:41:52.903601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 22:41:52.904673"], ["updated_at", "2018-06-08 22:41:52.904673"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.908325"], ["updated_at", "2018-06-08 22:41:52.908325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.914758"], ["updated_at", "2018-06-08 22:41:52.914758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.917691"], ["updated_at", "2018-06-08 22:41:52.917691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.919824"], ["updated_at", "2018-06-08 22:41:52.919824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:41:52.923428"], ["updated_at", "2018-06-08 22:41:52.923428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 22:41:52.924438"], ["updated_at", "2018-06-08 22:41:52.924438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.925287"], ["updated_at", "2018-06-08 22:41:52.925287"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.946398"], ["updated_at", "2018-06-08 22:41:52.946398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.953679"], ["updated_at", "2018-06-08 22:41:52.953679"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:52.957889"], ["updated_at", "2018-06-08 22:41:52.957889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 22:41:52.984853"], ["updated_at", "2018-06-08 22:41:52.984853"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 22:41:52.985822"], ["updated_at", "2018-06-08 22:41:52.985822"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 22:41:53.004610"], ["updated_at", "2018-06-08 22:41:53.004610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 22:41:53.018367"], ["updated_at", "2018-06-08 22:41:53.018367"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (1.0ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.088924"], ["updated_at", "2018-06-08 23:12:40.088924"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:12:40.097483"], ["updated_at", "2018-06-08 23:12:40.097483"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.121577"], ["updated_at", "2018-06-08 23:12:40.121577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.128310"], ["updated_at", "2018-06-08 23:12:40.128310"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.131905"], ["updated_at", "2018-06-08 23:12:40.131905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:12:40.139006"], ["updated_at", "2018-06-08 23:12:40.139006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:12:40.140078"], ["updated_at", "2018-06-08 23:12:40.140078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.331848"], ["updated_at", "2018-06-08 23:12:40.331848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.337695"], ["updated_at", "2018-06-08 23:12:40.337695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.340438"], ["updated_at", "2018-06-08 23:12:40.340438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.355117"], ["updated_at", "2018-06-08 23:12:40.355117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.359369"], ["updated_at", "2018-06-08 23:12:40.359369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.360265"], ["updated_at", "2018-06-08 23:12:40.360265"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:12:40.369362"], ["updated_at", "2018-06-08 23:12:40.369362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:12:40.371656"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:12:40.373043"], ["updated_at", "2018-06-08 23:12:40.373043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:12:40.374151"], ["updated_at", "2018-06-08 23:12:40.374151"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.381552"], ["updated_at", "2018-06-08 23:12:40.381552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:12:40.387424"], ["updated_at", "2018-06-08 23:12:40.387424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:12:40.390110"], ["updated_at", "2018-06-08 23:12:40.390110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.403796"], ["updated_at", "2018-06-08 23:12:40.403796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.404823"], ["updated_at", "2018-06-08 23:12:40.404823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.407474"], ["updated_at", "2018-06-08 23:12:40.407474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.411336"], ["updated_at", "2018-06-08 23:12:40.411336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (3.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.412393"], ["updated_at", "2018-06-08 23:12:40.412393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.426970"], ["updated_at", "2018-06-08 23:12:40.426970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.430020"], ["updated_at", "2018-06-08 23:12:40.430020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.433541"], ["updated_at", "2018-06-08 23:12:40.433541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.439015"], ["updated_at", "2018-06-08 23:12:40.439015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.439864"], ["updated_at", "2018-06-08 23:12:40.439864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:12:40.446615"], ["updated_at", "2018-06-08 23:12:40.446615"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:12:40.447863"], ["updated_at", "2018-06-08 23:12:40.447863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:12:40.449890"], ["updated_at", "2018-06-08 23:12:40.449890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:12:40.450871"], ["updated_at", "2018-06-08 23:12:40.450871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.458444"], ["updated_at", "2018-06-08 23:12:40.458444"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.459286"], ["updated_at", "2018-06-08 23:12:40.459286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.462248"], ["updated_at", "2018-06-08 23:12:40.462248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.465780"], ["updated_at", "2018-06-08 23:12:40.465780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:12:40.466673"], ["updated_at", "2018-06-08 23:12:40.466673"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:12:40.473257"], ["updated_at", "2018-06-08 23:12:40.473257"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.478792"], ["updated_at", "2018-06-08 23:12:40.478792"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.479943"], ["updated_at", "2018-06-08 23:12:40.479943"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:12:40.482529"], ["updated_at", "2018-06-08 23:12:40.482529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:12:40.483422"], ["updated_at", "2018-06-08 23:12:40.483422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.484199"], ["updated_at", "2018-06-08 23:12:40.484199"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.486859"], ["updated_at", "2018-06-08 23:12:40.486859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.492827"], ["updated_at", "2018-06-08 23:12:40.492827"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.504926"], ["updated_at", "2018-06-08 23:12:40.504926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.505869"], ["updated_at", "2018-06-08 23:12:40.505869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.518536"], ["updated_at", "2018-06-08 23:12:40.518536"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.520171"], ["updated_at", "2018-06-08 23:12:40.520171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.521268"], ["updated_at", "2018-06-08 23:12:40.521268"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.524445"], ["updated_at", "2018-06-08 23:12:40.524445"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.525375"], ["updated_at", "2018-06-08 23:12:40.525375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.531724"], ["updated_at", "2018-06-08 23:12:40.531724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.532589"], ["updated_at", "2018-06-08 23:12:40.532589"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:12:40.535847"], ["updated_at", "2018-06-08 23:12:40.535847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.562895"], ["updated_at", "2018-06-08 23:12:40.562895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.563972"], ["updated_at", "2018-06-08 23:12:40.563972"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.566717"], ["updated_at", "2018-06-08 23:12:40.566717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.567606"], ["updated_at", "2018-06-08 23:12:40.567606"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.570236"], ["updated_at", "2018-06-08 23:12:40.570236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.572961"], ["updated_at", "2018-06-08 23:12:40.572961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.577468"], ["updated_at", "2018-06-08 23:12:40.577468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.578925"], ["updated_at", "2018-06-08 23:12:40.578925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.579995"], ["updated_at", "2018-06-08 23:12:40.579995"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.582564"], ["updated_at", "2018-06-08 23:12:40.582564"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.584449"], ["updated_at", "2018-06-08 23:12:40.584449"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.585475"], ["updated_at", "2018-06-08 23:12:40.585475"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:12:40.588067"], ["updated_at", "2018-06-08 23:12:40.588067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:12:40.588996"], ["updated_at", "2018-06-08 23:12:40.588996"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:12:40.591205"], ["updated_at", "2018-06-08 23:12:40.591205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:12:40.592092"], ["updated_at", "2018-06-08 23:12:40.592092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.597036"], ["updated_at", "2018-06-08 23:12:40.597036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.598068"], ["updated_at", "2018-06-08 23:12:40.598068"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.600802"], ["updated_at", "2018-06-08 23:12:40.600802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.606994"], ["updated_at", "2018-06-08 23:12:40.606994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.609400"], ["updated_at", "2018-06-08 23:12:40.609400"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.612776"], ["updated_at", "2018-06-08 23:12:40.612776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.616948"], ["updated_at", "2018-06-08 23:12:40.616948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:12:40.622261"], ["updated_at", "2018-06-08 23:12:40.622261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.624798"], ["updated_at", "2018-06-08 23:12:40.624798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.629778"], ["updated_at", "2018-06-08 23:12:40.629778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.630746"], ["updated_at", "2018-06-08 23:12:40.630746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.638471"], ["updated_at", "2018-06-08 23:12:40.638471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:12:40.648244"], ["updated_at", "2018-06-08 23:12:40.648244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (1.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.828259"], ["updated_at", "2018-06-08 23:21:06.828259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.863190"], ["updated_at", "2018-06-08 23:21:06.863190"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.865061"], ["updated_at", "2018-06-08 23:21:06.865061"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.869173"], ["updated_at", "2018-06-08 23:21:06.869173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.874972"], ["updated_at", "2018-06-08 23:21:06.874972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.876542"], ["updated_at", "2018-06-08 23:21:06.876542"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:21:06.909658"], ["updated_at", "2018-06-08 23:21:06.909658"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:21:06.912901"], ["updated_at", "2018-06-08 23:21:06.912901"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:21:06.926183"], ["updated_at", "2018-06-08 23:21:06.926183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:21:06.927651"], ["updated_at", "2018-06-08 23:21:06.927651"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.929285"], ["updated_at", "2018-06-08 23:21:06.929285"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.932779"], ["updated_at", "2018-06-08 23:21:06.932779"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.939019"], ["updated_at", "2018-06-08 23:21:06.939019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.940037"], ["updated_at", "2018-06-08 23:21:06.940037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.948072"], ["updated_at", "2018-06-08 23:21:06.948072"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.950051"], ["updated_at", "2018-06-08 23:21:06.950051"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.953997"], ["updated_at", "2018-06-08 23:21:06.953997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.958193"], ["updated_at", "2018-06-08 23:21:06.958193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.959363"], ["updated_at", "2018-06-08 23:21:06.959363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.960606"], ["updated_at", "2018-06-08 23:21:06.960606"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:21:06.973678"], ["updated_at", "2018-06-08 23:21:06.973678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:21:06.976362"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:21:06.978542"], ["updated_at", "2018-06-08 23:21:06.978542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:21:06.979722"], ["updated_at", "2018-06-08 23:21:06.979722"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.984147"], ["updated_at", "2018-06-08 23:21:06.984147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.986402"], ["updated_at", "2018-06-08 23:21:06.986402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.989620"], ["updated_at", "2018-06-08 23:21:06.989620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.990434"], ["updated_at", "2018-06-08 23:21:06.990434"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.993329"], ["updated_at", "2018-06-08 23:21:06.993329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.994221"], ["updated_at", "2018-06-08 23:21:06.994221"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.997376"], ["updated_at", "2018-06-08 23:21:06.997376"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:06.999032"], ["updated_at", "2018-06-08 23:21:06.999032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:21:07.006042"], ["updated_at", "2018-06-08 23:21:07.006042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:21:07.007039"], ["updated_at", "2018-06-08 23:21:07.007039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:21:07.009005"], ["updated_at", "2018-06-08 23:21:07.009005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:21:07.010393"], ["updated_at", "2018-06-08 23:21:07.010393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:21:07.014513"], ["updated_at", "2018-06-08 23:21:07.014513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.016865"], ["updated_at", "2018-06-08 23:21:07.016865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.021689"], ["updated_at", "2018-06-08 23:21:07.021689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:21:07.034759"], ["updated_at", "2018-06-08 23:21:07.034759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.039865"], ["updated_at", "2018-06-08 23:21:07.039865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.043682"], ["updated_at", "2018-06-08 23:21:07.043682"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.047920"], ["updated_at", "2018-06-08 23:21:07.047920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.052552"], ["updated_at", "2018-06-08 23:21:07.052552"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.058439"], ["updated_at", "2018-06-08 23:21:07.058439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.078956"], ["updated_at", "2018-06-08 23:21:07.078956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.080420"], ["updated_at", "2018-06-08 23:21:07.080420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.081502"], ["updated_at", "2018-06-08 23:21:07.081502"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.084071"], ["updated_at", "2018-06-08 23:21:07.084071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.084972"], ["updated_at", "2018-06-08 23:21:07.084972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.097409"], ["updated_at", "2018-06-08 23:21:07.097409"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.105221"], ["updated_at", "2018-06-08 23:21:07.105221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.113301"], ["updated_at", "2018-06-08 23:21:07.113301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.114487"], ["updated_at", "2018-06-08 23:21:07.114487"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.116894"], ["updated_at", "2018-06-08 23:21:07.116894"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.121961"], ["updated_at", "2018-06-08 23:21:07.121961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.122769"], ["updated_at", "2018-06-08 23:21:07.122769"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.124859"], ["updated_at", "2018-06-08 23:21:07.124859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.131058"], ["updated_at", "2018-06-08 23:21:07.131058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.132162"], ["updated_at", "2018-06-08 23:21:07.132162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.141451"], ["updated_at", "2018-06-08 23:21:07.141451"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.142539"], ["updated_at", "2018-06-08 23:21:07.142539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.155138"], ["updated_at", "2018-06-08 23:21:07.155138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:21:07.163556"], ["updated_at", "2018-06-08 23:21:07.163556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:21:07.164524"], ["updated_at", "2018-06-08 23:21:07.164524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:21:07.166433"], ["updated_at", "2018-06-08 23:21:07.166433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:21:07.167357"], ["updated_at", "2018-06-08 23:21:07.167357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.175066"], ["updated_at", "2018-06-08 23:21:07.175066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.178299"], ["updated_at", "2018-06-08 23:21:07.178299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.183345"], ["updated_at", "2018-06-08 23:21:07.183345"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.186024"], ["updated_at", "2018-06-08 23:21:07.186024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.194990"], ["updated_at", "2018-06-08 23:21:07.194990"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:21:07.196512"], ["updated_at", "2018-06-08 23:21:07.196512"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.199332"], ["updated_at", "2018-06-08 23:21:07.199332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:21:07.208381"], ["updated_at", "2018-06-08 23:21:07.208381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.221600"], ["updated_at", "2018-06-08 23:21:07.221600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.222795"], ["updated_at", "2018-06-08 23:21:07.222795"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.224745"], ["updated_at", "2018-06-08 23:21:07.224745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.225745"], ["updated_at", "2018-06-08 23:21:07.225745"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:21:07.247081"], ["updated_at", "2018-06-08 23:21:07.247081"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:21:07.255382"], ["updated_at", "2018-06-08 23:21:07.255382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:21:07.256231"], ["updated_at", "2018-06-08 23:21:07.256231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.290160"], ["updated_at", "2018-06-08 23:21:07.290160"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.297234"], ["updated_at", "2018-06-08 23:21:07.297234"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.300674"], ["updated_at", "2018-06-08 23:21:07.300674"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:21:07.310931"], ["updated_at", "2018-06-08 23:21:07.310931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.9ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:22:55.901091"], ["updated_at", "2018-06-08 23:22:55.901091"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:55.945750"], ["updated_at", "2018-06-08 23:22:55.945750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:22:55.980503"], ["updated_at", "2018-06-08 23:22:55.980503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:22:55.981480"], ["updated_at", "2018-06-08 23:22:55.981480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.025622"], ["updated_at", "2018-06-08 23:22:56.025622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.037062"], ["updated_at", "2018-06-08 23:22:56.037062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.041914"], ["updated_at", "2018-06-08 23:22:56.041914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.232153"], ["updated_at", "2018-06-08 23:22:56.232153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.235848"], ["updated_at", "2018-06-08 23:22:56.235848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.240694"], ["updated_at", "2018-06-08 23:22:56.240694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:22:56.241887"], ["updated_at", "2018-06-08 23:22:56.241887"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.244629"], ["updated_at", "2018-06-08 23:22:56.244629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.245444"], ["updated_at", "2018-06-08 23:22:56.245444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.257078"], ["updated_at", "2018-06-08 23:22:56.257078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.258340"], ["updated_at", "2018-06-08 23:22:56.258340"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:22:56.263668"], ["updated_at", "2018-06-08 23:22:56.263668"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.266872"], ["updated_at", "2018-06-08 23:22:56.266872"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:22:56.275839"], ["updated_at", "2018-06-08 23:22:56.275839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:22:56.278166"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:22:56.279368"], ["updated_at", "2018-06-08 23:22:56.279368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:22:56.280247"], ["updated_at", "2018-06-08 23:22:56.280247"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.285017"], ["updated_at", "2018-06-08 23:22:56.285017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.286029"], ["updated_at", "2018-06-08 23:22:56.286029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.286843"], ["updated_at", "2018-06-08 23:22:56.286843"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.290545"], ["updated_at", "2018-06-08 23:22:56.290545"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.291819"], ["updated_at", "2018-06-08 23:22:56.291819"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.294669"], ["updated_at", "2018-06-08 23:22:56.294669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.298990"], ["updated_at", "2018-06-08 23:22:56.298990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.300159"], ["updated_at", "2018-06-08 23:22:56.300159"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.302298"], ["updated_at", "2018-06-08 23:22:56.302298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.308529"], ["updated_at", "2018-06-08 23:22:56.308529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.309430"], ["updated_at", "2018-06-08 23:22:56.309430"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.311229"], ["updated_at", "2018-06-08 23:22:56.311229"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.312991"], ["updated_at", "2018-06-08 23:22:56.312991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.313739"], ["updated_at", "2018-06-08 23:22:56.313739"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:22:56.328813"], ["updated_at", "2018-06-08 23:22:56.328813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:22:56.331017"], ["updated_at", "2018-06-08 23:22:56.331017"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.342959"], ["updated_at", "2018-06-08 23:22:56.342959"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.344069"], ["updated_at", "2018-06-08 23:22:56.344069"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:22:56.349380"], ["updated_at", "2018-06-08 23:22:56.349380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:22:56.353654"], ["updated_at", "2018-06-08 23:22:56.353654"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:22:56.354799"], ["updated_at", "2018-06-08 23:22:56.354799"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:22:56.357731"], ["updated_at", "2018-06-08 23:22:56.357731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:22:56.358821"], ["updated_at", "2018-06-08 23:22:56.358821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.362885"], ["updated_at", "2018-06-08 23:22:56.362885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.366315"], ["updated_at", "2018-06-08 23:22:56.366315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:22:56.371840"], ["updated_at", "2018-06-08 23:22:56.371840"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.384530"], ["updated_at", "2018-06-08 23:22:56.384530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.385479"], ["updated_at", "2018-06-08 23:22:56.385479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.388359"], ["updated_at", "2018-06-08 23:22:56.388359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:22:56.393368"], ["updated_at", "2018-06-08 23:22:56.393368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:22:56.394402"], ["updated_at", "2018-06-08 23:22:56.394402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.395284"], ["updated_at", "2018-06-08 23:22:56.395284"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.416579"], ["updated_at", "2018-06-08 23:22:56.416579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.417710"], ["updated_at", "2018-06-08 23:22:56.417710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.418732"], ["updated_at", "2018-06-08 23:22:56.418732"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.421918"], ["updated_at", "2018-06-08 23:22:56.421918"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.423414"], ["updated_at", "2018-06-08 23:22:56.423414"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.430176"], ["updated_at", "2018-06-08 23:22:56.430176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.437514"], ["updated_at", "2018-06-08 23:22:56.437514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.441259"], ["updated_at", "2018-06-08 23:22:56.441259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.445270"], ["updated_at", "2018-06-08 23:22:56.445270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.451763"], ["updated_at", "2018-06-08 23:22:56.451763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.452759"], ["updated_at", "2018-06-08 23:22:56.452759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.455888"], ["updated_at", "2018-06-08 23:22:56.455888"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.460735"], ["updated_at", "2018-06-08 23:22:56.460735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.461638"], ["updated_at", "2018-06-08 23:22:56.461638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.470084"], ["updated_at", "2018-06-08 23:22:56.470084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.471097"], ["updated_at", "2018-06-08 23:22:56.471097"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:22:56.477576"], ["updated_at", "2018-06-08 23:22:56.477576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:22:56.478502"], ["updated_at", "2018-06-08 23:22:56.478502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:22:56.480208"], ["updated_at", "2018-06-08 23:22:56.480208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:22:56.481047"], ["updated_at", "2018-06-08 23:22:56.481047"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.501393"], ["updated_at", "2018-06-08 23:22:56.501393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.506952"], ["updated_at", "2018-06-08 23:22:56.506952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.513392"], ["updated_at", "2018-06-08 23:22:56.513392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.522146"], ["updated_at", "2018-06-08 23:22:56.522146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.528009"], ["updated_at", "2018-06-08 23:22:56.528009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.535119"], ["updated_at", "2018-06-08 23:22:56.535119"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.542457"], ["updated_at", "2018-06-08 23:22:56.542457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.543445"], ["updated_at", "2018-06-08 23:22:56.543445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.549745"], ["updated_at", "2018-06-08 23:22:56.549745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.552558"], ["updated_at", "2018-06-08 23:22:56.552558"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.554971"], ["updated_at", "2018-06-08 23:22:56.554971"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.559159"], ["updated_at", "2018-06-08 23:22:56.559159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:22:56.560194"], ["updated_at", "2018-06-08 23:22:56.560194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.461260"], ["updated_at", "2018-06-08 23:24:38.461260"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.514743"], ["updated_at", "2018-06-08 23:24:38.514743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.515821"], ["updated_at", "2018-06-08 23:24:38.515821"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.516936"], ["updated_at", "2018-06-08 23:24:38.516936"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.520643"], ["updated_at", "2018-06-08 23:24:38.520643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.521839"], ["updated_at", "2018-06-08 23:24:38.521839"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.525046"], ["updated_at", "2018-06-08 23:24:38.525046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.531339"], ["updated_at", "2018-06-08 23:24:38.531339"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.535016"], ["updated_at", "2018-06-08 23:24:38.535016"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.536617"], ["updated_at", "2018-06-08 23:24:38.536617"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.538171"], ["updated_at", "2018-06-08 23:24:38.538171"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.542565"], ["updated_at", "2018-06-08 23:24:38.542565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.556739"], ["updated_at", "2018-06-08 23:24:38.556739"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.566863"], ["updated_at", "2018-06-08 23:24:38.566863"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.568254"], ["updated_at", "2018-06-08 23:24:38.568254"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:24:38.577523"], ["updated_at", "2018-06-08 23:24:38.577523"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:24:38.583117"], ["updated_at", "2018-06-08 23:24:38.583117"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:24:38.598336"], ["updated_at", "2018-06-08 23:24:38.598336"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:24:38.600259"], ["updated_at", "2018-06-08 23:24:38.600259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:24:38.603043"], ["updated_at", "2018-06-08 23:24:38.603043"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:24:38.604644"], ["updated_at", "2018-06-08 23:24:38.604644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:24:38.609687"], ["updated_at", "2018-06-08 23:24:38.609687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:24:38.610945"], ["updated_at", "2018-06-08 23:24:38.610945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.611887"], ["updated_at", "2018-06-08 23:24:38.611887"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.614379"], ["updated_at", "2018-06-08 23:24:38.614379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.620139"], ["updated_at", "2018-06-08 23:24:38.620139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.623748"], ["updated_at", "2018-06-08 23:24:38.623748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.628502"], ["updated_at", "2018-06-08 23:24:38.628502"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.631832"], ["updated_at", "2018-06-08 23:24:38.631832"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.640419"], ["updated_at", "2018-06-08 23:24:38.640419"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.644201"], ["updated_at", "2018-06-08 23:24:38.644201"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.4ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.650548"], ["updated_at", "2018-06-08 23:24:38.650548"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.652262"], ["updated_at", "2018-06-08 23:24:38.652262"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.657615"], ["updated_at", "2018-06-08 23:24:38.657615"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:24:38.659457"], ["updated_at", "2018-06-08 23:24:38.659457"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.662965"], ["updated_at", "2018-06-08 23:24:38.662965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.671180"], ["updated_at", "2018-06-08 23:24:38.671180"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.704234"], ["updated_at", "2018-06-08 23:24:38.704234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.705329"], ["updated_at", "2018-06-08 23:24:38.705329"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.708682"], ["updated_at", "2018-06-08 23:24:38.708682"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.709731"], ["updated_at", "2018-06-08 23:24:38.709731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.712299"], ["updated_at", "2018-06-08 23:24:38.712299"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.721179"], ["updated_at", "2018-06-08 23:24:38.721179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.722268"], ["updated_at", "2018-06-08 23:24:38.722268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:24:38.731008"], ["updated_at", "2018-06-08 23:24:38.731008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:24:38.732406"], ["updated_at", "2018-06-08 23:24:38.732406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:24:38.735711"], ["updated_at", "2018-06-08 23:24:38.735711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:24:38.736956"], ["updated_at", "2018-06-08 23:24:38.736956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.759253"], ["updated_at", "2018-06-08 23:24:38.759253"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.760475"], ["updated_at", "2018-06-08 23:24:38.760475"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.763689"], ["updated_at", "2018-06-08 23:24:38.763689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.771961"], ["updated_at", "2018-06-08 23:24:38.771961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.779401"], ["updated_at", "2018-06-08 23:24:38.779401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.780442"], ["updated_at", "2018-06-08 23:24:38.780442"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.783983"], ["updated_at", "2018-06-08 23:24:38.783983"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.785942"], ["updated_at", "2018-06-08 23:24:38.785942"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.790182"], ["updated_at", "2018-06-08 23:24:38.790182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:24:38.801187"], ["updated_at", "2018-06-08 23:24:38.801187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:24:38.804616"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:24:38.814714"], ["updated_at", "2018-06-08 23:24:38.814714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:24:38.815803"], ["updated_at", "2018-06-08 23:24:38.815803"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.829912"], ["updated_at", "2018-06-08 23:24:38.829912"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.833977"], ["updated_at", "2018-06-08 23:24:38.833977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:24:38.840544"], ["updated_at", "2018-06-08 23:24:38.840544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.853234"], ["updated_at", "2018-06-08 23:24:38.853234"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.854997"], ["updated_at", "2018-06-08 23:24:38.854997"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.857768"], ["updated_at", "2018-06-08 23:24:38.857768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.858582"], ["updated_at", "2018-06-08 23:24:38.858582"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.861243"], ["updated_at", "2018-06-08 23:24:38.861243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:24:38.869666"], ["updated_at", "2018-06-08 23:24:38.869666"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.878329"], ["updated_at", "2018-06-08 23:24:38.878329"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.887199"], ["updated_at", "2018-06-08 23:24:38.887199"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.888927"], ["updated_at", "2018-06-08 23:24:38.888927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:24:38.903007"], ["updated_at", "2018-06-08 23:24:38.903007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.907359"], ["updated_at", "2018-06-08 23:24:38.907359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.912499"], ["updated_at", "2018-06-08 23:24:38.912499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.913760"], ["updated_at", "2018-06-08 23:24:38.913760"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.930409"], ["updated_at", "2018-06-08 23:24:38.930409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:38.932019"], ["updated_at", "2018-06-08 23:24:38.932019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:24:39.070640"], ["updated_at", "2018-06-08 23:24:39.070640"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:24:39.071849"], ["updated_at", "2018-06-08 23:24:39.071849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:39.093168"], ["updated_at", "2018-06-08 23:24:39.093168"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:39.099110"], ["updated_at", "2018-06-08 23:24:39.099110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (3.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:39.109220"], ["updated_at", "2018-06-08 23:24:39.109220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:24:39.112391"], ["updated_at", "2018-06-08 23:24:39.112391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:24:39.137866"], ["updated_at", "2018-06-08 23:24:39.137866"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.2ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (1.0ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:28:37.685168"], ["updated_at", "2018-06-08 23:28:37.685168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:28:37.716354"], ["updated_at", "2018-06-08 23:28:37.716354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.746052"], ["updated_at", "2018-06-08 23:28:37.746052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.747367"], ["updated_at", "2018-06-08 23:28:37.747367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.748895"], ["updated_at", "2018-06-08 23:28:37.748895"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.753333"], ["updated_at", "2018-06-08 23:28:37.753333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.754521"], ["updated_at", "2018-06-08 23:28:37.754521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.767221"], ["updated_at", "2018-06-08 23:28:37.767221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.768884"], ["updated_at", "2018-06-08 23:28:37.768884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.775800"], ["updated_at", "2018-06-08 23:28:37.775800"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.778409"], ["updated_at", "2018-06-08 23:28:37.778409"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.779744"], ["updated_at", "2018-06-08 23:28:37.779744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.790280"], ["updated_at", "2018-06-08 23:28:37.790280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.791443"], ["updated_at", "2018-06-08 23:28:37.791443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.794082"], ["updated_at", "2018-06-08 23:28:37.794082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:28:37.798856"], ["updated_at", "2018-06-08 23:28:37.798856"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:28:37.800311"], ["updated_at", "2018-06-08 23:28:37.800311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:28:37.803609"], ["updated_at", "2018-06-08 23:28:37.803609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:28:37.805088"], ["updated_at", "2018-06-08 23:28:37.805088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.809836"], ["updated_at", "2018-06-08 23:28:37.809836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.824474"], ["updated_at", "2018-06-08 23:28:37.824474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.834910"], ["updated_at", "2018-06-08 23:28:37.834910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.836153"], ["updated_at", "2018-06-08 23:28:37.836153"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:28:37.838767"], ["updated_at", "2018-06-08 23:28:37.838767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:28:37.839822"], ["updated_at", "2018-06-08 23:28:37.839822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.840833"], ["updated_at", "2018-06-08 23:28:37.840833"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.843125"], ["updated_at", "2018-06-08 23:28:37.843125"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.849299"], ["updated_at", "2018-06-08 23:28:37.849299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.850432"], ["updated_at", "2018-06-08 23:28:37.850432"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.853673"], ["updated_at", "2018-06-08 23:28:37.853673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.854660"], ["updated_at", "2018-06-08 23:28:37.854660"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.857277"], ["updated_at", "2018-06-08 23:28:37.857277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.862657"], ["updated_at", "2018-06-08 23:28:37.862657"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:28:37.872143"], ["updated_at", "2018-06-08 23:28:37.872143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:28:37.874547"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:28:37.876308"], ["updated_at", "2018-06-08 23:28:37.876308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:28:37.877424"], ["updated_at", "2018-06-08 23:28:37.877424"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.883264"], ["updated_at", "2018-06-08 23:28:37.883264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.891797"], ["updated_at", "2018-06-08 23:28:37.891797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.892778"], ["updated_at", "2018-06-08 23:28:37.892778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.896892"], ["updated_at", "2018-06-08 23:28:37.896892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.901787"], ["updated_at", "2018-06-08 23:28:37.901787"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.907207"], ["updated_at", "2018-06-08 23:28:37.907207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.908099"], ["updated_at", "2018-06-08 23:28:37.908099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.922423"], ["updated_at", "2018-06-08 23:28:37.922423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.923422"], ["updated_at", "2018-06-08 23:28:37.923422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:28:37.931523"], ["updated_at", "2018-06-08 23:28:37.931523"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.952844"], ["updated_at", "2018-06-08 23:28:37.952844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.954094"], ["updated_at", "2018-06-08 23:28:37.954094"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.957469"], ["updated_at", "2018-06-08 23:28:37.957469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.959893"], ["updated_at", "2018-06-08 23:28:37.959893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.963223"], ["updated_at", "2018-06-08 23:28:37.963223"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:28:37.969624"], ["updated_at", "2018-06-08 23:28:37.969624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:37.973086"], ["updated_at", "2018-06-08 23:28:37.973086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:28:37.984666"], ["updated_at", "2018-06-08 23:28:37.984666"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.2ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.007474"], ["updated_at", "2018-06-08 23:28:38.007474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.022877"], ["updated_at", "2018-06-08 23:28:38.022877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.024000"], ["updated_at", "2018-06-08 23:28:38.024000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.024966"], ["updated_at", "2018-06-08 23:28:38.024966"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:28:38.029697"], ["updated_at", "2018-06-08 23:28:38.029697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:28:38.030967"], ["updated_at", "2018-06-08 23:28:38.030967"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:28:38.033742"], ["updated_at", "2018-06-08 23:28:38.033742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:28:38.034628"], ["updated_at", "2018-06-08 23:28:38.034628"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.042477"], ["updated_at", "2018-06-08 23:28:38.042477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.043418"], ["updated_at", "2018-06-08 23:28:38.043418"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.045997"], ["updated_at", "2018-06-08 23:28:38.045997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.048262"], ["updated_at", "2018-06-08 23:28:38.048262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.052752"], ["updated_at", "2018-06-08 23:28:38.052752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.053670"], ["updated_at", "2018-06-08 23:28:38.053670"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.058709"], ["updated_at", "2018-06-08 23:28:38.058709"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.061295"], ["updated_at", "2018-06-08 23:28:38.061295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.072254"], ["updated_at", "2018-06-08 23:28:38.072254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.077993"], ["updated_at", "2018-06-08 23:28:38.077993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.079268"], ["updated_at", "2018-06-08 23:28:38.079268"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.082953"], ["updated_at", "2018-06-08 23:28:38.082953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.085949"], ["updated_at", "2018-06-08 23:28:38.085949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.106815"], ["updated_at", "2018-06-08 23:28:38.106815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.113374"], ["updated_at", "2018-06-08 23:28:38.113374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:28:38.115301"], ["updated_at", "2018-06-08 23:28:38.115301"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.174156"], ["updated_at", "2018-06-08 23:28:38.174156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.181811"], ["updated_at", "2018-06-08 23:28:38.181811"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.184842"], ["updated_at", "2018-06-08 23:28:38.184842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:28:38.192442"], ["updated_at", "2018-06-08 23:28:38.192442"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:28:38.193421"], ["updated_at", "2018-06-08 23:28:38.193421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:28:38.209392"], ["updated_at", "2018-06-08 23:28:38.209392"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:28:38.221434"], ["updated_at", "2018-06-08 23:28:38.221434"]]  (0.1ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (3.8ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.9ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.606595"], ["updated_at", "2018-06-08 23:30:54.606595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.608034"], ["updated_at", "2018-06-08 23:30:54.608034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.627990"], ["updated_at", "2018-06-08 23:30:54.627990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.638875"], ["updated_at", "2018-06-08 23:30:54.638875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.645148"], ["updated_at", "2018-06-08 23:30:54.645148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.646730"], ["updated_at", "2018-06-08 23:30:54.646730"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:30:54.675819"], ["updated_at", "2018-06-08 23:30:54.675819"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:30:54.680072"], ["updated_at", "2018-06-08 23:30:54.680072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.692129"], ["updated_at", "2018-06-08 23:30:54.692129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.699286"], ["updated_at", "2018-06-08 23:30:54.699286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.700233"], ["updated_at", "2018-06-08 23:30:54.700233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.702836"], ["updated_at", "2018-06-08 23:30:54.702836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:30:54.707366"], ["updated_at", "2018-06-08 23:30:54.707366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.710314"], ["updated_at", "2018-06-08 23:30:54.710314"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:30:54.721544"], ["updated_at", "2018-06-08 23:30:54.721544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.726567"], ["updated_at", "2018-06-08 23:30:54.726567"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.730438"], ["updated_at", "2018-06-08 23:30:54.730438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.733081"], ["updated_at", "2018-06-08 23:30:54.733081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.738779"], ["updated_at", "2018-06-08 23:30:54.738779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.745214"], ["updated_at", "2018-06-08 23:30:54.745214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.751084"], ["updated_at", "2018-06-08 23:30:54.751084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.759232"], ["updated_at", "2018-06-08 23:30:54.759232"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.787113"], ["updated_at", "2018-06-08 23:30:54.787113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.788248"], ["updated_at", "2018-06-08 23:30:54.788248"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.791322"], ["updated_at", "2018-06-08 23:30:54.791322"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.792726"], ["updated_at", "2018-06-08 23:30:54.792726"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.804753"], ["updated_at", "2018-06-08 23:30:54.804753"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.806179"], ["updated_at", "2018-06-08 23:30:54.806179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:30:54.819174"], ["updated_at", "2018-06-08 23:30:54.819174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:30:54.820674"], ["updated_at", "2018-06-08 23:30:54.820674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:30:54.823224"], ["updated_at", "2018-06-08 23:30:54.823224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:30:54.824345"], ["updated_at", "2018-06-08 23:30:54.824345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.829117"], ["updated_at", "2018-06-08 23:30:54.829117"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.830318"], ["updated_at", "2018-06-08 23:30:54.830318"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.833050"], ["updated_at", "2018-06-08 23:30:54.833050"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.835231"], ["updated_at", "2018-06-08 23:30:54.835231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.836659"], ["updated_at", "2018-06-08 23:30:54.836659"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.839548"], ["updated_at", "2018-06-08 23:30:54.839548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.840499"], ["updated_at", "2018-06-08 23:30:54.840499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.841607"], ["updated_at", "2018-06-08 23:30:54.841607"]]  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.846344"], ["updated_at", "2018-06-08 23:30:54.846344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.847511"], ["updated_at", "2018-06-08 23:30:54.847511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:30:54.859089"], ["updated_at", "2018-06-08 23:30:54.859089"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:30:54.861151"], ["updated_at", "2018-06-08 23:30:54.861151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.862812"], ["updated_at", "2018-06-08 23:30:54.862812"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.865539"], ["updated_at", "2018-06-08 23:30:54.865539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:30:54.872847"], ["updated_at", "2018-06-08 23:30:54.872847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:30:54.873807"], ["updated_at", "2018-06-08 23:30:54.873807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:30:54.875807"], ["updated_at", "2018-06-08 23:30:54.875807"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:30:54.877877"], ["updated_at", "2018-06-08 23:30:54.877877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.887184"], ["updated_at", "2018-06-08 23:30:54.887184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.889994"], ["updated_at", "2018-06-08 23:30:54.889994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.894647"], ["updated_at", "2018-06-08 23:30:54.894647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:30:54.905117"], ["updated_at", "2018-06-08 23:30:54.905117"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.944518"], ["updated_at", "2018-06-08 23:30:54.944518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.945415"], ["updated_at", "2018-06-08 23:30:54.945415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.946280"], ["updated_at", "2018-06-08 23:30:54.946280"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.949032"], ["updated_at", "2018-06-08 23:30:54.949032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.955403"], ["updated_at", "2018-06-08 23:30:54.955403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.958405"], ["updated_at", "2018-06-08 23:30:54.958405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.962642"], ["updated_at", "2018-06-08 23:30:54.962642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.964991"], ["updated_at", "2018-06-08 23:30:54.964991"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.972452"], ["updated_at", "2018-06-08 23:30:54.972452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.973340"], ["updated_at", "2018-06-08 23:30:54.973340"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.975609"], ["updated_at", "2018-06-08 23:30:54.975609"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.982007"], ["updated_at", "2018-06-08 23:30:54.982007"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.983156"], ["updated_at", "2018-06-08 23:30:54.983156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.989126"], ["updated_at", "2018-06-08 23:30:54.989126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.989930"], ["updated_at", "2018-06-08 23:30:54.989930"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.991974"], ["updated_at", "2018-06-08 23:30:54.991974"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:54.992850"], ["updated_at", "2018-06-08 23:30:54.992850"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:30:54.997348"], ["updated_at", "2018-06-08 23:30:54.997348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 23:30:54.999015"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:30:55.000649"], ["updated_at", "2018-06-08 23:30:55.000649"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:30:55.001806"], ["updated_at", "2018-06-08 23:30:55.001806"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:55.006809"], ["updated_at", "2018-06-08 23:30:55.006809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:55.007809"], ["updated_at", "2018-06-08 23:30:55.007809"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:55.010248"], ["updated_at", "2018-06-08 23:30:55.010248"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:30:55.011834"], ["updated_at", "2018-06-08 23:30:55.011834"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:55.237371"], ["updated_at", "2018-06-08 23:30:55.237371"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:30:55.266439"], ["updated_at", "2018-06-08 23:30:55.266439"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:55.269214"], ["updated_at", "2018-06-08 23:30:55.269214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:55.275345"], ["updated_at", "2018-06-08 23:30:55.275345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:30:55.279420"], ["updated_at", "2018-06-08 23:30:55.279420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:30:55.285800"], ["updated_at", "2018-06-08 23:30:55.285800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:30:55.287082"], ["updated_at", "2018-06-08 23:30:55.287082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.802096"], ["updated_at", "2018-06-08 23:31:17.802096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.819513"], ["updated_at", "2018-06-08 23:31:17.819513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.824180"], ["updated_at", "2018-06-08 23:31:17.824180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.825088"], ["updated_at", "2018-06-08 23:31:17.825088"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.827763"], ["updated_at", "2018-06-08 23:31:17.827763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.846601"], ["updated_at", "2018-06-08 23:31:17.846601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.868636"], ["updated_at", "2018-06-08 23:31:17.868636"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.869492"], ["updated_at", "2018-06-08 23:31:17.869492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.873046"], ["updated_at", "2018-06-08 23:31:17.873046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:31:17.878009"], ["updated_at", "2018-06-08 23:31:17.878009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:31:17.879363"], ["updated_at", "2018-06-08 23:31:17.879363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:31:17.881450"], ["updated_at", "2018-06-08 23:31:17.881450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:31:17.882314"], ["updated_at", "2018-06-08 23:31:17.882314"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.885770"], ["updated_at", "2018-06-08 23:31:17.885770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.891532"], ["updated_at", "2018-06-08 23:31:17.891532"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.901565"], ["updated_at", "2018-06-08 23:31:17.901565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.910602"], ["updated_at", "2018-06-08 23:31:17.910602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:31:17.918711"], ["updated_at", "2018-06-08 23:31:17.918711"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.924483"], ["updated_at", "2018-06-08 23:31:17.924483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.931307"], ["updated_at", "2018-06-08 23:31:17.931307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.936068"], ["updated_at", "2018-06-08 23:31:17.936068"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.939169"], ["updated_at", "2018-06-08 23:31:17.939169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.942251"], ["updated_at", "2018-06-08 23:31:17.942251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.946855"], ["updated_at", "2018-06-08 23:31:17.946855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.947904"], ["updated_at", "2018-06-08 23:31:17.947904"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.950520"], ["updated_at", "2018-06-08 23:31:17.950520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.951276"], ["updated_at", "2018-06-08 23:31:17.951276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.962017"], ["updated_at", "2018-06-08 23:31:17.962017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.974824"], ["updated_at", "2018-06-08 23:31:17.974824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.976123"], ["updated_at", "2018-06-08 23:31:17.976123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.977156"], ["updated_at", "2018-06-08 23:31:17.977156"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:31:17.983744"], ["updated_at", "2018-06-08 23:31:17.983744"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:31:17.986065"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:31:17.987725"], ["updated_at", "2018-06-08 23:31:17.987725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:31:17.988954"], ["updated_at", "2018-06-08 23:31:17.988954"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:31:17.993852"], ["updated_at", "2018-06-08 23:31:17.993852"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:31:17.995155"], ["updated_at", "2018-06-08 23:31:17.995155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.996156"], ["updated_at", "2018-06-08 23:31:17.996156"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.998780"], ["updated_at", "2018-06-08 23:31:17.998780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:17.999763"], ["updated_at", "2018-06-08 23:31:17.999763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.010454"], ["updated_at", "2018-06-08 23:31:18.010454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.013224"], ["updated_at", "2018-06-08 23:31:18.013224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.017235"], ["updated_at", "2018-06-08 23:31:18.017235"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.043107"], ["updated_at", "2018-06-08 23:31:18.043107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:31:18.044327"], ["updated_at", "2018-06-08 23:31:18.044327"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.050910"], ["updated_at", "2018-06-08 23:31:18.050910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.052026"], ["updated_at", "2018-06-08 23:31:18.052026"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.053398"], ["updated_at", "2018-06-08 23:31:18.053398"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:31:18.058238"], ["updated_at", "2018-06-08 23:31:18.058238"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:31:18.059417"], ["updated_at", "2018-06-08 23:31:18.059417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:31:18.061475"], ["updated_at", "2018-06-08 23:31:18.061475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:31:18.062460"], ["updated_at", "2018-06-08 23:31:18.062460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.071845"], ["updated_at", "2018-06-08 23:31:18.071845"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.073728"], ["updated_at", "2018-06-08 23:31:18.073728"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.087366"], ["updated_at", "2018-06-08 23:31:18.087366"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.089150"], ["updated_at", "2018-06-08 23:31:18.089150"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.092640"], ["updated_at", "2018-06-08 23:31:18.092640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.093813"], ["updated_at", "2018-06-08 23:31:18.093813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.097070"], ["updated_at", "2018-06-08 23:31:18.097070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.101808"], ["updated_at", "2018-06-08 23:31:18.101808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.110656"], ["updated_at", "2018-06-08 23:31:18.110656"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.113759"], ["updated_at", "2018-06-08 23:31:18.113759"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.117027"], ["updated_at", "2018-06-08 23:31:18.117027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.123194"], ["updated_at", "2018-06-08 23:31:18.123194"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.125663"], ["updated_at", "2018-06-08 23:31:18.125663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.126550"], ["updated_at", "2018-06-08 23:31:18.126550"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:31:18.130933"], ["updated_at", "2018-06-08 23:31:18.130933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.143508"], ["updated_at", "2018-06-08 23:31:18.143508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.144467"], ["updated_at", "2018-06-08 23:31:18.144467"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.146604"], ["updated_at", "2018-06-08 23:31:18.146604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.147516"], ["updated_at", "2018-06-08 23:31:18.147516"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:31:18.149738"], ["updated_at", "2018-06-08 23:31:18.149738"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:31:18.152019"], ["updated_at", "2018-06-08 23:31:18.152019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:31:18.164197"], ["updated_at", "2018-06-08 23:31:18.164197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.167229"], ["updated_at", "2018-06-08 23:31:18.167229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.172831"], ["updated_at", "2018-06-08 23:31:18.172831"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.174196"], ["updated_at", "2018-06-08 23:31:18.174196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.184406"], ["updated_at", "2018-06-08 23:31:18.184406"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.185328"], ["updated_at", "2018-06-08 23:31:18.185328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (3.7ms) DELETE FROM "test_model_security_models" SQL (0.4ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:31:18.338858"], ["updated_at", "2018-06-08 23:31:18.338858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:31:18.340000"], ["updated_at", "2018-06-08 23:31:18.340000"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.357133"], ["updated_at", "2018-06-08 23:31:18.357133"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.369287"], ["updated_at", "2018-06-08 23:31:18.369287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.376495"], ["updated_at", "2018-06-08 23:31:18.376495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:31:18.380490"], ["updated_at", "2018-06-08 23:31:18.380490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:31:18.411339"], ["updated_at", "2018-06-08 23:31:18.411339"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (1.1ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.104922"], ["updated_at", "2018-06-08 23:33:56.104922"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.114836"], ["updated_at", "2018-06-08 23:33:56.114836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:33:56.154045"], ["updated_at", "2018-06-08 23:33:56.154045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:33:56.155587"], ["updated_at", "2018-06-08 23:33:56.155587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.156687"], ["updated_at", "2018-06-08 23:33:56.156687"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:33:56.159213"], ["updated_at", "2018-06-08 23:33:56.159213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:33:56.160312"], ["updated_at", "2018-06-08 23:33:56.160312"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:33:56.163401"], ["updated_at", "2018-06-08 23:33:56.163401"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:33:56.164476"], ["updated_at", "2018-06-08 23:33:56.164476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.168631"], ["updated_at", "2018-06-08 23:33:56.168631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.169534"], ["updated_at", "2018-06-08 23:33:56.169534"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.172648"], ["updated_at", "2018-06-08 23:33:56.172648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.175036"], ["updated_at", "2018-06-08 23:33:56.175036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.178809"], ["updated_at", "2018-06-08 23:33:56.178809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.179787"], ["updated_at", "2018-06-08 23:33:56.179787"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.183909"], ["updated_at", "2018-06-08 23:33:56.183909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.195200"], ["updated_at", "2018-06-08 23:33:56.195200"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.204228"], ["updated_at", "2018-06-08 23:33:56.204228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.205287"], ["updated_at", "2018-06-08 23:33:56.205287"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.208175"], ["updated_at", "2018-06-08 23:33:56.208175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.213673"], ["updated_at", "2018-06-08 23:33:56.213673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.215016"], ["updated_at", "2018-06-08 23:33:56.215016"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.239561"], ["updated_at", "2018-06-08 23:33:56.239561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:33:56.246639"], ["updated_at", "2018-06-08 23:33:56.246639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:33:56.250040"], ["updated_at", "2018-06-08 23:33:56.250040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.261715"], ["updated_at", "2018-06-08 23:33:56.261715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.264913"], ["updated_at", "2018-06-08 23:33:56.264913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.269447"], ["updated_at", "2018-06-08 23:33:56.269447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.270382"], ["updated_at", "2018-06-08 23:33:56.270382"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:33:56.277795"], ["updated_at", "2018-06-08 23:33:56.277795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.309278"], ["updated_at", "2018-06-08 23:33:56.309278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.310329"], ["updated_at", "2018-06-08 23:33:56.310329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:33:56.323058"], ["updated_at", "2018-06-08 23:33:56.323058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.330734"], ["updated_at", "2018-06-08 23:33:56.330734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.331827"], ["updated_at", "2018-06-08 23:33:56.331827"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.334286"], ["updated_at", "2018-06-08 23:33:56.334286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.335089"], ["updated_at", "2018-06-08 23:33:56.335089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.335821"], ["updated_at", "2018-06-08 23:33:56.335821"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.338103"], ["updated_at", "2018-06-08 23:33:56.338103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.338882"], ["updated_at", "2018-06-08 23:33:56.338882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.351044"], ["updated_at", "2018-06-08 23:33:56.351044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.357041"], ["updated_at", "2018-06-08 23:33:56.357041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.359626"], ["updated_at", "2018-06-08 23:33:56.359626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.363126"], ["updated_at", "2018-06-08 23:33:56.363126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:33:56.367541"], ["updated_at", "2018-06-08 23:33:56.367541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.369643"], ["updated_at", "2018-06-08 23:33:56.369643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:33:56.374429"], ["updated_at", "2018-06-08 23:33:56.374429"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:33:56.375559"], ["updated_at", "2018-06-08 23:33:56.375559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:33:56.377478"], ["updated_at", "2018-06-08 23:33:56.377478"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:33:56.378522"], ["updated_at", "2018-06-08 23:33:56.378522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.385560"], ["updated_at", "2018-06-08 23:33:56.385560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.386390"], ["updated_at", "2018-06-08 23:33:56.386390"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.395156"], ["updated_at", "2018-06-08 23:33:56.395156"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.396069"], ["updated_at", "2018-06-08 23:33:56.396069"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.398570"], ["updated_at", "2018-06-08 23:33:56.398570"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.400577"], ["updated_at", "2018-06-08 23:33:56.400577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.401384"], ["updated_at", "2018-06-08 23:33:56.401384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:33:56.407677"], ["updated_at", "2018-06-08 23:33:56.407677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 23:33:56.409033"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:33:56.410516"], ["updated_at", "2018-06-08 23:33:56.410516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:33:56.411492"], ["updated_at", "2018-06-08 23:33:56.411492"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.418691"], ["updated_at", "2018-06-08 23:33:56.418691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.419752"], ["updated_at", "2018-06-08 23:33:56.419752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.422008"], ["updated_at", "2018-06-08 23:33:56.422008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.425605"], ["updated_at", "2018-06-08 23:33:56.425605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.430691"], ["updated_at", "2018-06-08 23:33:56.430691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.431760"], ["updated_at", "2018-06-08 23:33:56.431760"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.434425"], ["updated_at", "2018-06-08 23:33:56.434425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.438927"], ["updated_at", "2018-06-08 23:33:56.438927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.449698"], ["updated_at", "2018-06-08 23:33:56.449698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.454248"], ["updated_at", "2018-06-08 23:33:56.454248"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:33:56.455184"], ["updated_at", "2018-06-08 23:33:56.455184"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.457812"], ["updated_at", "2018-06-08 23:33:56.457812"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.463423"], ["updated_at", "2018-06-08 23:33:56.463423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.464621"], ["updated_at", "2018-06-08 23:33:56.464621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.465483"], ["updated_at", "2018-06-08 23:33:56.465483"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.468201"], ["updated_at", "2018-06-08 23:33:56.468201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.471117"], ["updated_at", "2018-06-08 23:33:56.471117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.473913"], ["updated_at", "2018-06-08 23:33:56.473913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.591854"], ["updated_at", "2018-06-08 23:33:56.591854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.597276"], ["updated_at", "2018-06-08 23:33:56.597276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.600936"], ["updated_at", "2018-06-08 23:33:56.600936"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:33:56.615315"], ["updated_at", "2018-06-08 23:33:56.615315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:33:56.634168"], ["updated_at", "2018-06-08 23:33:56.634168"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:33:56.635140"], ["updated_at", "2018-06-08 23:33:56.635140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:33:56.657704"], ["updated_at", "2018-06-08 23:33:56.657704"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.848602"], ["updated_at", "2018-06-08 23:34:16.848602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.858704"], ["updated_at", "2018-06-08 23:34:16.858704"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.904991"], ["updated_at", "2018-06-08 23:34:16.904991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.912142"], ["updated_at", "2018-06-08 23:34:16.912142"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.913454"], ["updated_at", "2018-06-08 23:34:16.913454"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.916431"], ["updated_at", "2018-06-08 23:34:16.916431"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.917690"], ["updated_at", "2018-06-08 23:34:16.917690"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.921530"], ["updated_at", "2018-06-08 23:34:16.921530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.922889"], ["updated_at", "2018-06-08 23:34:16.922889"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.926150"], ["updated_at", "2018-06-08 23:34:16.926150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.932511"], ["updated_at", "2018-06-08 23:34:16.932511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.933649"], ["updated_at", "2018-06-08 23:34:16.933649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.934620"], ["updated_at", "2018-06-08 23:34:16.934620"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.937568"], ["updated_at", "2018-06-08 23:34:16.937568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.939152"], ["updated_at", "2018-06-08 23:34:16.939152"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:34:16.947047"], ["updated_at", "2018-06-08 23:34:16.947047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.970129"], ["updated_at", "2018-06-08 23:34:16.970129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.973472"], ["updated_at", "2018-06-08 23:34:16.973472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.977813"], ["updated_at", "2018-06-08 23:34:16.977813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.978765"], ["updated_at", "2018-06-08 23:34:16.978765"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.992683"], ["updated_at", "2018-06-08 23:34:16.992683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.995341"], ["updated_at", "2018-06-08 23:34:16.995341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:16.999459"], ["updated_at", "2018-06-08 23:34:16.999459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:34:17.006155"], ["updated_at", "2018-06-08 23:34:17.006155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 23:34:17.008687"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:34:17.010486"], ["updated_at", "2018-06-08 23:34:17.010486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:34:17.011557"], ["updated_at", "2018-06-08 23:34:17.011557"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:34:17.017388"], ["updated_at", "2018-06-08 23:34:17.017388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:34:17.018842"], ["updated_at", "2018-06-08 23:34:17.018842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:34:17.021616"], ["updated_at", "2018-06-08 23:34:17.021616"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:34:17.022921"], ["updated_at", "2018-06-08 23:34:17.022921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.039740"], ["updated_at", "2018-06-08 23:34:17.039740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.040807"], ["updated_at", "2018-06-08 23:34:17.040807"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.046173"], ["updated_at", "2018-06-08 23:34:17.046173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.047182"], ["updated_at", "2018-06-08 23:34:17.047182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.050210"], ["updated_at", "2018-06-08 23:34:17.050210"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:34:17.059965"], ["updated_at", "2018-06-08 23:34:17.059965"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.078986"], ["updated_at", "2018-06-08 23:34:17.078986"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.083958"], ["updated_at", "2018-06-08 23:34:17.083958"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.085732"], ["updated_at", "2018-06-08 23:34:17.085732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.086653"], ["updated_at", "2018-06-08 23:34:17.086653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.092644"], ["updated_at", "2018-06-08 23:34:17.092644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.093538"], ["updated_at", "2018-06-08 23:34:17.093538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.095943"], ["updated_at", "2018-06-08 23:34:17.095943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.099819"], ["updated_at", "2018-06-08 23:34:17.099819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.100737"], ["updated_at", "2018-06-08 23:34:17.100737"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.103545"], ["updated_at", "2018-06-08 23:34:17.103545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.104594"], ["updated_at", "2018-06-08 23:34:17.104594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:34:17.113285"], ["updated_at", "2018-06-08 23:34:17.113285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:34:17.114552"], ["updated_at", "2018-06-08 23:34:17.114552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:34:17.116496"], ["updated_at", "2018-06-08 23:34:17.116496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:34:17.117574"], ["updated_at", "2018-06-08 23:34:17.117574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.122620"], ["updated_at", "2018-06-08 23:34:17.122620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.144266"], ["updated_at", "2018-06-08 23:34:17.144266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:34:17.145440"], ["updated_at", "2018-06-08 23:34:17.145440"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.148646"], ["updated_at", "2018-06-08 23:34:17.148646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.149649"], ["updated_at", "2018-06-08 23:34:17.149649"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.152330"], ["updated_at", "2018-06-08 23:34:17.152330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.155305"], ["updated_at", "2018-06-08 23:34:17.155305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.158091"], ["updated_at", "2018-06-08 23:34:17.158091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:34:17.161721"], ["updated_at", "2018-06-08 23:34:17.161721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:34:17.164078"], ["updated_at", "2018-06-08 23:34:17.164078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.176185"], ["updated_at", "2018-06-08 23:34:17.176185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.177087"], ["updated_at", "2018-06-08 23:34:17.177087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.182974"], ["updated_at", "2018-06-08 23:34:17.182974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.188478"], ["updated_at", "2018-06-08 23:34:17.188478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.189833"], ["updated_at", "2018-06-08 23:34:17.189833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.190592"], ["updated_at", "2018-06-08 23:34:17.190592"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.197405"], ["updated_at", "2018-06-08 23:34:17.197405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.200594"], ["updated_at", "2018-06-08 23:34:17.200594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.205651"], ["updated_at", "2018-06-08 23:34:17.205651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.212871"], ["updated_at", "2018-06-08 23:34:17.212871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.229515"], ["updated_at", "2018-06-08 23:34:17.229515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:34:17.235682"], ["updated_at", "2018-06-08 23:34:17.235682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.239129"], ["updated_at", "2018-06-08 23:34:17.239129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:34:17.246595"], ["updated_at", "2018-06-08 23:34:17.246595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:34:17.247508"], ["updated_at", "2018-06-08 23:34:17.247508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.248343"], ["updated_at", "2018-06-08 23:34:17.248343"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.250411"], ["updated_at", "2018-06-08 23:34:17.250411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.307776"], ["updated_at", "2018-06-08 23:34:17.307776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.315204"], ["updated_at", "2018-06-08 23:34:17.315204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.318767"], ["updated_at", "2018-06-08 23:34:17.318767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:34:17.326440"], ["updated_at", "2018-06-08 23:34:17.326440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:34:17.327373"], ["updated_at", "2018-06-08 23:34:17.327373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:34:17.371217"], ["updated_at", "2018-06-08 23:34:17.371217"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:34:17.379988"], ["updated_at", "2018-06-08 23:34:17.379988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (1.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope ------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.087799"], ["updated_at", "2018-06-08 23:39:41.087799"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.139022"], ["updated_at", "2018-06-08 23:39:41.139022"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:39:41.141492"], ["updated_at", "2018-06-08 23:39:41.141492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:39:41.142427"], ["updated_at", "2018-06-08 23:39:41.142427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.143303"], ["updated_at", "2018-06-08 23:39:41.143303"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.145395"], ["updated_at", "2018-06-08 23:39:41.145395"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.146349"], ["updated_at", "2018-06-08 23:39:41.146349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.147538"], ["updated_at", "2018-06-08 23:39:41.147538"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.150493"], ["updated_at", "2018-06-08 23:39:41.150493"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.157493"], ["updated_at", "2018-06-08 23:39:41.157493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.162829"], ["updated_at", "2018-06-08 23:39:41.162829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.170058"], ["updated_at", "2018-06-08 23:39:41.170058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.171344"], ["updated_at", "2018-06-08 23:39:41.171344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:39:41.187414"], ["updated_at", "2018-06-08 23:39:41.187414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:39:41.190847"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:39:41.192668"], ["updated_at", "2018-06-08 23:39:41.192668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:39:41.193627"], ["updated_at", "2018-06-08 23:39:41.193627"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.198464"], ["updated_at", "2018-06-08 23:39:41.198464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.199348"], ["updated_at", "2018-06-08 23:39:41.199348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.201843"], ["updated_at", "2018-06-08 23:39:41.201843"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.208259"], ["updated_at", "2018-06-08 23:39:41.208259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:39:41.209447"], ["updated_at", "2018-06-08 23:39:41.209447"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:39:41.213289"], ["updated_at", "2018-06-08 23:39:41.213289"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:39:41.215851"], ["updated_at", "2018-06-08 23:39:41.215851"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:39:41.219499"], ["updated_at", "2018-06-08 23:39:41.219499"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:39:41.221494"], ["updated_at", "2018-06-08 23:39:41.221494"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.259899"], ["updated_at", "2018-06-08 23:39:41.259899"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.261450"], ["updated_at", "2018-06-08 23:39:41.261450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.279503"], ["updated_at", "2018-06-08 23:39:41.279503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.285739"], ["updated_at", "2018-06-08 23:39:41.285739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.287493"], ["updated_at", "2018-06-08 23:39:41.287493"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.291362"], ["updated_at", "2018-06-08 23:39:41.291362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.296116"], ["updated_at", "2018-06-08 23:39:41.296116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:39:41.311133"], ["updated_at", "2018-06-08 23:39:41.311133"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.327323"], ["updated_at", "2018-06-08 23:39:41.327323"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.3ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:39:41.336855"], ["updated_at", "2018-06-08 23:39:41.336855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.340982"], ["updated_at", "2018-06-08 23:39:41.340982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.346546"], ["updated_at", "2018-06-08 23:39:41.346546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.347685"], ["updated_at", "2018-06-08 23:39:41.347685"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.350281"], ["updated_at", "2018-06-08 23:39:41.350281"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.351784"], ["updated_at", "2018-06-08 23:39:41.351784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.363517"], ["updated_at", "2018-06-08 23:39:41.363517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.364711"], ["updated_at", "2018-06-08 23:39:41.364711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.378535"], ["updated_at", "2018-06-08 23:39:41.378535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.399635"], ["updated_at", "2018-06-08 23:39:41.399635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.409093"], ["updated_at", "2018-06-08 23:39:41.409093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.410561"], ["updated_at", "2018-06-08 23:39:41.410561"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.416619"], ["updated_at", "2018-06-08 23:39:41.416619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.417673"], ["updated_at", "2018-06-08 23:39:41.417673"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.420925"], ["updated_at", "2018-06-08 23:39:41.420925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.429837"], ["updated_at", "2018-06-08 23:39:41.429837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.436183"], ["updated_at", "2018-06-08 23:39:41.436183"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.439629"], ["updated_at", "2018-06-08 23:39:41.439629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.444484"], ["updated_at", "2018-06-08 23:39:41.444484"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.446143"], ["updated_at", "2018-06-08 23:39:41.446143"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.447387"], ["updated_at", "2018-06-08 23:39:41.447387"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.450832"], ["updated_at", "2018-06-08 23:39:41.450832"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.452169"], ["updated_at", "2018-06-08 23:39:41.452169"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.458654"], ["updated_at", "2018-06-08 23:39:41.458654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.469721"], ["updated_at", "2018-06-08 23:39:41.469721"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.471308"], ["updated_at", "2018-06-08 23:39:41.471308"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.474821"], ["updated_at", "2018-06-08 23:39:41.474821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:39:41.480484"], ["updated_at", "2018-06-08 23:39:41.480484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:39:41.481580"], ["updated_at", "2018-06-08 23:39:41.481580"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:39:41.483641"], ["updated_at", "2018-06-08 23:39:41.483641"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:39:41.485265"], ["updated_at", "2018-06-08 23:39:41.485265"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:39:41.490953"], ["updated_at", "2018-06-08 23:39:41.490953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:39:41.494460"], ["updated_at", "2018-06-08 23:39:41.494460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.522987"], ["updated_at", "2018-06-08 23:39:41.522987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.524021"], ["updated_at", "2018-06-08 23:39:41.524021"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.526260"], ["updated_at", "2018-06-08 23:39:41.526260"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.527185"], ["updated_at", "2018-06-08 23:39:41.527185"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.530337"], ["updated_at", "2018-06-08 23:39:41.530337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.531291"], ["updated_at", "2018-06-08 23:39:41.531291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.534106"], ["updated_at", "2018-06-08 23:39:41.534106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:39:41.542783"], ["updated_at", "2018-06-08 23:39:41.542783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.547742"], ["updated_at", "2018-06-08 23:39:41.547742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.549901"], ["updated_at", "2018-06-08 23:39:41.549901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.552840"], ["updated_at", "2018-06-08 23:39:41.552840"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:39:41.600594"], ["updated_at", "2018-06-08 23:39:41.600594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:39:41.602083"], ["updated_at", "2018-06-08 23:39:41.602083"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.642566"], ["updated_at", "2018-06-08 23:39:41.642566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.653687"], ["updated_at", "2018-06-08 23:39:41.653687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.658426"], ["updated_at", "2018-06-08 23:39:41.658426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:39:41.676937"], ["updated_at", "2018-06-08 23:39:41.676937"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 9], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:41.703657"], ["updated_at", "2018-06-08 23:39:41.703657"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:47.962936"], ["updated_at", "2018-06-08 23:39:47.962936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:47.970718"], ["updated_at", "2018-06-08 23:39:47.970718"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.011133"], ["updated_at", "2018-06-08 23:39:48.011133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.018627"], ["updated_at", "2018-06-08 23:39:48.018627"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.035468"], ["updated_at", "2018-06-08 23:39:48.035468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.050584"], ["updated_at", "2018-06-08 23:39:48.050584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.060097"], ["updated_at", "2018-06-08 23:39:48.060097"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.062698"], ["updated_at", "2018-06-08 23:39:48.062698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.066086"], ["updated_at", "2018-06-08 23:39:48.066086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:39:48.075546"], ["updated_at", "2018-06-08 23:39:48.075546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:39:48.078449"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:39:48.080350"], ["updated_at", "2018-06-08 23:39:48.080350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:39:48.081763"], ["updated_at", "2018-06-08 23:39:48.081763"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.087565"], ["updated_at", "2018-06-08 23:39:48.087565"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.094649"], ["updated_at", "2018-06-08 23:39:48.094649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.095606"], ["updated_at", "2018-06-08 23:39:48.095606"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.097959"], ["updated_at", "2018-06-08 23:39:48.097959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.101233"], ["updated_at", "2018-06-08 23:39:48.101233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.106562"], ["updated_at", "2018-06-08 23:39:48.106562"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.108348"], ["updated_at", "2018-06-08 23:39:48.108348"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.111192"], ["updated_at", "2018-06-08 23:39:48.111192"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.112235"], ["updated_at", "2018-06-08 23:39:48.112235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:39:48.146417"], ["updated_at", "2018-06-08 23:39:48.146417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.164925"], ["updated_at", "2018-06-08 23:39:48.164925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.166092"], ["updated_at", "2018-06-08 23:39:48.166092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:39:48.183060"], ["updated_at", "2018-06-08 23:39:48.183060"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:39:48.184250"], ["updated_at", "2018-06-08 23:39:48.184250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:39:48.188219"], ["updated_at", "2018-06-08 23:39:48.188219"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:39:48.190238"], ["updated_at", "2018-06-08 23:39:48.190238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.195593"], ["updated_at", "2018-06-08 23:39:48.195593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.196948"], ["updated_at", "2018-06-08 23:39:48.196948"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.207873"], ["updated_at", "2018-06-08 23:39:48.207873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.209344"], ["updated_at", "2018-06-08 23:39:48.209344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.210427"], ["updated_at", "2018-06-08 23:39:48.210427"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:39:48.213807"], ["updated_at", "2018-06-08 23:39:48.213807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:39:48.215814"], ["updated_at", "2018-06-08 23:39:48.215814"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.217343"], ["updated_at", "2018-06-08 23:39:48.217343"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.221590"], ["updated_at", "2018-06-08 23:39:48.221590"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.223484"], ["updated_at", "2018-06-08 23:39:48.223484"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.227393"], ["updated_at", "2018-06-08 23:39:48.227393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:39:48.228409"], ["updated_at", "2018-06-08 23:39:48.228409"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.232014"], ["updated_at", "2018-06-08 23:39:48.232014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.240122"], ["updated_at", "2018-06-08 23:39:48.240122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.241497"], ["updated_at", "2018-06-08 23:39:48.241497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.250604"], ["updated_at", "2018-06-08 23:39:48.250604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.259440"], ["updated_at", "2018-06-08 23:39:48.259440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.260620"], ["updated_at", "2018-06-08 23:39:48.260620"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.263027"], ["updated_at", "2018-06-08 23:39:48.263027"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.264259"], ["updated_at", "2018-06-08 23:39:48.264259"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.268098"], ["updated_at", "2018-06-08 23:39:48.268098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.269564"], ["updated_at", "2018-06-08 23:39:48.269564"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.274171"], ["updated_at", "2018-06-08 23:39:48.274171"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.275652"], ["updated_at", "2018-06-08 23:39:48.275652"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.285932"], ["updated_at", "2018-06-08 23:39:48.285932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.287091"], ["updated_at", "2018-06-08 23:39:48.287091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.288426"], ["updated_at", "2018-06-08 23:39:48.288426"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:39:48.293188"], ["updated_at", "2018-06-08 23:39:48.293188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:39:48.296669"], ["updated_at", "2018-06-08 23:39:48.296669"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.2ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.339887"], ["updated_at", "2018-06-08 23:39:48.339887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.346079"], ["updated_at", "2018-06-08 23:39:48.346079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.350141"], ["updated_at", "2018-06-08 23:39:48.350141"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.352777"], ["updated_at", "2018-06-08 23:39:48.352777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.358981"], ["updated_at", "2018-06-08 23:39:48.358981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.365764"], ["updated_at", "2018-06-08 23:39:48.365764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.366813"], ["updated_at", "2018-06-08 23:39:48.366813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.369770"], ["updated_at", "2018-06-08 23:39:48.369770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:39:48.375636"], ["updated_at", "2018-06-08 23:39:48.375636"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:39:48.377130"], ["updated_at", "2018-06-08 23:39:48.377130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:39:48.379439"], ["updated_at", "2018-06-08 23:39:48.379439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:39:48.380491"], ["updated_at", "2018-06-08 23:39:48.380491"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:39:48.390268"], ["updated_at", "2018-06-08 23:39:48.390268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.393510"], ["updated_at", "2018-06-08 23:39:48.393510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.401128"], ["updated_at", "2018-06-08 23:39:48.401128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.405238"], ["updated_at", "2018-06-08 23:39:48.405238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:39:48.414413"], ["updated_at", "2018-06-08 23:39:48.414413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.424530"], ["updated_at", "2018-06-08 23:39:48.424530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.431064"], ["updated_at", "2018-06-08 23:39:48.431064"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.432414"], ["updated_at", "2018-06-08 23:39:48.432414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.435181"], ["updated_at", "2018-06-08 23:39:48.435181"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:39:48.591109"], ["updated_at", "2018-06-08 23:39:48.591109"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.607436"], ["updated_at", "2018-06-08 23:39:48.607436"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.618562"], ["updated_at", "2018-06-08 23:39:48.618562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.624163"], ["updated_at", "2018-06-08 23:39:48.624163"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:48.646221"], ["updated_at", "2018-06-08 23:39:48.646221"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:39:48.653739"], ["updated_at", "2018-06-08 23:39:48.653739"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:39:48.655185"], ["updated_at", "2018-06-08 23:39:48.655185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope ------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:39:57.626832"], ["updated_at", "2018-06-08 23:39:57.626832"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:57.687986"], ["updated_at", "2018-06-08 23:39:57.687986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:57.700649"], ["updated_at", "2018-06-08 23:39:57.700649"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:57.704595"], ["updated_at", "2018-06-08 23:39:57.704595"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:57.737018"], ["updated_at", "2018-06-08 23:39:57.737018"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:39:57.749231"], ["updated_at", "2018-06-08 23:39:57.749231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:39:57.750616"], ["updated_at", "2018-06-08 23:39:57.750616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope ------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:57.970052"], ["updated_at", "2018-06-08 23:39:57.970052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 3)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:57.979389"], ["updated_at", "2018-06-08 23:39:57.979389"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:57.993194"], ["updated_at", "2018-06-08 23:39:57.993194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:39:58.001173"], ["updated_at", "2018-06-08 23:39:58.001173"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:39:58.003273"], ["updated_at", "2018-06-08 23:39:58.003273"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:39:58.007128"], ["updated_at", "2018-06-08 23:39:58.007128"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:39:58.009009"], ["updated_at", "2018-06-08 23:39:58.009009"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.015566"], ["updated_at", "2018-06-08 23:39:58.015566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.017101"], ["updated_at", "2018-06-08 23:39:58.017101"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:39:58.025892"], ["updated_at", "2018-06-08 23:39:58.025892"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:39:58.031055"], ["updated_at", "2018-06-08 23:39:58.031055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.046573"], ["updated_at", "2018-06-08 23:39:58.046573"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.048113"], ["updated_at", "2018-06-08 23:39:58.048113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.064437"], ["updated_at", "2018-06-08 23:39:58.064437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.065780"], ["updated_at", "2018-06-08 23:39:58.065780"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.069545"], ["updated_at", "2018-06-08 23:39:58.069545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.070805"], ["updated_at", "2018-06-08 23:39:58.070805"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.071973"], ["updated_at", "2018-06-08 23:39:58.071973"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.076646"], ["updated_at", "2018-06-08 23:39:58.076646"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.078204"], ["updated_at", "2018-06-08 23:39:58.078204"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.081125"], ["updated_at", "2018-06-08 23:39:58.081125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:39:58.096552"], ["updated_at", "2018-06-08 23:39:58.096552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:39:58.102306"], ["updated_at", "2018-06-08 23:39:58.102306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:39:58.103397"], ["updated_at", "2018-06-08 23:39:58.103397"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:39:58.105449"], ["updated_at", "2018-06-08 23:39:58.105449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:39:58.106654"], ["updated_at", "2018-06-08 23:39:58.106654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:39:58.118126"], ["updated_at", "2018-06-08 23:39:58.118126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.121243"], ["updated_at", "2018-06-08 23:39:58.121243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.126912"], ["updated_at", "2018-06-08 23:39:58.126912"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.129895"], ["updated_at", "2018-06-08 23:39:58.129895"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.134459"], ["updated_at", "2018-06-08 23:39:58.134459"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.135931"], ["updated_at", "2018-06-08 23:39:58.135931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.137286"], ["updated_at", "2018-06-08 23:39:58.137286"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.140531"], ["updated_at", "2018-06-08 23:39:58.140531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.143860"], ["updated_at", "2018-06-08 23:39:58.143860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.149239"], ["updated_at", "2018-06-08 23:39:58.149239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.150370"], ["updated_at", "2018-06-08 23:39:58.150370"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.153604"], ["updated_at", "2018-06-08 23:39:58.153604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.159030"], ["updated_at", "2018-06-08 23:39:58.159030"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.165859"], ["updated_at", "2018-06-08 23:39:58.165859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.173015"], ["updated_at", "2018-06-08 23:39:58.173015"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.176990"], ["updated_at", "2018-06-08 23:39:58.176990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.180778"], ["updated_at", "2018-06-08 23:39:58.180778"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.187190"], ["updated_at", "2018-06-08 23:39:58.187190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.195619"], ["updated_at", "2018-06-08 23:39:58.195619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:39:58.209179"], ["updated_at", "2018-06-08 23:39:58.209179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:39:58.212137"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:39:58.213673"], ["updated_at", "2018-06-08 23:39:58.213673"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:39:58.214790"], ["updated_at", "2018-06-08 23:39:58.214790"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.220030"], ["updated_at", "2018-06-08 23:39:58.220030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.221288"], ["updated_at", "2018-06-08 23:39:58.221288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.230310"], ["updated_at", "2018-06-08 23:39:58.230310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.231592"], ["updated_at", "2018-06-08 23:39:58.231592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.242360"], ["updated_at", "2018-06-08 23:39:58.242360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.243780"], ["updated_at", "2018-06-08 23:39:58.243780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.247072"], ["updated_at", "2018-06-08 23:39:58.247072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:39:58.258342"], ["updated_at", "2018-06-08 23:39:58.258342"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.274972"], ["updated_at", "2018-06-08 23:39:58.274972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.276644"], ["updated_at", "2018-06-08 23:39:58.276644"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.279567"], ["updated_at", "2018-06-08 23:39:58.279567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.282757"], ["updated_at", "2018-06-08 23:39:58.282757"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.292342"], ["updated_at", "2018-06-08 23:39:58.292342"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.312682"], ["updated_at", "2018-06-08 23:39:58.312682"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.313876"], ["updated_at", "2018-06-08 23:39:58.313876"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.316916"], ["updated_at", "2018-06-08 23:39:58.316916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.317958"], ["updated_at", "2018-06-08 23:39:58.317958"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.321613"], ["updated_at", "2018-06-08 23:39:58.321613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.329631"], ["updated_at", "2018-06-08 23:39:58.329631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.330864"], ["updated_at", "2018-06-08 23:39:58.330864"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:39:58.334327"], ["updated_at", "2018-06-08 23:39:58.334327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:39:58.336005"], ["updated_at", "2018-06-08 23:39:58.336005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.337089"], ["updated_at", "2018-06-08 23:39:58.337089"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.339949"], ["updated_at", "2018-06-08 23:39:58.339949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.341096"], ["updated_at", "2018-06-08 23:39:58.341096"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.384065"], ["updated_at", "2018-06-08 23:39:58.384065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:39:58.385597"], ["updated_at", "2018-06-08 23:39:58.385597"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.389507"], ["updated_at", "2018-06-08 23:39:58.389507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.397320"], ["updated_at", "2018-06-08 23:39:58.397320"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:39:58.398531"], ["updated_at", "2018-06-08 23:39:58.398531"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.677396"], ["updated_at", "2018-06-08 23:40:20.677396"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.710666"], ["updated_at", "2018-06-08 23:40:20.710666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.714629"], ["updated_at", "2018-06-08 23:40:20.714629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.728008"], ["updated_at", "2018-06-08 23:40:20.728008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:40:20.737324"], ["updated_at", "2018-06-08 23:40:20.737324"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:40:20.738818"], ["updated_at", "2018-06-08 23:40:20.738818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.3ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:40:20.828996"], ["updated_at", "2018-06-08 23:40:20.828996"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.891794"], ["updated_at", "2018-06-08 23:40:20.891794"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.895970"], ["updated_at", "2018-06-08 23:40:20.895970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.901755"], ["updated_at", "2018-06-08 23:40:20.901755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.908331"], ["updated_at", "2018-06-08 23:40:20.908331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.917892"], ["updated_at", "2018-06-08 23:40:20.917892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.927891"], ["updated_at", "2018-06-08 23:40:20.927891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.929149"], ["updated_at", "2018-06-08 23:40:20.929149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.932374"], ["updated_at", "2018-06-08 23:40:20.932374"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.940105"], ["updated_at", "2018-06-08 23:40:20.940105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.941425"], ["updated_at", "2018-06-08 23:40:20.941425"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.949397"], ["updated_at", "2018-06-08 23:40:20.949397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.964863"], ["updated_at", "2018-06-08 23:40:20.964863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.966012"], ["updated_at", "2018-06-08 23:40:20.966012"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.967164"], ["updated_at", "2018-06-08 23:40:20.967164"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:40:20.971545"], ["updated_at", "2018-06-08 23:40:20.971545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.974915"], ["updated_at", "2018-06-08 23:40:20.974915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.979891"], ["updated_at", "2018-06-08 23:40:20.979891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.980990"], ["updated_at", "2018-06-08 23:40:20.980990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.994612"], ["updated_at", "2018-06-08 23:40:20.994612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.995668"], ["updated_at", "2018-06-08 23:40:20.995668"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:20.998747"], ["updated_at", "2018-06-08 23:40:20.998747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.012552"], ["updated_at", "2018-06-08 23:40:21.012552"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.013945"], ["updated_at", "2018-06-08 23:40:21.013945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.028400"], ["updated_at", "2018-06-08 23:40:21.028400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.031669"], ["updated_at", "2018-06-08 23:40:21.031669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.034828"], ["updated_at", "2018-06-08 23:40:21.034828"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.041532"], ["updated_at", "2018-06-08 23:40:21.041532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.042688"], ["updated_at", "2018-06-08 23:40:21.042688"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:40:21.045301"], ["updated_at", "2018-06-08 23:40:21.045301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:40:21.046514"], ["updated_at", "2018-06-08 23:40:21.046514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:40:21.049024"], ["updated_at", "2018-06-08 23:40:21.049024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:40:21.050306"], ["updated_at", "2018-06-08 23:40:21.050306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.079115"], ["updated_at", "2018-06-08 23:40:21.079115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:40:21.087178"], ["updated_at", "2018-06-08 23:40:21.087178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:40:21.088504"], ["updated_at", "2018-06-08 23:40:21.088504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:40:21.090680"], ["updated_at", "2018-06-08 23:40:21.090680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:40:21.091687"], ["updated_at", "2018-06-08 23:40:21.091687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.095989"], ["updated_at", "2018-06-08 23:40:21.095989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.097230"], ["updated_at", "2018-06-08 23:40:21.097230"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:40:21.105992"], ["updated_at", "2018-06-08 23:40:21.105992"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.127629"], ["updated_at", "2018-06-08 23:40:21.127629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.131175"], ["updated_at", "2018-06-08 23:40:21.131175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.137081"], ["updated_at", "2018-06-08 23:40:21.137081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.138553"], ["updated_at", "2018-06-08 23:40:21.138553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.148364"], ["updated_at", "2018-06-08 23:40:21.148364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.149414"], ["updated_at", "2018-06-08 23:40:21.149414"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.155648"], ["updated_at", "2018-06-08 23:40:21.155648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:40:21.156867"], ["updated_at", "2018-06-08 23:40:21.156867"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.161023"], ["updated_at", "2018-06-08 23:40:21.161023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.168819"], ["updated_at", "2018-06-08 23:40:21.168819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.175039"], ["updated_at", "2018-06-08 23:40:21.175039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.181926"], ["updated_at", "2018-06-08 23:40:21.181926"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.189432"], ["updated_at", "2018-06-08 23:40:21.189432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.190719"], ["updated_at", "2018-06-08 23:40:21.190719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.197971"], ["updated_at", "2018-06-08 23:40:21.197971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.199309"], ["updated_at", "2018-06-08 23:40:21.199309"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.202886"], ["updated_at", "2018-06-08 23:40:21.202886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.206038"], ["updated_at", "2018-06-08 23:40:21.206038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:40:21.212614"], ["updated_at", "2018-06-08 23:40:21.212614"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:40:21.213877"], ["updated_at", "2018-06-08 23:40:21.213877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.215118"], ["updated_at", "2018-06-08 23:40:21.215118"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.217744"], ["updated_at", "2018-06-08 23:40:21.217744"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.221274"], ["updated_at", "2018-06-08 23:40:21.221274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.222440"], ["updated_at", "2018-06-08 23:40:21.222440"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.226646"], ["updated_at", "2018-06-08 23:40:21.226646"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.228176"], ["updated_at", "2018-06-08 23:40:21.228176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.231662"], ["updated_at", "2018-06-08 23:40:21.231662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:40:21.246196"], ["updated_at", "2018-06-08 23:40:21.246196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:40:21.261101"], ["updated_at", "2018-06-08 23:40:21.261101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:40:21.264161"], ["updated_at", "2018-06-08 23:40:21.264161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.277016"], ["updated_at", "2018-06-08 23:40:21.277016"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.278172"], ["updated_at", "2018-06-08 23:40:21.278172"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.281694"], ["updated_at", "2018-06-08 23:40:21.281694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.282789"], ["updated_at", "2018-06-08 23:40:21.282789"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:40:21.283923"], ["updated_at", "2018-06-08 23:40:21.283923"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:40:21.289270"], ["updated_at", "2018-06-08 23:40:21.289270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 23:40:21.291246"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:40:21.292730"], ["updated_at", "2018-06-08 23:40:21.292730"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:40:21.293755"], ["updated_at", "2018-06-08 23:40:21.293755"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (1.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:44:42.862392"], ["updated_at", "2018-06-08 23:44:42.862392"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:42.873076"], ["updated_at", "2018-06-08 23:44:42.873076"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:42.891542"], ["updated_at", "2018-06-08 23:44:42.891542"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:42.897243"], ["updated_at", "2018-06-08 23:44:42.897243"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:44:42.927369"], ["updated_at", "2018-06-08 23:44:42.927369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:44:42.928611"], ["updated_at", "2018-06-08 23:44:42.928611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:42.958839"], ["updated_at", "2018-06-08 23:44:42.958839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.045623"], ["updated_at", "2018-06-08 23:44:43.045623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:44:43.059970"], ["updated_at", "2018-06-08 23:44:43.059970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.081604"], ["updated_at", "2018-06-08 23:44:43.081604"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:44:43.095007"], ["updated_at", "2018-06-08 23:44:43.095007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:44:43.103207"], ["updated_at", "2018-06-08 23:44:43.103207"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:44:43.106260"], ["updated_at", "2018-06-08 23:44:43.106260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:44:43.109282"], ["updated_at", "2018-06-08 23:44:43.109282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:44:43.110912"], ["updated_at", "2018-06-08 23:44:43.110912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.117233"], ["updated_at", "2018-06-08 23:44:43.117233"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.119374"], ["updated_at", "2018-06-08 23:44:43.119374"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.131792"], ["updated_at", "2018-06-08 23:44:43.131792"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.133380"], ["updated_at", "2018-06-08 23:44:43.133380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.136933"], ["updated_at", "2018-06-08 23:44:43.136933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.141888"], ["updated_at", "2018-06-08 23:44:43.141888"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.145332"], ["updated_at", "2018-06-08 23:44:43.145332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.155452"], ["updated_at", "2018-06-08 23:44:43.155452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.165691"], ["updated_at", "2018-06-08 23:44:43.165691"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.167639"], ["updated_at", "2018-06-08 23:44:43.167639"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.172036"], ["updated_at", "2018-06-08 23:44:43.172036"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.178757"], ["updated_at", "2018-06-08 23:44:43.178757"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.186954"], ["updated_at", "2018-06-08 23:44:43.186954"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.188545"], ["updated_at", "2018-06-08 23:44:43.188545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.190046"], ["updated_at", "2018-06-08 23:44:43.190046"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.194573"], ["updated_at", "2018-06-08 23:44:43.194573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.195995"], ["updated_at", "2018-06-08 23:44:43.195995"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.201822"], ["updated_at", "2018-06-08 23:44:43.201822"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.211132"], ["updated_at", "2018-06-08 23:44:43.211132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.215848"], ["updated_at", "2018-06-08 23:44:43.215848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.222841"], ["updated_at", "2018-06-08 23:44:43.222841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:44:43.224252"], ["updated_at", "2018-06-08 23:44:43.224252"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.228009"], ["updated_at", "2018-06-08 23:44:43.228009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.229032"], ["updated_at", "2018-06-08 23:44:43.229032"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.233267"], ["updated_at", "2018-06-08 23:44:43.233267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.234796"], ["updated_at", "2018-06-08 23:44:43.234796"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:44:43.252273"], ["updated_at", "2018-06-08 23:44:43.252273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:44:43.253923"], ["updated_at", "2018-06-08 23:44:43.253923"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:44:43.257153"], ["updated_at", "2018-06-08 23:44:43.257153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:44:43.258273"], ["updated_at", "2018-06-08 23:44:43.258273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.269030"], ["updated_at", "2018-06-08 23:44:43.269030"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.278383"], ["updated_at", "2018-06-08 23:44:43.278383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.279563"], ["updated_at", "2018-06-08 23:44:43.279563"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.298437"], ["updated_at", "2018-06-08 23:44:43.298437"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.300448"], ["updated_at", "2018-06-08 23:44:43.300448"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.321009"], ["updated_at", "2018-06-08 23:44:43.321009"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.322722"], ["updated_at", "2018-06-08 23:44:43.322722"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.332964"], ["updated_at", "2018-06-08 23:44:43.332964"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.342659"], ["updated_at", "2018-06-08 23:44:43.342659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.345932"], ["updated_at", "2018-06-08 23:44:43.345932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.350578"], ["updated_at", "2018-06-08 23:44:43.350578"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.352197"], ["updated_at", "2018-06-08 23:44:43.352197"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.376103"], ["updated_at", "2018-06-08 23:44:43.376103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.377463"], ["updated_at", "2018-06-08 23:44:43.377463"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:44:43.382947"], ["updated_at", "2018-06-08 23:44:43.382947"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 23:44:43.385688"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:44:43.388135"], ["updated_at", "2018-06-08 23:44:43.388135"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:44:43.390136"], ["updated_at", "2018-06-08 23:44:43.390136"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.396930"], ["updated_at", "2018-06-08 23:44:43.396930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.398758"], ["updated_at", "2018-06-08 23:44:43.398758"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:44:43.404364"], ["updated_at", "2018-06-08 23:44:43.404364"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:44:43.408837"], ["updated_at", "2018-06-08 23:44:43.408837"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.427212"], ["updated_at", "2018-06-08 23:44:43.427212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.448849"], ["updated_at", "2018-06-08 23:44:43.448849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.449971"], ["updated_at", "2018-06-08 23:44:43.449971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:44:43.461232"], ["updated_at", "2018-06-08 23:44:43.461232"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.464531"], ["updated_at", "2018-06-08 23:44:43.464531"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.471473"], ["updated_at", "2018-06-08 23:44:43.471473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.475015"], ["updated_at", "2018-06-08 23:44:43.475015"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.478071"], ["updated_at", "2018-06-08 23:44:43.478071"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.484334"], ["updated_at", "2018-06-08 23:44:43.484334"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.486104"], ["updated_at", "2018-06-08 23:44:43.486104"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.493205"], ["updated_at", "2018-06-08 23:44:43.493205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.5ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.503091"], ["updated_at", "2018-06-08 23:44:43.503091"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.509299"], ["updated_at", "2018-06-08 23:44:43.509299"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.516517"], ["updated_at", "2018-06-08 23:44:43.516517"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.518441"], ["updated_at", "2018-06-08 23:44:43.518441"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.520609"], ["updated_at", "2018-06-08 23:44:43.520609"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:44:43.525583"], ["updated_at", "2018-06-08 23:44:43.525583"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:44:43.526722"], ["updated_at", "2018-06-08 23:44:43.526722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:43.527811"], ["updated_at", "2018-06-08 23:44:43.527811"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.342223"], ["updated_at", "2018-06-08 23:44:58.342223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.351246"], ["updated_at", "2018-06-08 23:44:58.351246"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.374421"], ["updated_at", "2018-06-08 23:44:58.374421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.386336"], ["updated_at", "2018-06-08 23:44:58.386336"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.390494"], ["updated_at", "2018-06-08 23:44:58.390494"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.395457"], ["updated_at", "2018-06-08 23:44:58.395457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.402154"], ["updated_at", "2018-06-08 23:44:58.402154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.403344"], ["updated_at", "2018-06-08 23:44:58.403344"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.408054"], ["updated_at", "2018-06-08 23:44:58.408054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.409467"], ["updated_at", "2018-06-08 23:44:58.409467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.418569"], ["updated_at", "2018-06-08 23:44:58.418569"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.420432"], ["updated_at", "2018-06-08 23:44:58.420432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.424248"], ["updated_at", "2018-06-08 23:44:58.424248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.430167"], ["updated_at", "2018-06-08 23:44:58.430167"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.438843"], ["updated_at", "2018-06-08 23:44:58.438843"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.440682"], ["updated_at", "2018-06-08 23:44:58.440682"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.445241"], ["updated_at", "2018-06-08 23:44:58.445241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.459244"], ["updated_at", "2018-06-08 23:44:58.459244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.468702"], ["updated_at", "2018-06-08 23:44:58.468702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.469958"], ["updated_at", "2018-06-08 23:44:58.469958"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.473369"], ["updated_at", "2018-06-08 23:44:58.473369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.474686"], ["updated_at", "2018-06-08 23:44:58.474686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.491498"], ["updated_at", "2018-06-08 23:44:58.491498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.494700"], ["updated_at", "2018-06-08 23:44:58.494700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.497588"], ["updated_at", "2018-06-08 23:44:58.497588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.526274"], ["updated_at", "2018-06-08 23:44:58.526274"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.533759"], ["updated_at", "2018-06-08 23:44:58.533759"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.536910"], ["updated_at", "2018-06-08 23:44:58.536910"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.539153"], ["updated_at", "2018-06-08 23:44:58.539153"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.543916"], ["updated_at", "2018-06-08 23:44:58.543916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.545071"], ["updated_at", "2018-06-08 23:44:58.545071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.560452"], ["updated_at", "2018-06-08 23:44:58.560452"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.564877"], ["updated_at", "2018-06-08 23:44:58.564877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.571686"], ["updated_at", "2018-06-08 23:44:58.571686"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.576179"], ["updated_at", "2018-06-08 23:44:58.576179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.582368"], ["updated_at", "2018-06-08 23:44:58.582368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.597076"], ["updated_at", "2018-06-08 23:44:58.597076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:44:58.613426"], ["updated_at", "2018-06-08 23:44:58.613426"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:44:58.620497"], ["updated_at", "2018-06-08 23:44:58.620497"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:44:58.622913"], ["updated_at", "2018-06-08 23:44:58.622913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:44:58.625568"], ["updated_at", "2018-06-08 23:44:58.625568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:44:58.626825"], ["updated_at", "2018-06-08 23:44:58.626825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.643056"], ["updated_at", "2018-06-08 23:44:58.643056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.644510"], ["updated_at", "2018-06-08 23:44:58.644510"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.649596"], ["updated_at", "2018-06-08 23:44:58.649596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.650615"], ["updated_at", "2018-06-08 23:44:58.650615"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.654601"], ["updated_at", "2018-06-08 23:44:58.654601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:44:58.661140"], ["updated_at", "2018-06-08 23:44:58.661140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:44:58.662388"], ["updated_at", "2018-06-08 23:44:58.662388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:44:58.665092"], ["updated_at", "2018-06-08 23:44:58.665092"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:44:58.666400"], ["updated_at", "2018-06-08 23:44:58.666400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.672312"], ["updated_at", "2018-06-08 23:44:58.672312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.674532"], ["updated_at", "2018-06-08 23:44:58.674532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:44:58.686803"], ["updated_at", "2018-06-08 23:44:58.686803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:44:58.691407"], ["updated_at", "2018-06-08 23:44:58.691407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:44:58.710160"], ["updated_at", "2018-06-08 23:44:58.710160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.715676"], ["updated_at", "2018-06-08 23:44:58.715676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.731678"], ["updated_at", "2018-06-08 23:44:58.731678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.732853"], ["updated_at", "2018-06-08 23:44:58.732853"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.735283"], ["updated_at", "2018-06-08 23:44:58.735283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:44:58.736336"], ["updated_at", "2018-06-08 23:44:58.736336"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:44:58.744808"], ["updated_at", "2018-06-08 23:44:58.744808"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:44:58.748049"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:44:58.750309"], ["updated_at", "2018-06-08 23:44:58.750309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:44:58.751384"], ["updated_at", "2018-06-08 23:44:58.751384"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.756898"], ["updated_at", "2018-06-08 23:44:58.756898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:44:58.767689"], ["updated_at", "2018-06-08 23:44:58.767689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.783646"], ["updated_at", "2018-06-08 23:44:58.783646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.784844"], ["updated_at", "2018-06-08 23:44:58.784844"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.788657"], ["updated_at", "2018-06-08 23:44:58.788657"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.814808"], ["updated_at", "2018-06-08 23:44:58.814808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.819260"], ["updated_at", "2018-06-08 23:44:58.819260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.820197"], ["updated_at", "2018-06-08 23:44:58.820197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.821447"], ["updated_at", "2018-06-08 23:44:58.821447"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.824904"], ["updated_at", "2018-06-08 23:44:58.824904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.825966"], ["updated_at", "2018-06-08 23:44:58.825966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:44:58.839915"], ["updated_at", "2018-06-08 23:44:58.839915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:44:58.841470"], ["updated_at", "2018-06-08 23:44:58.841470"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.842867"], ["updated_at", "2018-06-08 23:44:58.842867"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:44:58.875273"], ["updated_at", "2018-06-08 23:44:58.875273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:44:58.876647"], ["updated_at", "2018-06-08 23:44:58.876647"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.909481"], ["updated_at", "2018-06-08 23:44:58.909481"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:44:58.934810"], ["updated_at", "2018-06-08 23:44:58.934810"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.947189"], ["updated_at", "2018-06-08 23:44:58.947189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.955100"], ["updated_at", "2018-06-08 23:44:58.955100"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:44:58.960551"], ["updated_at", "2018-06-08 23:44:58.960551"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user --------------------------------------------------------------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL, )  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.475155"], ["updated_at", "2018-06-08 23:47:20.475155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.484216"], ["updated_at", "2018-06-08 23:47:20.484216"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.531965"], ["updated_at", "2018-06-08 23:47:20.531965"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.555389"], ["updated_at", "2018-06-08 23:47:20.555389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.556995"], ["updated_at", "2018-06-08 23:47:20.556995"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.570780"], ["updated_at", "2018-06-08 23:47:20.570780"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.572504"], ["updated_at", "2018-06-08 23:47:20.572504"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.579291"], ["updated_at", "2018-06-08 23:47:20.579291"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.592133"], ["updated_at", "2018-06-08 23:47:20.592133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.593197"], ["updated_at", "2018-06-08 23:47:20.593197"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.597167"], ["updated_at", "2018-06-08 23:47:20.597167"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.599631"], ["updated_at", "2018-06-08 23:47:20.599631"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.625358"], ["updated_at", "2018-06-08 23:47:20.625358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.636312"], ["updated_at", "2018-06-08 23:47:20.636312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.637551"], ["updated_at", "2018-06-08 23:47:20.637551"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.641276"], ["updated_at", "2018-06-08 23:47:20.641276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:47:20.652166"], ["updated_at", "2018-06-08 23:47:20.652166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:47:20.655335"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:47:20.658140"], ["updated_at", "2018-06-08 23:47:20.658140"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:47:20.659938"], ["updated_at", "2018-06-08 23:47:20.659938"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.667226"], ["updated_at", "2018-06-08 23:47:20.667226"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.669714"], ["updated_at", "2018-06-08 23:47:20.669714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:47:20.682091"], ["updated_at", "2018-06-08 23:47:20.682091"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:47:20.684225"], ["updated_at", "2018-06-08 23:47:20.684225"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:47:20.687619"], ["updated_at", "2018-06-08 23:47:20.687619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:47:20.689556"], ["updated_at", "2018-06-08 23:47:20.689556"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.696440"], ["updated_at", "2018-06-08 23:47:20.696440"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.701126"], ["updated_at", "2018-06-08 23:47:20.701126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.705141"], ["updated_at", "2018-06-08 23:47:20.705141"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.710707"], ["updated_at", "2018-06-08 23:47:20.710707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.712153"], ["updated_at", "2018-06-08 23:47:20.712153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.716845"], ["updated_at", "2018-06-08 23:47:20.716845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.722915"], ["updated_at", "2018-06-08 23:47:20.722915"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.726618"], ["updated_at", "2018-06-08 23:47:20.726618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:47:20.732856"], ["updated_at", "2018-06-08 23:47:20.732856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:47:20.734497"], ["updated_at", "2018-06-08 23:47:20.734497"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:47:20.737395"], ["updated_at", "2018-06-08 23:47:20.737395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:47:20.739133"], ["updated_at", "2018-06-08 23:47:20.739133"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.751970"], ["updated_at", "2018-06-08 23:47:20.751970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.753129"], ["updated_at", "2018-06-08 23:47:20.753129"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:47:20.760340"], ["updated_at", "2018-06-08 23:47:20.760340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:47:20.764263"], ["updated_at", "2018-06-08 23:47:20.764263"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.781915"], ["updated_at", "2018-06-08 23:47:20.781915"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.797136"], ["updated_at", "2018-06-08 23:47:20.797136"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:47:20.816279"], ["updated_at", "2018-06-08 23:47:20.816279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:47:20.826739"], ["updated_at", "2018-06-08 23:47:20.826739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.844560"], ["updated_at", "2018-06-08 23:47:20.844560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.845997"], ["updated_at", "2018-06-08 23:47:20.845997"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.856351"], ["updated_at", "2018-06-08 23:47:20.856351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:47:20.864561"], ["updated_at", "2018-06-08 23:47:20.864561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.869742"], ["updated_at", "2018-06-08 23:47:20.869742"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.878523"], ["updated_at", "2018-06-08 23:47:20.878523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:47:20.889068"], ["updated_at", "2018-06-08 23:47:20.889068"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:47:20.891124"], ["updated_at", "2018-06-08 23:47:20.891124"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.892883"], ["updated_at", "2018-06-08 23:47:20.892883"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.896211"], ["updated_at", "2018-06-08 23:47:20.896211"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.898396"], ["updated_at", "2018-06-08 23:47:20.898396"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.911080"], ["updated_at", "2018-06-08 23:47:20.911080"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.912896"], ["updated_at", "2018-06-08 23:47:20.912896"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.940887"], ["updated_at", "2018-06-08 23:47:20.940887"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.952102"], ["updated_at", "2018-06-08 23:47:20.952102"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.958929"], ["updated_at", "2018-06-08 23:47:20.958929"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.970132"], ["updated_at", "2018-06-08 23:47:20.970132"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.984564"], ["updated_at", "2018-06-08 23:47:20.984564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.991245"], ["updated_at", "2018-06-08 23:47:20.991245"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:20.992994"], ["updated_at", "2018-06-08 23:47:20.992994"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.022126"], ["updated_at", "2018-06-08 23:47:21.022126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.023699"], ["updated_at", "2018-06-08 23:47:21.023699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.025449"], ["updated_at", "2018-06-08 23:47:21.025449"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.030880"], ["updated_at", "2018-06-08 23:47:21.030880"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.041960"], ["updated_at", "2018-06-08 23:47:21.041960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.052086"], ["updated_at", "2018-06-08 23:47:21.052086"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:47:21.054201"], ["updated_at", "2018-06-08 23:47:21.054201"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.059930"], ["updated_at", "2018-06-08 23:47:21.059930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.070797"], ["updated_at", "2018-06-08 23:47:21.070797"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.072770"], ["updated_at", "2018-06-08 23:47:21.072770"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.078291"], ["updated_at", "2018-06-08 23:47:21.078291"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.080000"], ["updated_at", "2018-06-08 23:47:21.080000"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.082474"], ["updated_at", "2018-06-08 23:47:21.082474"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models" --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:47:21.232065"], ["updated_at", "2018-06-08 23:47:21.232065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:47:21.233607"], ["updated_at", "2018-06-08 23:47:21.233607"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.308322"], ["updated_at", "2018-06-08 23:47:21.308322"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:47:21.317833"], ["updated_at", "2018-06-08 23:47:21.317833"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.349051"], ["updated_at", "2018-06-08 23:47:21.349051"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.360038"], ["updated_at", "2018-06-08 23:47:21.360038"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:47:21.366001"], ["updated_at", "2018-06-08 23:47:21.366001"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.9ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:10.820945"], ["updated_at", "2018-06-08 23:48:10.820945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:10.866082"], ["updated_at", "2018-06-08 23:48:10.866082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:10.872090"], ["updated_at", "2018-06-08 23:48:10.872090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:10.899872"], ["updated_at", "2018-06-08 23:48:10.899872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:48:10.956238"], ["updated_at", "2018-06-08 23:48:10.956238"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.2ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:48:11.004337"], ["updated_at", "2018-06-08 23:48:11.004337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:48:11.005632"], ["updated_at", "2018-06-08 23:48:11.005632"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.046559"], ["updated_at", "2018-06-08 23:48:11.046559"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.050314"], ["updated_at", "2018-06-08 23:48:11.050314"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.055595"], ["updated_at", "2018-06-08 23:48:11.055595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.061536"], ["updated_at", "2018-06-08 23:48:11.061536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.066690"], ["updated_at", "2018-06-08 23:48:11.066690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:48:11.067851"], ["updated_at", "2018-06-08 23:48:11.067851"]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:48:11.077758"], ["updated_at", "2018-06-08 23:48:11.077758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:48:11.080555"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:48:11.081982"], ["updated_at", "2018-06-08 23:48:11.081982"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:48:11.083189"], ["updated_at", "2018-06-08 23:48:11.083189"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.089736"], ["updated_at", "2018-06-08 23:48:11.089736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.093087"], ["updated_at", "2018-06-08 23:48:11.093087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.100785"], ["updated_at", "2018-06-08 23:48:11.100785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.102205"], ["updated_at", "2018-06-08 23:48:11.102205"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.107438"], ["updated_at", "2018-06-08 23:48:11.107438"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.118294"], ["updated_at", "2018-06-08 23:48:11.118294"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.120127"], ["updated_at", "2018-06-08 23:48:11.120127"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.125287"], ["updated_at", "2018-06-08 23:48:11.125287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:48:11.130495"], ["updated_at", "2018-06-08 23:48:11.130495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.133429"], ["updated_at", "2018-06-08 23:48:11.133429"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.141795"], ["updated_at", "2018-06-08 23:48:11.141795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.149362"], ["updated_at", "2018-06-08 23:48:11.149362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.150505"], ["updated_at", "2018-06-08 23:48:11.150505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.154658"], ["updated_at", "2018-06-08 23:48:11.154658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.162608"], ["updated_at", "2018-06-08 23:48:11.162608"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.184010"], ["updated_at", "2018-06-08 23:48:11.184010"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.185547"], ["updated_at", "2018-06-08 23:48:11.185547"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:48:11.197043"], ["updated_at", "2018-06-08 23:48:11.197043"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:48:11.198305"], ["updated_at", "2018-06-08 23:48:11.198305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:48:11.200773"], ["updated_at", "2018-06-08 23:48:11.200773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:48:11.202180"], ["updated_at", "2018-06-08 23:48:11.202180"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.214323"], ["updated_at", "2018-06-08 23:48:11.214323"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.215734"], ["updated_at", "2018-06-08 23:48:11.215734"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.229575"], ["updated_at", "2018-06-08 23:48:11.229575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.239341"], ["updated_at", "2018-06-08 23:48:11.239341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:48:11.251384"], ["updated_at", "2018-06-08 23:48:11.251384"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.266807"], ["updated_at", "2018-06-08 23:48:11.266807"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.268222"], ["updated_at", "2018-06-08 23:48:11.268222"]]  (0.0ms) commit transaction TestModel Load (0.5ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:48:11.272639"], ["updated_at", "2018-06-08 23:48:11.272639"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:48:11.274087"], ["updated_at", "2018-06-08 23:48:11.274087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.275367"], ["updated_at", "2018-06-08 23:48:11.275367"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.278258"], ["updated_at", "2018-06-08 23:48:11.278258"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:48:11.286152"], ["updated_at", "2018-06-08 23:48:11.286152"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:48:11.288343"], ["updated_at", "2018-06-08 23:48:11.288343"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:48:11.291395"], ["updated_at", "2018-06-08 23:48:11.291395"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:48:11.292962"], ["updated_at", "2018-06-08 23:48:11.292962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.298322"], ["updated_at", "2018-06-08 23:48:11.298322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.299491"], ["updated_at", "2018-06-08 23:48:11.299491"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.302669"], ["updated_at", "2018-06-08 23:48:11.302669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.304357"], ["updated_at", "2018-06-08 23:48:11.304357"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.305780"], ["updated_at", "2018-06-08 23:48:11.305780"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.334074"], ["updated_at", "2018-06-08 23:48:11.334074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.335397"], ["updated_at", "2018-06-08 23:48:11.335397"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.351013"], ["updated_at", "2018-06-08 23:48:11.351013"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.360003"], ["updated_at", "2018-06-08 23:48:11.360003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.362950"], ["updated_at", "2018-06-08 23:48:11.362950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.367398"], ["updated_at", "2018-06-08 23:48:11.367398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:48:11.380915"], ["updated_at", "2018-06-08 23:48:11.380915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.5ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.388743"], ["updated_at", "2018-06-08 23:48:11.388743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:48:11.396153"], ["updated_at", "2018-06-08 23:48:11.396153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:48:11.399006"], ["updated_at", "2018-06-08 23:48:11.399006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.413539"], ["updated_at", "2018-06-08 23:48:11.413539"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.423522"], ["updated_at", "2018-06-08 23:48:11.423522"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.425282"], ["updated_at", "2018-06-08 23:48:11.425282"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.426522"], ["updated_at", "2018-06-08 23:48:11.426522"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.430294"], ["updated_at", "2018-06-08 23:48:11.430294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.431585"], ["updated_at", "2018-06-08 23:48:11.431585"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.440194"], ["updated_at", "2018-06-08 23:48:11.440194"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.441799"], ["updated_at", "2018-06-08 23:48:11.441799"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.444743"], ["updated_at", "2018-06-08 23:48:11.444743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.445855"], ["updated_at", "2018-06-08 23:48:11.445855"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.449465"], ["updated_at", "2018-06-08 23:48:11.449465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.450546"], ["updated_at", "2018-06-08 23:48:11.450546"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.466346"], ["updated_at", "2018-06-08 23:48:11.466346"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.467463"], ["updated_at", "2018-06-08 23:48:11.467463"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.472053"], ["updated_at", "2018-06-08 23:48:11.472053"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.473670"], ["updated_at", "2018-06-08 23:48:11.473670"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.477581"], ["updated_at", "2018-06-08 23:48:11.477581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:11.480959"], ["updated_at", "2018-06-08 23:48:11.480959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- Processing by UsersController#show as HTML Parameters: {"id"=>"100"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 100], ["LIMIT", 1]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (1.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.053680"], ["updated_at", "2018-06-08 23:48:58.053680"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.096951"], ["updated_at", "2018-06-08 23:48:58.096951"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.100631"], ["updated_at", "2018-06-08 23:48:58.100631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:48:58.140231"], ["updated_at", "2018-06-08 23:48:58.140231"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:48:58.188469"], ["updated_at", "2018-06-08 23:48:58.188469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:48:58.190149"], ["updated_at", "2018-06-08 23:48:58.190149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.219519"], ["updated_at", "2018-06-08 23:48:58.219519"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.251515"], ["updated_at", "2018-06-08 23:48:58.251515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.252822"], ["updated_at", "2018-06-08 23:48:58.252822"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.260570"], ["updated_at", "2018-06-08 23:48:58.260570"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.267462"], ["updated_at", "2018-06-08 23:48:58.267462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.268711"], ["updated_at", "2018-06-08 23:48:58.268711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.282315"], ["updated_at", "2018-06-08 23:48:58.282315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.288932"], ["updated_at", "2018-06-08 23:48:58.288932"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.290224"], ["updated_at", "2018-06-08 23:48:58.290224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.294389"], ["updated_at", "2018-06-08 23:48:58.294389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:48:58.303268"], ["updated_at", "2018-06-08 23:48:58.303268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:48:58.306259"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:48:58.308393"], ["updated_at", "2018-06-08 23:48:58.308393"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:48:58.310179"], ["updated_at", "2018-06-08 23:48:58.310179"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:48:58.320960"], ["updated_at", "2018-06-08 23:48:58.320960"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.328262"], ["updated_at", "2018-06-08 23:48:58.328262"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.332730"], ["updated_at", "2018-06-08 23:48:58.332730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.347477"], ["updated_at", "2018-06-08 23:48:58.347477"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.348829"], ["updated_at", "2018-06-08 23:48:58.348829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.362019"], ["updated_at", "2018-06-08 23:48:58.362019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.369380"], ["updated_at", "2018-06-08 23:48:58.369380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.378038"], ["updated_at", "2018-06-08 23:48:58.378038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.379523"], ["updated_at", "2018-06-08 23:48:58.379523"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.382611"], ["updated_at", "2018-06-08 23:48:58.382611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.383699"], ["updated_at", "2018-06-08 23:48:58.383699"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:48:58.393533"], ["updated_at", "2018-06-08 23:48:58.393533"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:48:58.397355"], ["updated_at", "2018-06-08 23:48:58.397355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:48:58.414712"], ["updated_at", "2018-06-08 23:48:58.414712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.428988"], ["updated_at", "2018-06-08 23:48:58.428988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.435535"], ["updated_at", "2018-06-08 23:48:58.435535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.436623"], ["updated_at", "2018-06-08 23:48:58.436623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.437586"], ["updated_at", "2018-06-08 23:48:58.437586"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.447278"], ["updated_at", "2018-06-08 23:48:58.447278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.450697"], ["updated_at", "2018-06-08 23:48:58.450697"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.457277"], ["updated_at", "2018-06-08 23:48:58.457277"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.461042"], ["updated_at", "2018-06-08 23:48:58.461042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.469750"], ["updated_at", "2018-06-08 23:48:58.469750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.478903"], ["updated_at", "2018-06-08 23:48:58.478903"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:48:58.485538"], ["updated_at", "2018-06-08 23:48:58.485538"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:48:58.486730"], ["updated_at", "2018-06-08 23:48:58.486730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.487725"], ["updated_at", "2018-06-08 23:48:58.487725"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.490323"], ["updated_at", "2018-06-08 23:48:58.490323"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.492329"], ["updated_at", "2018-06-08 23:48:58.492329"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.496716"], ["updated_at", "2018-06-08 23:48:58.496716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.498017"], ["updated_at", "2018-06-08 23:48:58.498017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.505791"], ["updated_at", "2018-06-08 23:48:58.505791"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.509118"], ["updated_at", "2018-06-08 23:48:58.509118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:48:58.515307"], ["updated_at", "2018-06-08 23:48:58.515307"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:48:58.516751"], ["updated_at", "2018-06-08 23:48:58.516751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:48:58.518913"], ["updated_at", "2018-06-08 23:48:58.518913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:48:58.519929"], ["updated_at", "2018-06-08 23:48:58.519929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.550097"], ["updated_at", "2018-06-08 23:48:58.550097"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.556830"], ["updated_at", "2018-06-08 23:48:58.556830"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.558196"], ["updated_at", "2018-06-08 23:48:58.558196"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:48:58.563758"], ["updated_at", "2018-06-08 23:48:58.563758"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:48:58.565426"], ["updated_at", "2018-06-08 23:48:58.565426"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:48:58.568227"], ["updated_at", "2018-06-08 23:48:58.568227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:48:58.569322"], ["updated_at", "2018-06-08 23:48:58.569322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.574177"], ["updated_at", "2018-06-08 23:48:58.574177"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.575877"], ["updated_at", "2018-06-08 23:48:58.575877"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.577226"], ["updated_at", "2018-06-08 23:48:58.577226"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:48:58.580723"], ["updated_at", "2018-06-08 23:48:58.580723"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.584080"], ["updated_at", "2018-06-08 23:48:58.584080"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.589669"], ["updated_at", "2018-06-08 23:48:58.589669"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.591007"], ["updated_at", "2018-06-08 23:48:58.591007"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.607056"], ["updated_at", "2018-06-08 23:48:58.607056"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.614035"], ["updated_at", "2018-06-08 23:48:58.614035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:48:58.615449"], ["updated_at", "2018-06-08 23:48:58.615449"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.619391"], ["updated_at", "2018-06-08 23:48:58.619391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.627660"], ["updated_at", "2018-06-08 23:48:58.627660"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.631498"], ["updated_at", "2018-06-08 23:48:58.631498"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.636290"], ["updated_at", "2018-06-08 23:48:58.636290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.637236"], ["updated_at", "2018-06-08 23:48:58.637236"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.640862"], ["updated_at", "2018-06-08 23:48:58.640862"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.642642"], ["updated_at", "2018-06-08 23:48:58.642642"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.645818"], ["updated_at", "2018-06-08 23:48:58.645818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.646966"], ["updated_at", "2018-06-08 23:48:58.646966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.654001"], ["updated_at", "2018-06-08 23:48:58.654001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.655020"], ["updated_at", "2018-06-08 23:48:58.655020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:48:58.658116"], ["updated_at", "2018-06-08 23:48:58.658116"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.9ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.2ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 5.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:49:09.558435"], ["updated_at", "2018-06-08 23:49:09.558435"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.639835"], ["updated_at", "2018-06-08 23:49:09.639835"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.651807"], ["updated_at", "2018-06-08 23:49:09.651807"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.660908"], ["updated_at", "2018-06-08 23:49:09.660908"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.668126"], ["updated_at", "2018-06-08 23:49:09.668126"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:49:09.692694"], ["updated_at", "2018-06-08 23:49:09.692694"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:49:09.695769"], ["updated_at", "2018-06-08 23:49:09.695769"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.785738"], ["updated_at", "2018-06-08 23:49:09.785738"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.4ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.2ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.800621"], ["updated_at", "2018-06-08 23:49:09.800621"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.802632"], ["updated_at", "2018-06-08 23:49:09.802632"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.8ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.818959"], ["updated_at", "2018-06-08 23:49:09.818959"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.824631"], ["updated_at", "2018-06-08 23:49:09.824631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.834253"], ["updated_at", "2018-06-08 23:49:09.834253"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.840828"], ["updated_at", "2018-06-08 23:49:09.840828"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:49:09.852600"], ["updated_at", "2018-06-08 23:49:09.852600"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:49:09.857798"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:49:09.860676"], ["updated_at", "2018-06-08 23:49:09.860676"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:49:09.863402"], ["updated_at", "2018-06-08 23:49:09.863402"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:49:09.874339"], ["updated_at", "2018-06-08 23:49:09.874339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:49:09.881700"], ["updated_at", "2018-06-08 23:49:09.881700"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.5ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.916198"], ["updated_at", "2018-06-08 23:49:09.916198"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.5ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.931224"], ["updated_at", "2018-06-08 23:49:09.931224"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.933495"], ["updated_at", "2018-06-08 23:49:09.933495"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.935619"], ["updated_at", "2018-06-08 23:49:09.935619"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.941434"], ["updated_at", "2018-06-08 23:49:09.941434"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.943461"], ["updated_at", "2018-06-08 23:49:09.943461"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.945931"], ["updated_at", "2018-06-08 23:49:09.945931"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.953012"], ["updated_at", "2018-06-08 23:49:09.953012"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.7ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.969681"], ["updated_at", "2018-06-08 23:49:09.969681"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.971901"], ["updated_at", "2018-06-08 23:49:09.971901"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:09.996716"], ["updated_at", "2018-06-08 23:49:09.996716"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:49:10.006922"], ["updated_at", "2018-06-08 23:49:10.006922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:49:10.008298"], ["updated_at", "2018-06-08 23:49:10.008298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:49:10.011881"], ["updated_at", "2018-06-08 23:49:10.011881"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:49:10.014174"], ["updated_at", "2018-06-08 23:49:10.014174"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.030333"], ["updated_at", "2018-06-08 23:49:10.030333"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.032659"], ["updated_at", "2018-06-08 23:49:10.032659"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.5ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.3ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.050682"], ["updated_at", "2018-06-08 23:49:10.050682"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.052797"], ["updated_at", "2018-06-08 23:49:10.052797"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.057224"], ["updated_at", "2018-06-08 23:49:10.057224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.3ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.067366"], ["updated_at", "2018-06-08 23:49:10.067366"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.079586"], ["updated_at", "2018-06-08 23:49:10.079586"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:49:10.106124"], ["updated_at", "2018-06-08 23:49:10.106124"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.112232"], ["updated_at", "2018-06-08 23:49:10.112232"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:49:10.124875"], ["updated_at", "2018-06-08 23:49:10.124875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:49:10.126493"], ["updated_at", "2018-06-08 23:49:10.126493"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.128498"], ["updated_at", "2018-06-08 23:49:10.128498"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.176246"], ["updated_at", "2018-06-08 23:49:10.176246"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.178537"], ["updated_at", "2018-06-08 23:49:10.178537"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.190896"], ["updated_at", "2018-06-08 23:49:10.190896"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:49:10.192665"], ["updated_at", "2018-06-08 23:49:10.192665"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.198294"], ["updated_at", "2018-06-08 23:49:10.198294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.200894"], ["updated_at", "2018-06-08 23:49:10.200894"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.214392"], ["updated_at", "2018-06-08 23:49:10.214392"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.225337"], ["updated_at", "2018-06-08 23:49:10.225337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.226601"], ["updated_at", "2018-06-08 23:49:10.226601"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.232686"], ["updated_at", "2018-06-08 23:49:10.232686"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.242191"], ["updated_at", "2018-06-08 23:49:10.242191"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.243834"], ["updated_at", "2018-06-08 23:49:10.243834"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:49:10.274225"], ["updated_at", "2018-06-08 23:49:10.274225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:49:10.283443"], ["updated_at", "2018-06-08 23:49:10.283443"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:49:10.285830"], ["updated_at", "2018-06-08 23:49:10.285830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:49:10.289319"], ["updated_at", "2018-06-08 23:49:10.289319"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:49:10.290793"], ["updated_at", "2018-06-08 23:49:10.290793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.296957"], ["updated_at", "2018-06-08 23:49:10.296957"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.299070"], ["updated_at", "2018-06-08 23:49:10.299070"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.320059"], ["updated_at", "2018-06-08 23:49:10.320059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.323894"], ["updated_at", "2018-06-08 23:49:10.323894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.331047"], ["updated_at", "2018-06-08 23:49:10.331047"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.337350"], ["updated_at", "2018-06-08 23:49:10.337350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.340759"], ["updated_at", "2018-06-08 23:49:10.340759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.346767"], ["updated_at", "2018-06-08 23:49:10.346767"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.348959"], ["updated_at", "2018-06-08 23:49:10.348959"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.353802"], ["updated_at", "2018-06-08 23:49:10.353802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.359856"], ["updated_at", "2018-06-08 23:49:10.359856"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.361402"], ["updated_at", "2018-06-08 23:49:10.361402"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.366086"], ["updated_at", "2018-06-08 23:49:10.366086"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.371185"], ["updated_at", "2018-06-08 23:49:10.371185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.377124"], ["updated_at", "2018-06-08 23:49:10.377124"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.379332"], ["updated_at", "2018-06-08 23:49:10.379332"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.384045"], ["updated_at", "2018-06-08 23:49:10.384045"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.391544"], ["updated_at", "2018-06-08 23:49:10.391544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.401903"], ["updated_at", "2018-06-08 23:49:10.401903"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:49:10.415577"], ["updated_at", "2018-06-08 23:49:10.415577"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.8ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.439582"], ["updated_at", "2018-06-08 23:49:10.439582"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:10.441377"], ["updated_at", "2018-06-08 23:49:10.441377"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Completed 404 Not Found in 3ms (ActiveRecord: 0.3ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (1.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:49:38.367405"], ["updated_at", "2018-06-08 23:49:38.367405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:49:38.368670"], ["updated_at", "2018-06-08 23:49:38.368670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.431576"], ["updated_at", "2018-06-08 23:49:38.431576"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.444156"], ["updated_at", "2018-06-08 23:49:38.444156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.448460"], ["updated_at", "2018-06-08 23:49:38.448460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:49:38.460562"], ["updated_at", "2018-06-08 23:49:38.460562"]]  (0.2ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.488792"], ["updated_at", "2018-06-08 23:49:38.488792"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.776880"], ["updated_at", "2018-06-08 23:49:38.776880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:49:38.783265"], ["updated_at", "2018-06-08 23:49:38.783265"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:49:38.784832"], ["updated_at", "2018-06-08 23:49:38.784832"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.786133"], ["updated_at", "2018-06-08 23:49:38.786133"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:49:38.788955"], ["updated_at", "2018-06-08 23:49:38.788955"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.793500"], ["updated_at", "2018-06-08 23:49:38.793500"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.800012"], ["updated_at", "2018-06-08 23:49:38.800012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.805003"], ["updated_at", "2018-06-08 23:49:38.805003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.806086"], ["updated_at", "2018-06-08 23:49:38.806086"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.811123"], ["updated_at", "2018-06-08 23:49:38.811123"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.816200"], ["updated_at", "2018-06-08 23:49:38.816200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.819486"], ["updated_at", "2018-06-08 23:49:38.819486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.823870"], ["updated_at", "2018-06-08 23:49:38.823870"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.825405"], ["updated_at", "2018-06-08 23:49:38.825405"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.841184"], ["updated_at", "2018-06-08 23:49:38.841184"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.845819"], ["updated_at", "2018-06-08 23:49:38.845819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.850734"], ["updated_at", "2018-06-08 23:49:38.850734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.851756"], ["updated_at", "2018-06-08 23:49:38.851756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.852661"], ["updated_at", "2018-06-08 23:49:38.852661"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.855736"], ["updated_at", "2018-06-08 23:49:38.855736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.856922"], ["updated_at", "2018-06-08 23:49:38.856922"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.858439"], ["updated_at", "2018-06-08 23:49:38.858439"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.862744"], ["updated_at", "2018-06-08 23:49:38.862744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:49:38.863983"], ["updated_at", "2018-06-08 23:49:38.863983"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:49:38.868015"], ["updated_at", "2018-06-08 23:49:38.868015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:49:38.871239"], ["updated_at", "2018-06-08 23:49:38.871239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:49:38.888408"], ["updated_at", "2018-06-08 23:49:38.888408"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:49:38.900491"], ["updated_at", "2018-06-08 23:49:38.900491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:49:38.903453"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:49:38.904974"], ["updated_at", "2018-06-08 23:49:38.904974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:49:38.905970"], ["updated_at", "2018-06-08 23:49:38.905970"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:49:38.912189"], ["updated_at", "2018-06-08 23:49:38.912189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:49:38.913596"], ["updated_at", "2018-06-08 23:49:38.913596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:49:38.916486"], ["updated_at", "2018-06-08 23:49:38.916486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:49:38.917874"], ["updated_at", "2018-06-08 23:49:38.917874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.929581"], ["updated_at", "2018-06-08 23:49:38.929581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.930770"], ["updated_at", "2018-06-08 23:49:38.930770"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.934176"], ["updated_at", "2018-06-08 23:49:38.934176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.935157"], ["updated_at", "2018-06-08 23:49:38.935157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.945511"], ["updated_at", "2018-06-08 23:49:38.945511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.946946"], ["updated_at", "2018-06-08 23:49:38.946946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.950316"], ["updated_at", "2018-06-08 23:49:38.950316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.955608"], ["updated_at", "2018-06-08 23:49:38.955608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.956759"], ["updated_at", "2018-06-08 23:49:38.956759"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.960877"], ["updated_at", "2018-06-08 23:49:38.960877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.966104"], ["updated_at", "2018-06-08 23:49:38.966104"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.973365"], ["updated_at", "2018-06-08 23:49:38.973365"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.975163"], ["updated_at", "2018-06-08 23:49:38.975163"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.980000"], ["updated_at", "2018-06-08 23:49:38.980000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:38.993285"], ["updated_at", "2018-06-08 23:49:38.993285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.003357"], ["updated_at", "2018-06-08 23:49:39.003357"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.012625"], ["updated_at", "2018-06-08 23:49:39.012625"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.013893"], ["updated_at", "2018-06-08 23:49:39.013893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.028266"], ["updated_at", "2018-06-08 23:49:39.028266"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.029551"], ["updated_at", "2018-06-08 23:49:39.029551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.036541"], ["updated_at", "2018-06-08 23:49:39.036541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.039739"], ["updated_at", "2018-06-08 23:49:39.039739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.045350"], ["updated_at", "2018-06-08 23:49:39.045350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.046664"], ["updated_at", "2018-06-08 23:49:39.046664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.071658"], ["updated_at", "2018-06-08 23:49:39.071658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.074532"], ["updated_at", "2018-06-08 23:49:39.074532"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.079682"], ["updated_at", "2018-06-08 23:49:39.079682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.089461"], ["updated_at", "2018-06-08 23:49:39.089461"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.090800"], ["updated_at", "2018-06-08 23:49:39.090800"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:49:39.095109"], ["updated_at", "2018-06-08 23:49:39.095109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:49:39.096360"], ["updated_at", "2018-06-08 23:49:39.096360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:49:39.098534"], ["updated_at", "2018-06-08 23:49:39.098534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:49:39.099672"], ["updated_at", "2018-06-08 23:49:39.099672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.109483"], ["updated_at", "2018-06-08 23:49:39.109483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.110800"], ["updated_at", "2018-06-08 23:49:39.110800"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.113590"], ["updated_at", "2018-06-08 23:49:39.113590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:49:39.122583"], ["updated_at", "2018-06-08 23:49:39.122583"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.136093"], ["updated_at", "2018-06-08 23:49:39.136093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.137281"], ["updated_at", "2018-06-08 23:49:39.137281"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.141295"], ["updated_at", "2018-06-08 23:49:39.141295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.143044"], ["updated_at", "2018-06-08 23:49:39.143044"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.148802"], ["updated_at", "2018-06-08 23:49:39.148802"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.156274"], ["updated_at", "2018-06-08 23:49:39.156274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:49:39.167023"], ["updated_at", "2018-06-08 23:49:39.167023"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:50:11.597206"], ["updated_at", "2018-06-08 23:50:11.597206"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.666268"], ["updated_at", "2018-06-08 23:50:11.666268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:50:11.684087"], ["updated_at", "2018-06-08 23:50:11.684087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:50:11.685399"], ["updated_at", "2018-06-08 23:50:11.685399"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.717086"], ["updated_at", "2018-06-08 23:50:11.717086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.726575"], ["updated_at", "2018-06-08 23:50:11.726575"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.732755"], ["updated_at", "2018-06-08 23:50:11.732755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:50:11.746843"], ["updated_at", "2018-06-08 23:50:11.746843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:50:11.748055"], ["updated_at", "2018-06-08 23:50:11.748055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:50:11.750594"], ["updated_at", "2018-06-08 23:50:11.750594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:50:11.751865"], ["updated_at", "2018-06-08 23:50:11.751865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.758784"], ["updated_at", "2018-06-08 23:50:11.758784"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.762670"], ["updated_at", "2018-06-08 23:50:11.762670"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.767161"], ["updated_at", "2018-06-08 23:50:11.767161"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.769822"], ["updated_at", "2018-06-08 23:50:11.769822"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.777061"], ["updated_at", "2018-06-08 23:50:11.777061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.781191"], ["updated_at", "2018-06-08 23:50:11.781191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.784343"], ["updated_at", "2018-06-08 23:50:11.784343"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.790731"], ["updated_at", "2018-06-08 23:50:11.790731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.791968"], ["updated_at", "2018-06-08 23:50:11.791968"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.796011"], ["updated_at", "2018-06-08 23:50:11.796011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.797700"], ["updated_at", "2018-06-08 23:50:11.797700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.799046"], ["updated_at", "2018-06-08 23:50:11.799046"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.803618"], ["updated_at", "2018-06-08 23:50:11.803618"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.816355"], ["updated_at", "2018-06-08 23:50:11.816355"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.819470"], ["updated_at", "2018-06-08 23:50:11.819470"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.820987"], ["updated_at", "2018-06-08 23:50:11.820987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.825347"], ["updated_at", "2018-06-08 23:50:11.825347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:50:11.831873"], ["updated_at", "2018-06-08 23:50:11.831873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:50:11.833238"], ["updated_at", "2018-06-08 23:50:11.833238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.834275"], ["updated_at", "2018-06-08 23:50:11.834275"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.836814"], ["updated_at", "2018-06-08 23:50:11.836814"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:50:11.838065"], ["updated_at", "2018-06-08 23:50:11.838065"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.886653"], ["updated_at", "2018-06-08 23:50:11.886653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.888318"], ["updated_at", "2018-06-08 23:50:11.888318"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.893081"], ["updated_at", "2018-06-08 23:50:11.893081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.894374"], ["updated_at", "2018-06-08 23:50:11.894374"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:50:11.904612"], ["updated_at", "2018-06-08 23:50:11.904612"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:50:11.909900"], ["updated_at", "2018-06-08 23:50:11.909900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.926424"], ["updated_at", "2018-06-08 23:50:11.926424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.927809"], ["updated_at", "2018-06-08 23:50:11.927809"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.932432"], ["updated_at", "2018-06-08 23:50:11.932432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.944299"], ["updated_at", "2018-06-08 23:50:11.944299"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.952812"], ["updated_at", "2018-06-08 23:50:11.952812"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.954501"], ["updated_at", "2018-06-08 23:50:11.954501"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:50:11.964876"], ["updated_at", "2018-06-08 23:50:11.964876"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.972810"], ["updated_at", "2018-06-08 23:50:11.972810"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.974220"], ["updated_at", "2018-06-08 23:50:11.974220"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.985842"], ["updated_at", "2018-06-08 23:50:11.985842"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:11.988079"], ["updated_at", "2018-06-08 23:50:11.988079"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.008819"], ["updated_at", "2018-06-08 23:50:12.008819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.012429"], ["updated_at", "2018-06-08 23:50:12.012429"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:50:12.023828"], ["updated_at", "2018-06-08 23:50:12.023828"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:50:12.027776"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:50:12.029843"], ["updated_at", "2018-06-08 23:50:12.029843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:50:12.031555"], ["updated_at", "2018-06-08 23:50:12.031555"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.037349"], ["updated_at", "2018-06-08 23:50:12.037349"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.039389"], ["updated_at", "2018-06-08 23:50:12.039389"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.055979"], ["updated_at", "2018-06-08 23:50:12.055979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.064364"], ["updated_at", "2018-06-08 23:50:12.064364"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.065793"], ["updated_at", "2018-06-08 23:50:12.065793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.3ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:50:12.079456"], ["updated_at", "2018-06-08 23:50:12.079456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.082855"], ["updated_at", "2018-06-08 23:50:12.082855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.089726"], ["updated_at", "2018-06-08 23:50:12.089726"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.091417"], ["updated_at", "2018-06-08 23:50:12.091417"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.093355"], ["updated_at", "2018-06-08 23:50:12.093355"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.111267"], ["updated_at", "2018-06-08 23:50:12.111267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.112451"], ["updated_at", "2018-06-08 23:50:12.112451"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.115769"], ["updated_at", "2018-06-08 23:50:12.115769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.121575"], ["updated_at", "2018-06-08 23:50:12.121575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.123226"], ["updated_at", "2018-06-08 23:50:12.123226"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.128434"], ["updated_at", "2018-06-08 23:50:12.128434"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:50:12.135646"], ["updated_at", "2018-06-08 23:50:12.135646"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.152760"], ["updated_at", "2018-06-08 23:50:12.152760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.164329"], ["updated_at", "2018-06-08 23:50:12.164329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.173730"], ["updated_at", "2018-06-08 23:50:12.173730"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.181028"], ["updated_at", "2018-06-08 23:50:12.181028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.182615"], ["updated_at", "2018-06-08 23:50:12.182615"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.185592"], ["updated_at", "2018-06-08 23:50:12.185592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.187036"], ["updated_at", "2018-06-08 23:50:12.187036"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:50:12.197931"], ["updated_at", "2018-06-08 23:50:12.197931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:50:12.199246"], ["updated_at", "2018-06-08 23:50:12.199246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:50:12.201800"], ["updated_at", "2018-06-08 23:50:12.201800"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:50:12.203312"], ["updated_at", "2018-06-08 23:50:12.203312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.215532"], ["updated_at", "2018-06-08 23:50:12.215532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:50:12.221406"], ["updated_at", "2018-06-08 23:50:12.221406"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 5.4ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (3.1ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:18.920819"], ["updated_at", "2018-06-08 23:51:18.920819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:18.936296"], ["updated_at", "2018-06-08 23:51:18.936296"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:18.941241"], ["updated_at", "2018-06-08 23:51:18.941241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:51:18.985847"], ["updated_at", "2018-06-08 23:51:18.985847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:51:18.987208"], ["updated_at", "2018-06-08 23:51:18.987208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:51:19.019063"], ["updated_at", "2018-06-08 23:51:19.019063"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.048278"], ["updated_at", "2018-06-08 23:51:19.048278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.367750"], ["updated_at", "2018-06-08 23:51:19.367750"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.369972"], ["updated_at", "2018-06-08 23:51:19.369972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.387860"], ["updated_at", "2018-06-08 23:51:19.387860"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.396123"], ["updated_at", "2018-06-08 23:51:19.396123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.400948"], ["updated_at", "2018-06-08 23:51:19.400948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.412008"], ["updated_at", "2018-06-08 23:51:19.412008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.413150"], ["updated_at", "2018-06-08 23:51:19.413150"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.416348"], ["updated_at", "2018-06-08 23:51:19.416348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.417865"], ["updated_at", "2018-06-08 23:51:19.417865"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.421672"], ["updated_at", "2018-06-08 23:51:19.421672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.460016"], ["updated_at", "2018-06-08 23:51:19.460016"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.466576"], ["updated_at", "2018-06-08 23:51:19.466576"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.467892"], ["updated_at", "2018-06-08 23:51:19.467892"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.471980"], ["updated_at", "2018-06-08 23:51:19.471980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.479684"], ["updated_at", "2018-06-08 23:51:19.479684"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.484501"], ["updated_at", "2018-06-08 23:51:19.484501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.487913"], ["updated_at", "2018-06-08 23:51:19.487913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:51:19.497625"], ["updated_at", "2018-06-08 23:51:19.497625"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:51:19.512818"], ["updated_at", "2018-06-08 23:51:19.512818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:51:19.514153"], ["updated_at", "2018-06-08 23:51:19.514153"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:51:19.516956"], ["updated_at", "2018-06-08 23:51:19.516956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:51:19.518500"], ["updated_at", "2018-06-08 23:51:19.518500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.527759"], ["updated_at", "2018-06-08 23:51:19.527759"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.530299"], ["updated_at", "2018-06-08 23:51:19.530299"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.531562"], ["updated_at", "2018-06-08 23:51:19.531562"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.535773"], ["updated_at", "2018-06-08 23:51:19.535773"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.537076"], ["updated_at", "2018-06-08 23:51:19.537076"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.545332"], ["updated_at", "2018-06-08 23:51:19.545332"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.546889"], ["updated_at", "2018-06-08 23:51:19.546889"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.550821"], ["updated_at", "2018-06-08 23:51:19.550821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.552243"], ["updated_at", "2018-06-08 23:51:19.552243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.553378"], ["updated_at", "2018-06-08 23:51:19.553378"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.556661"], ["updated_at", "2018-06-08 23:51:19.556661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:51:19.562669"], ["updated_at", "2018-06-08 23:51:19.562669"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.566436"], ["updated_at", "2018-06-08 23:51:19.566436"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:51:19.572982"], ["updated_at", "2018-06-08 23:51:19.572982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:51:19.576341"], ["updated_at", "2018-06-08 23:51:19.576341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:51:19.603638"], ["updated_at", "2018-06-08 23:51:19.603638"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.611784"], ["updated_at", "2018-06-08 23:51:19.611784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.613138"], ["updated_at", "2018-06-08 23:51:19.613138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.617358"], ["updated_at", "2018-06-08 23:51:19.617358"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.626479"], ["updated_at", "2018-06-08 23:51:19.626479"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.627843"], ["updated_at", "2018-06-08 23:51:19.627843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.643368"], ["updated_at", "2018-06-08 23:51:19.643368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:51:19.644554"], ["updated_at", "2018-06-08 23:51:19.644554"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.647893"], ["updated_at", "2018-06-08 23:51:19.647893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.649243"], ["updated_at", "2018-06-08 23:51:19.649243"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.655695"], ["updated_at", "2018-06-08 23:51:19.655695"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.657702"], ["updated_at", "2018-06-08 23:51:19.657702"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.659587"], ["updated_at", "2018-06-08 23:51:19.659587"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.671570"], ["updated_at", "2018-06-08 23:51:19.671570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.679574"], ["updated_at", "2018-06-08 23:51:19.679574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.680799"], ["updated_at", "2018-06-08 23:51:19.680799"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.683823"], ["updated_at", "2018-06-08 23:51:19.683823"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.693449"], ["updated_at", "2018-06-08 23:51:19.693449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.700914"], ["updated_at", "2018-06-08 23:51:19.700914"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.702595"], ["updated_at", "2018-06-08 23:51:19.702595"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:51:19.706024"], ["updated_at", "2018-06-08 23:51:19.706024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:51:19.707206"], ["updated_at", "2018-06-08 23:51:19.707206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.708490"], ["updated_at", "2018-06-08 23:51:19.708490"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.711654"], ["updated_at", "2018-06-08 23:51:19.711654"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.713088"], ["updated_at", "2018-06-08 23:51:19.713088"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.727133"], ["updated_at", "2018-06-08 23:51:19.727133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.730924"], ["updated_at", "2018-06-08 23:51:19.730924"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:51:19.737774"], ["updated_at", "2018-06-08 23:51:19.737774"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:51:19.739889"], ["updated_at", "2018-06-08 23:51:19.739889"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:51:19.743928"], ["updated_at", "2018-06-08 23:51:19.743928"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:51:19.746116"], ["updated_at", "2018-06-08 23:51:19.746116"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.753772"], ["updated_at", "2018-06-08 23:51:19.753772"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.755306"], ["updated_at", "2018-06-08 23:51:19.755306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:51:19.765791"], ["updated_at", "2018-06-08 23:51:19.765791"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 23:51:19.768666"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:51:19.770977"], ["updated_at", "2018-06-08 23:51:19.770977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:51:19.772589"], ["updated_at", "2018-06-08 23:51:19.772589"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.779056"], ["updated_at", "2018-06-08 23:51:19.779056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.789327"], ["updated_at", "2018-06-08 23:51:19.789327"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.799492"], ["updated_at", "2018-06-08 23:51:19.799492"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.811540"], ["updated_at", "2018-06-08 23:51:19.811540"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:19.818264"], ["updated_at", "2018-06-08 23:51:19.818264"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Completed 404 Not Found in 3ms (ActiveRecord: 0.3ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (1.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.3ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 1ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (1.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.595993"], ["updated_at", "2018-06-08 23:51:37.595993"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.645350"], ["updated_at", "2018-06-08 23:51:37.645350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.666589"], ["updated_at", "2018-06-08 23:51:37.666589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.673243"], ["updated_at", "2018-06-08 23:51:37.673243"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.678341"], ["updated_at", "2018-06-08 23:51:37.678341"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.684549"], ["updated_at", "2018-06-08 23:51:37.684549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.694808"], ["updated_at", "2018-06-08 23:51:37.694808"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.699374"], ["updated_at", "2018-06-08 23:51:37.699374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.704728"], ["updated_at", "2018-06-08 23:51:37.704728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.706272"], ["updated_at", "2018-06-08 23:51:37.706272"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.724883"], ["updated_at", "2018-06-08 23:51:37.724883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.732253"], ["updated_at", "2018-06-08 23:51:37.732253"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.741018"], ["updated_at", "2018-06-08 23:51:37.741018"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.751657"], ["updated_at", "2018-06-08 23:51:37.751657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.753029"], ["updated_at", "2018-06-08 23:51:37.753029"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.760213"], ["updated_at", "2018-06-08 23:51:37.760213"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.762440"], ["updated_at", "2018-06-08 23:51:37.762440"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.764358"], ["updated_at", "2018-06-08 23:51:37.764358"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.768696"], ["updated_at", "2018-06-08 23:51:37.768696"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.780191"], ["updated_at", "2018-06-08 23:51:37.780191"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.782261"], ["updated_at", "2018-06-08 23:51:37.782261"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.787490"], ["updated_at", "2018-06-08 23:51:37.787490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.800870"], ["updated_at", "2018-06-08 23:51:37.800870"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.804341"], ["updated_at", "2018-06-08 23:51:37.804341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.808276"], ["updated_at", "2018-06-08 23:51:37.808276"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.817134"], ["updated_at", "2018-06-08 23:51:37.817134"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.818726"], ["updated_at", "2018-06-08 23:51:37.818726"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:51:37.834204"], ["updated_at", "2018-06-08 23:51:37.834204"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.867496"], ["updated_at", "2018-06-08 23:51:37.867496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.869079"], ["updated_at", "2018-06-08 23:51:37.869079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:51:37.889882"], ["updated_at", "2018-06-08 23:51:37.889882"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:51:37.894208"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:51:37.897205"], ["updated_at", "2018-06-08 23:51:37.897205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:51:37.899282"], ["updated_at", "2018-06-08 23:51:37.899282"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.904809"], ["updated_at", "2018-06-08 23:51:37.904809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.906258"], ["updated_at", "2018-06-08 23:51:37.906258"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:51:37.924912"], ["updated_at", "2018-06-08 23:51:37.924912"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:51:37.926968"], ["updated_at", "2018-06-08 23:51:37.926968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:51:37.930481"], ["updated_at", "2018-06-08 23:51:37.930481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:51:37.931855"], ["updated_at", "2018-06-08 23:51:37.931855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:51:37.944395"], ["updated_at", "2018-06-08 23:51:37.944395"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:51:37.946603"], ["updated_at", "2018-06-08 23:51:37.946603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.948485"], ["updated_at", "2018-06-08 23:51:37.948485"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:51:37.953967"], ["updated_at", "2018-06-08 23:51:37.953967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.981293"], ["updated_at", "2018-06-08 23:51:37.981293"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.982798"], ["updated_at", "2018-06-08 23:51:37.982798"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.986221"], ["updated_at", "2018-06-08 23:51:37.986221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.989271"], ["updated_at", "2018-06-08 23:51:37.989271"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.993689"], ["updated_at", "2018-06-08 23:51:37.993689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:37.999410"], ["updated_at", "2018-06-08 23:51:37.999410"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:51:38.000775"], ["updated_at", "2018-06-08 23:51:38.000775"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:51:38.004359"], ["updated_at", "2018-06-08 23:51:38.004359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:51:38.005525"], ["updated_at", "2018-06-08 23:51:38.005525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:51:38.008382"], ["updated_at", "2018-06-08 23:51:38.008382"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:51:38.010012"], ["updated_at", "2018-06-08 23:51:38.010012"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.016062"], ["updated_at", "2018-06-08 23:51:38.016062"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.017545"], ["updated_at", "2018-06-08 23:51:38.017545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.026212"], ["updated_at", "2018-06-08 23:51:38.026212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.027692"], ["updated_at", "2018-06-08 23:51:38.027692"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.039212"], ["updated_at", "2018-06-08 23:51:38.039212"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.040797"], ["updated_at", "2018-06-08 23:51:38.040797"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.046652"], ["updated_at", "2018-06-08 23:51:38.046652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.048095"], ["updated_at", "2018-06-08 23:51:38.048095"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.052410"], ["updated_at", "2018-06-08 23:51:38.052410"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.057602"], ["updated_at", "2018-06-08 23:51:38.057602"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.059689"], ["updated_at", "2018-06-08 23:51:38.059689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.063382"], ["updated_at", "2018-06-08 23:51:38.063382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:51:38.070663"], ["updated_at", "2018-06-08 23:51:38.070663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.073707"], ["updated_at", "2018-06-08 23:51:38.073707"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.102653"], ["updated_at", "2018-06-08 23:51:38.102653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.103849"], ["updated_at", "2018-06-08 23:51:38.103849"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.107726"], ["updated_at", "2018-06-08 23:51:38.107726"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.117551"], ["updated_at", "2018-06-08 23:51:38.117551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.119084"], ["updated_at", "2018-06-08 23:51:38.119084"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.120203"], ["updated_at", "2018-06-08 23:51:38.120203"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:51:38.135903"], ["updated_at", "2018-06-08 23:51:38.135903"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:51:38.139578"], ["updated_at", "2018-06-08 23:51:38.139578"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.154373"], ["updated_at", "2018-06-08 23:51:38.154373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.155544"], ["updated_at", "2018-06-08 23:51:38.155544"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:51:38.205800"], ["updated_at", "2018-06-08 23:51:38.205800"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:51:38.274008"], ["updated_at", "2018-06-08 23:51:38.274008"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:51:38.276146"], ["updated_at", "2018-06-08 23:51:38.276146"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.317218"], ["updated_at", "2018-06-08 23:51:38.317218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.325478"], ["updated_at", "2018-06-08 23:51:38.325478"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.331614"], ["updated_at", "2018-06-08 23:51:38.331614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:51:38.340640"], ["updated_at", "2018-06-08 23:51:38.340640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Completed 404 Not Found in 3ms (ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.8ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.583240"], ["updated_at", "2018-06-08 23:52:08.583240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.591366"], ["updated_at", "2018-06-08 23:52:08.591366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.592471"], ["updated_at", "2018-06-08 23:52:08.592471"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.608787"], ["updated_at", "2018-06-08 23:52:08.608787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.609924"], ["updated_at", "2018-06-08 23:52:08.609924"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:52:08.660019"], ["updated_at", "2018-06-08 23:52:08.660019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.666109"], ["updated_at", "2018-06-08 23:52:08.666109"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.667306"], ["updated_at", "2018-06-08 23:52:08.667306"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.670979"], ["updated_at", "2018-06-08 23:52:08.670979"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.674533"], ["updated_at", "2018-06-08 23:52:08.674533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.679419"], ["updated_at", "2018-06-08 23:52:08.679419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.680895"], ["updated_at", "2018-06-08 23:52:08.680895"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.684534"], ["updated_at", "2018-06-08 23:52:08.684534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:52:08.692517"], ["updated_at", "2018-06-08 23:52:08.692517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:52:08.695079"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:52:08.696972"], ["updated_at", "2018-06-08 23:52:08.696972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:52:08.698118"], ["updated_at", "2018-06-08 23:52:08.698118"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.703379"], ["updated_at", "2018-06-08 23:52:08.703379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.710425"], ["updated_at", "2018-06-08 23:52:08.710425"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:52:08.711711"], ["updated_at", "2018-06-08 23:52:08.711711"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.714937"], ["updated_at", "2018-06-08 23:52:08.714937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.718726"], ["updated_at", "2018-06-08 23:52:08.718726"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.723893"], ["updated_at", "2018-06-08 23:52:08.723893"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.725837"], ["updated_at", "2018-06-08 23:52:08.725837"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.733964"], ["updated_at", "2018-06-08 23:52:08.733964"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:52:08.742229"], ["updated_at", "2018-06-08 23:52:08.742229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:52:08.743459"], ["updated_at", "2018-06-08 23:52:08.743459"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:52:08.746804"], ["updated_at", "2018-06-08 23:52:08.746804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:52:08.748426"], ["updated_at", "2018-06-08 23:52:08.748426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.753720"], ["updated_at", "2018-06-08 23:52:08.753720"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.758034"], ["updated_at", "2018-06-08 23:52:08.758034"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.759483"], ["updated_at", "2018-06-08 23:52:08.759483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.763070"], ["updated_at", "2018-06-08 23:52:08.763070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.768228"], ["updated_at", "2018-06-08 23:52:08.768228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.794126"], ["updated_at", "2018-06-08 23:52:08.794126"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.795366"], ["updated_at", "2018-06-08 23:52:08.795366"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.799557"], ["updated_at", "2018-06-08 23:52:08.799557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.810293"], ["updated_at", "2018-06-08 23:52:08.810293"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.811815"], ["updated_at", "2018-06-08 23:52:08.811815"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.816573"], ["updated_at", "2018-06-08 23:52:08.816573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.818035"], ["updated_at", "2018-06-08 23:52:08.818035"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.820786"], ["updated_at", "2018-06-08 23:52:08.820786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.821931"], ["updated_at", "2018-06-08 23:52:08.821931"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.824752"], ["updated_at", "2018-06-08 23:52:08.824752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.2ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:52:08.843300"], ["updated_at", "2018-06-08 23:52:08.843300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:52:08.844789"], ["updated_at", "2018-06-08 23:52:08.844789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:52:08.848609"], ["updated_at", "2018-06-08 23:52:08.848609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:52:08.849913"], ["updated_at", "2018-06-08 23:52:08.849913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.864331"], ["updated_at", "2018-06-08 23:52:08.864331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.865838"], ["updated_at", "2018-06-08 23:52:08.865838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:52:08.884846"], ["updated_at", "2018-06-08 23:52:08.884846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.888242"], ["updated_at", "2018-06-08 23:52:08.888242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.894024"], ["updated_at", "2018-06-08 23:52:08.894024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.895408"], ["updated_at", "2018-06-08 23:52:08.895408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.896838"], ["updated_at", "2018-06-08 23:52:08.896838"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:52:08.901306"], ["updated_at", "2018-06-08 23:52:08.901306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:52:08.905213"], ["updated_at", "2018-06-08 23:52:08.905213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.919872"], ["updated_at", "2018-06-08 23:52:08.919872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.921373"], ["updated_at", "2018-06-08 23:52:08.921373"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.926865"], ["updated_at", "2018-06-08 23:52:08.926865"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.936023"], ["updated_at", "2018-06-08 23:52:08.936023"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.940783"], ["updated_at", "2018-06-08 23:52:08.940783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.944145"], ["updated_at", "2018-06-08 23:52:08.944145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.949575"], ["updated_at", "2018-06-08 23:52:08.949575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.957160"], ["updated_at", "2018-06-08 23:52:08.957160"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.970888"], ["updated_at", "2018-06-08 23:52:08.970888"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.977380"], ["updated_at", "2018-06-08 23:52:08.977380"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.983732"], ["updated_at", "2018-06-08 23:52:08.983732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:08.985491"], ["updated_at", "2018-06-08 23:52:08.985491"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:52:08.991095"], ["updated_at", "2018-06-08 23:52:08.991095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.026691"], ["updated_at", "2018-06-08 23:52:09.026691"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.036671"], ["updated_at", "2018-06-08 23:52:09.036671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.045519"], ["updated_at", "2018-06-08 23:52:09.045519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.046907"], ["updated_at", "2018-06-08 23:52:09.046907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:52:09.054190"], ["updated_at", "2018-06-08 23:52:09.054190"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:52:09.055727"], ["updated_at", "2018-06-08 23:52:09.055727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.056986"], ["updated_at", "2018-06-08 23:52:09.056986"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.060250"], ["updated_at", "2018-06-08 23:52:09.060250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.061640"], ["updated_at", "2018-06-08 23:52:09.061640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:52:09.234415"], ["updated_at", "2018-06-08 23:52:09.234415"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.2ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.283695"], ["updated_at", "2018-06-08 23:52:09.283695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.292096"], ["updated_at", "2018-06-08 23:52:09.292096"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.300848"], ["updated_at", "2018-06-08 23:52:09.300848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:09.306187"], ["updated_at", "2018-06-08 23:52:09.306187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:52:09.327664"], ["updated_at", "2018-06-08 23:52:09.327664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:52:09.329004"], ["updated_at", "2018-06-08 23:52:09.329004"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:52:19.255468"], ["updated_at", "2018-06-08 23:52:19.255468"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:52:19.263814"], ["updated_at", "2018-06-08 23:52:19.263814"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:52:19.285233"], ["updated_at", "2018-06-08 23:52:19.285233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:52:19.286527"], ["updated_at", "2018-06-08 23:52:19.286527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.300991"], ["updated_at", "2018-06-08 23:52:19.300991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.312775"], ["updated_at", "2018-06-08 23:52:19.312775"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:52:19.323139"], ["updated_at", "2018-06-08 23:52:19.323139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.350660"], ["updated_at", "2018-06-08 23:52:19.350660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.352051"], ["updated_at", "2018-06-08 23:52:19.352051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.362705"], ["updated_at", "2018-06-08 23:52:19.362705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.371038"], ["updated_at", "2018-06-08 23:52:19.371038"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.374450"], ["updated_at", "2018-06-08 23:52:19.374450"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.385697"], ["updated_at", "2018-06-08 23:52:19.385697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.387025"], ["updated_at", "2018-06-08 23:52:19.387025"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.389972"], ["updated_at", "2018-06-08 23:52:19.389972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:52:19.398452"], ["updated_at", "2018-06-08 23:52:19.398452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:52:19.400029"], ["updated_at", "2018-06-08 23:52:19.400029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:52:19.402346"], ["updated_at", "2018-06-08 23:52:19.402346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:52:19.403471"], ["updated_at", "2018-06-08 23:52:19.403471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.421092"], ["updated_at", "2018-06-08 23:52:19.421092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.422478"], ["updated_at", "2018-06-08 23:52:19.422478"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.440176"], ["updated_at", "2018-06-08 23:52:19.440176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.441329"], ["updated_at", "2018-06-08 23:52:19.441329"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.8ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:52:19.452491"], ["updated_at", "2018-06-08 23:52:19.452491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-08 23:52:19.454304"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:52:19.456200"], ["updated_at", "2018-06-08 23:52:19.456200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:52:19.457341"], ["updated_at", "2018-06-08 23:52:19.457341"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.465002"], ["updated_at", "2018-06-08 23:52:19.465002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.472203"], ["updated_at", "2018-06-08 23:52:19.472203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.473351"], ["updated_at", "2018-06-08 23:52:19.473351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.484916"], ["updated_at", "2018-06-08 23:52:19.484916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.486206"], ["updated_at", "2018-06-08 23:52:19.486206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.488962"], ["updated_at", "2018-06-08 23:52:19.488962"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.495718"], ["updated_at", "2018-06-08 23:52:19.495718"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.509923"], ["updated_at", "2018-06-08 23:52:19.509923"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.521561"], ["updated_at", "2018-06-08 23:52:19.521561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.522742"], ["updated_at", "2018-06-08 23:52:19.522742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.539351"], ["updated_at", "2018-06-08 23:52:19.539351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.540598"], ["updated_at", "2018-06-08 23:52:19.540598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.541729"], ["updated_at", "2018-06-08 23:52:19.541729"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.548004"], ["updated_at", "2018-06-08 23:52:19.548004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:52:19.549724"], ["updated_at", "2018-06-08 23:52:19.549724"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.553310"], ["updated_at", "2018-06-08 23:52:19.553310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.554477"], ["updated_at", "2018-06-08 23:52:19.554477"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.578813"], ["updated_at", "2018-06-08 23:52:19.578813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.582493"], ["updated_at", "2018-06-08 23:52:19.582493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.598563"], ["updated_at", "2018-06-08 23:52:19.598563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.599943"], ["updated_at", "2018-06-08 23:52:19.599943"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.602601"], ["updated_at", "2018-06-08 23:52:19.602601"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.605368"], ["updated_at", "2018-06-08 23:52:19.605368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.607849"], ["updated_at", "2018-06-08 23:52:19.607849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:52:19.619827"], ["updated_at", "2018-06-08 23:52:19.619827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.625119"], ["updated_at", "2018-06-08 23:52:19.625119"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:52:19.632460"], ["updated_at", "2018-06-08 23:52:19.632460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:52:19.637115"], ["updated_at", "2018-06-08 23:52:19.637115"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.649688"], ["updated_at", "2018-06-08 23:52:19.649688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.650702"], ["updated_at", "2018-06-08 23:52:19.650702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.653944"], ["updated_at", "2018-06-08 23:52:19.653944"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.662645"], ["updated_at", "2018-06-08 23:52:19.662645"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:52:19.669790"], ["updated_at", "2018-06-08 23:52:19.669790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.672614"], ["updated_at", "2018-06-08 23:52:19.672614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.679568"], ["updated_at", "2018-06-08 23:52:19.679568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.681022"], ["updated_at", "2018-06-08 23:52:19.681022"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.684484"], ["updated_at", "2018-06-08 23:52:19.684484"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.685750"], ["updated_at", "2018-06-08 23:52:19.685750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.700540"], ["updated_at", "2018-06-08 23:52:19.700540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.701741"], ["updated_at", "2018-06-08 23:52:19.701741"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.711125"], ["updated_at", "2018-06-08 23:52:19.711125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.712702"], ["updated_at", "2018-06-08 23:52:19.712702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.714131"], ["updated_at", "2018-06-08 23:52:19.714131"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.718076"], ["updated_at", "2018-06-08 23:52:19.718076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.725910"], ["updated_at", "2018-06-08 23:52:19.725910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.728282"], ["updated_at", "2018-06-08 23:52:19.728282"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.733566"], ["updated_at", "2018-06-08 23:52:19.733566"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.740484"], ["updated_at", "2018-06-08 23:52:19.740484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.749691"], ["updated_at", "2018-06-08 23:52:19.749691"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:52:19.753099"], ["updated_at", "2018-06-08 23:52:19.753099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:52:19.754303"], ["updated_at", "2018-06-08 23:52:19.754303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.755331"], ["updated_at", "2018-06-08 23:52:19.755331"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Completed 404 Not Found in 4ms (ActiveRecord: 0.3ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:19.943021"], ["updated_at", "2018-06-08 23:52:19.943021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:52:19.976026"], ["updated_at", "2018-06-08 23:52:19.976026"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:52:19.983367"], ["updated_at", "2018-06-08 23:52:19.983367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:52:19.984492"], ["updated_at", "2018-06-08 23:52:19.984492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:20.008451"], ["updated_at", "2018-06-08 23:52:20.008451"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:20.017168"], ["updated_at", "2018-06-08 23:52:20.017168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:52:20.021910"], ["updated_at", "2018-06-08 23:52:20.021910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:53:12.453921"], ["updated_at", "2018-06-08 23:53:12.453921"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:53:12.547899"], ["updated_at", "2018-06-08 23:53:12.547899"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:53:12.550269"], ["updated_at", "2018-06-08 23:53:12.550269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.579341"], ["updated_at", "2018-06-08 23:53:12.579341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.586649"], ["updated_at", "2018-06-08 23:53:12.586649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.590904"], ["updated_at", "2018-06-08 23:53:12.590904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.607045"], ["updated_at", "2018-06-08 23:53:12.607045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.675758"], ["updated_at", "2018-06-08 23:53:12.675758"]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.677595"], ["updated_at", "2018-06-08 23:53:12.677595"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:53:12.685584"], ["updated_at", "2018-06-08 23:53:12.685584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:53:12.688594"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:53:12.690381"], ["updated_at", "2018-06-08 23:53:12.690381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:53:12.691814"], ["updated_at", "2018-06-08 23:53:12.691814"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.702141"], ["updated_at", "2018-06-08 23:53:12.702141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.703810"], ["updated_at", "2018-06-08 23:53:12.703810"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.706853"], ["updated_at", "2018-06-08 23:53:12.706853"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.710419"], ["updated_at", "2018-06-08 23:53:12.710419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.711576"], ["updated_at", "2018-06-08 23:53:12.711576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.725241"], ["updated_at", "2018-06-08 23:53:12.725241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:53:12.732351"], ["updated_at", "2018-06-08 23:53:12.732351"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:53:12.734430"], ["updated_at", "2018-06-08 23:53:12.734430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:53:12.738336"], ["updated_at", "2018-06-08 23:53:12.738336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:53:12.739609"], ["updated_at", "2018-06-08 23:53:12.739609"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.744130"], ["updated_at", "2018-06-08 23:53:12.744130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.748906"], ["updated_at", "2018-06-08 23:53:12.748906"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.753068"], ["updated_at", "2018-06-08 23:53:12.753068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.758526"], ["updated_at", "2018-06-08 23:53:12.758526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.759717"], ["updated_at", "2018-06-08 23:53:12.759717"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.763631"], ["updated_at", "2018-06-08 23:53:12.763631"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.772602"], ["updated_at", "2018-06-08 23:53:12.772602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.774105"], ["updated_at", "2018-06-08 23:53:12.774105"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:53:12.800480"], ["updated_at", "2018-06-08 23:53:12.800480"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:53:12.802080"], ["updated_at", "2018-06-08 23:53:12.802080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:53:12.805347"], ["updated_at", "2018-06-08 23:53:12.805347"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:53:12.806789"], ["updated_at", "2018-06-08 23:53:12.806789"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.819960"], ["updated_at", "2018-06-08 23:53:12.819960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.824332"], ["updated_at", "2018-06-08 23:53:12.824332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.829826"], ["updated_at", "2018-06-08 23:53:12.829826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.838599"], ["updated_at", "2018-06-08 23:53:12.838599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.840064"], ["updated_at", "2018-06-08 23:53:12.840064"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (8.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.852208"], ["updated_at", "2018-06-08 23:53:12.852208"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.860375"], ["updated_at", "2018-06-08 23:53:12.860375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.861552"], ["updated_at", "2018-06-08 23:53:12.861552"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:53:12.864184"], ["updated_at", "2018-06-08 23:53:12.864184"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:53:12.869613"], ["updated_at", "2018-06-08 23:53:12.869613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.882203"], ["updated_at", "2018-06-08 23:53:12.882203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.885846"], ["updated_at", "2018-06-08 23:53:12.885846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.890927"], ["updated_at", "2018-06-08 23:53:12.890927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.892325"], ["updated_at", "2018-06-08 23:53:12.892325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.900598"], ["updated_at", "2018-06-08 23:53:12.900598"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.908922"], ["updated_at", "2018-06-08 23:53:12.908922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.915854"], ["updated_at", "2018-06-08 23:53:12.915854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:53:12.917122"], ["updated_at", "2018-06-08 23:53:12.917122"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:53:12.921428"], ["updated_at", "2018-06-08 23:53:12.921428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.925261"], ["updated_at", "2018-06-08 23:53:12.925261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.930740"], ["updated_at", "2018-06-08 23:53:12.930740"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.932712"], ["updated_at", "2018-06-08 23:53:12.932712"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.934167"], ["updated_at", "2018-06-08 23:53:12.934167"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.938240"], ["updated_at", "2018-06-08 23:53:12.938240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.939277"], ["updated_at", "2018-06-08 23:53:12.939277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.948195"], ["updated_at", "2018-06-08 23:53:12.948195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.949863"], ["updated_at", "2018-06-08 23:53:12.949863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:53:12.965769"], ["updated_at", "2018-06-08 23:53:12.965769"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.983904"], ["updated_at", "2018-06-08 23:53:12.983904"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.985816"], ["updated_at", "2018-06-08 23:53:12.985816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.987490"], ["updated_at", "2018-06-08 23:53:12.987490"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.991987"], ["updated_at", "2018-06-08 23:53:12.991987"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.993495"], ["updated_at", "2018-06-08 23:53:12.993495"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:12.996610"], ["updated_at", "2018-06-08 23:53:12.996610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.003604"], ["updated_at", "2018-06-08 23:53:13.003604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.006787"], ["updated_at", "2018-06-08 23:53:13.006787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.012141"], ["updated_at", "2018-06-08 23:53:13.012141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.018898"], ["updated_at", "2018-06-08 23:53:13.018898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.020222"], ["updated_at", "2018-06-08 23:53:13.020222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.038994"], ["updated_at", "2018-06-08 23:53:13.038994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.040344"], ["updated_at", "2018-06-08 23:53:13.040344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.043738"], ["updated_at", "2018-06-08 23:53:13.043738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.048901"], ["updated_at", "2018-06-08 23:53:13.048901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.050447"], ["updated_at", "2018-06-08 23:53:13.050447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.053731"], ["updated_at", "2018-06-08 23:53:13.053731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.059746"], ["updated_at", "2018-06-08 23:53:13.059746"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.068294"], ["updated_at", "2018-06-08 23:53:13.068294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:53:13.089850"], ["updated_at", "2018-06-08 23:53:13.089850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:53:13.091407"], ["updated_at", "2018-06-08 23:53:13.091407"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:13.092542"], ["updated_at", "2018-06-08 23:53:13.092542"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:53:13.100318"], ["updated_at", "2018-06-08 23:53:13.100318"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.8ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 13ms (Views: 0.5ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:53:54.007143"], ["updated_at", "2018-06-08 23:53:54.007143"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:53:54.022011"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:53:54.030469"], ["updated_at", "2018-06-08 23:53:54.030469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:53:54.031671"], ["updated_at", "2018-06-08 23:53:54.031671"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.041643"], ["updated_at", "2018-06-08 23:53:54.041643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.059716"], ["updated_at", "2018-06-08 23:53:54.059716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.064806"], ["updated_at", "2018-06-08 23:53:54.064806"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.066167"], ["updated_at", "2018-06-08 23:53:54.066167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.069398"], ["updated_at", "2018-06-08 23:53:54.069398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.076837"], ["updated_at", "2018-06-08 23:53:54.076837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.078177"], ["updated_at", "2018-06-08 23:53:54.078177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:53:54.087180"], ["updated_at", "2018-06-08 23:53:54.087180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:53:54.088652"], ["updated_at", "2018-06-08 23:53:54.088652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.089823"], ["updated_at", "2018-06-08 23:53:54.089823"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.092620"], ["updated_at", "2018-06-08 23:53:54.092620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.094215"], ["updated_at", "2018-06-08 23:53:54.094215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.104665"], ["updated_at", "2018-06-08 23:53:54.104665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:53:54.106324"], ["updated_at", "2018-06-08 23:53:54.106324"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:53:54.110656"], ["updated_at", "2018-06-08 23:53:54.110656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:53:54.112041"], ["updated_at", "2018-06-08 23:53:54.112041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:53:54.114788"], ["updated_at", "2018-06-08 23:53:54.114788"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:53:54.116217"], ["updated_at", "2018-06-08 23:53:54.116217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.121047"], ["updated_at", "2018-06-08 23:53:54.121047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.124188"], ["updated_at", "2018-06-08 23:53:54.124188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.128035"], ["updated_at", "2018-06-08 23:53:54.128035"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.133549"], ["updated_at", "2018-06-08 23:53:54.133549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.139289"], ["updated_at", "2018-06-08 23:53:54.139289"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.140436"], ["updated_at", "2018-06-08 23:53:54.140436"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.143773"], ["updated_at", "2018-06-08 23:53:54.143773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.156659"], ["updated_at", "2018-06-08 23:53:54.156659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.158001"], ["updated_at", "2018-06-08 23:53:54.158001"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:53:54.162685"], ["updated_at", "2018-06-08 23:53:54.162685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:53:54.163893"], ["updated_at", "2018-06-08 23:53:54.163893"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:53:54.167564"], ["updated_at", "2018-06-08 23:53:54.167564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:53:54.169185"], ["updated_at", "2018-06-08 23:53:54.169185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.181542"], ["updated_at", "2018-06-08 23:53:54.181542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.184069"], ["updated_at", "2018-06-08 23:53:54.184069"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.2ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.205679"], ["updated_at", "2018-06-08 23:53:54.205679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.207040"], ["updated_at", "2018-06-08 23:53:54.207040"]]  (0.3ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.211659"], ["updated_at", "2018-06-08 23:53:54.211659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.213047"], ["updated_at", "2018-06-08 23:53:54.213047"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.217359"], ["updated_at", "2018-06-08 23:53:54.217359"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.231980"], ["updated_at", "2018-06-08 23:53:54.231980"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.243519"], ["updated_at", "2018-06-08 23:53:54.243519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.253391"], ["updated_at", "2018-06-08 23:53:54.253391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.254765"], ["updated_at", "2018-06-08 23:53:54.254765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.266102"], ["updated_at", "2018-06-08 23:53:54.266102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.268018"], ["updated_at", "2018-06-08 23:53:54.268018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.269492"], ["updated_at", "2018-06-08 23:53:54.269492"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:53:54.273930"], ["updated_at", "2018-06-08 23:53:54.273930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.279275"], ["updated_at", "2018-06-08 23:53:54.279275"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:53:54.290640"], ["updated_at", "2018-06-08 23:53:54.290640"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.321057"], ["updated_at", "2018-06-08 23:53:54.321057"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.329344"], ["updated_at", "2018-06-08 23:53:54.329344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.335237"], ["updated_at", "2018-06-08 23:53:54.335237"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.341480"], ["updated_at", "2018-06-08 23:53:54.341480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.343203"], ["updated_at", "2018-06-08 23:53:54.343203"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.373740"], ["updated_at", "2018-06-08 23:53:54.373740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.383260"], ["updated_at", "2018-06-08 23:53:54.383260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.384815"], ["updated_at", "2018-06-08 23:53:54.384815"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:53:54.410854"], ["updated_at", "2018-06-08 23:53:54.410854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.418503"], ["updated_at", "2018-06-08 23:53:54.418503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.426291"], ["updated_at", "2018-06-08 23:53:54.426291"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.436079"], ["updated_at", "2018-06-08 23:53:54.436079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.437393"], ["updated_at", "2018-06-08 23:53:54.437393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.453026"], ["updated_at", "2018-06-08 23:53:54.453026"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.456622"], ["updated_at", "2018-06-08 23:53:54.456622"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.465312"], ["updated_at", "2018-06-08 23:53:54.465312"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.468624"], ["updated_at", "2018-06-08 23:53:54.468624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.473996"], ["updated_at", "2018-06-08 23:53:54.473996"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.475442"], ["updated_at", "2018-06-08 23:53:54.475442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.476917"], ["updated_at", "2018-06-08 23:53:54.476917"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:53:54.481303"], ["updated_at", "2018-06-08 23:53:54.481303"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:53:54.486539"], ["updated_at", "2018-06-08 23:53:54.486539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.500944"], ["updated_at", "2018-06-08 23:53:54.500944"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.502205"], ["updated_at", "2018-06-08 23:53:54.502205"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.505844"], ["updated_at", "2018-06-08 23:53:54.505844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.518475"], ["updated_at", "2018-06-08 23:53:54.518475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.519817"], ["updated_at", "2018-06-08 23:53:54.519817"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.633349"], ["updated_at", "2018-06-08 23:53:54.633349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:53:54.642809"], ["updated_at", "2018-06-08 23:53:54.642809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:53:54.648308"], ["updated_at", "2018-06-08 23:53:54.648308"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.676467"], ["updated_at", "2018-06-08 23:53:54.676467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.685599"], ["updated_at", "2018-06-08 23:53:54.685599"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:53:54.689762"], ["updated_at", "2018-06-08 23:53:54.689762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:53:54.713369"], ["updated_at", "2018-06-08 23:53:54.713369"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 9ms (Views: 6.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- SQL (1.6ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.094041"], ["updated_at", "2018-06-08 23:55:15.094041"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.095841"], ["updated_at", "2018-06-08 23:55:15.095841"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.114038"], ["updated_at", "2018-06-08 23:55:15.114038"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.151081"], ["updated_at", "2018-06-08 23:55:15.151081"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.157944"], ["updated_at", "2018-06-08 23:55:15.157944"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.159216"], ["updated_at", "2018-06-08 23:55:15.159216"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.162431"], ["updated_at", "2018-06-08 23:55:15.162431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.166423"], ["updated_at", "2018-06-08 23:55:15.166423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.173873"], ["updated_at", "2018-06-08 23:55:15.173873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.175060"], ["updated_at", "2018-06-08 23:55:15.175060"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.178333"], ["updated_at", "2018-06-08 23:55:15.178333"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.179533"], ["updated_at", "2018-06-08 23:55:15.179533"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:55:15.202039"], ["updated_at", "2018-06-08 23:55:15.202039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:55:15.203611"], ["updated_at", "2018-06-08 23:55:15.203611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:55:15.206530"], ["updated_at", "2018-06-08 23:55:15.206530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:55:15.207778"], ["updated_at", "2018-06-08 23:55:15.207778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.212760"], ["updated_at", "2018-06-08 23:55:15.212760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.214036"], ["updated_at", "2018-06-08 23:55:15.214036"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.226179"], ["updated_at", "2018-06-08 23:55:15.226179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.229633"], ["updated_at", "2018-06-08 23:55:15.229633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.234833"], ["updated_at", "2018-06-08 23:55:15.234833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.236274"], ["updated_at", "2018-06-08 23:55:15.236274"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.254591"], ["updated_at", "2018-06-08 23:55:15.254591"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.258058"], ["updated_at", "2018-06-08 23:55:15.258058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.259200"], ["updated_at", "2018-06-08 23:55:15.259200"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.262985"], ["updated_at", "2018-06-08 23:55:15.262985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.269761"], ["updated_at", "2018-06-08 23:55:15.269761"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.271897"], ["updated_at", "2018-06-08 23:55:15.271897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.276826"], ["updated_at", "2018-06-08 23:55:15.276826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-08 23:55:15.282907"], ["updated_at", "2018-06-08 23:55:15.282907"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.288476"], ["updated_at", "2018-06-08 23:55:15.288476"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.295918"], ["updated_at", "2018-06-08 23:55:15.295918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.305861"], ["updated_at", "2018-06-08 23:55:15.305861"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.314606"], ["updated_at", "2018-06-08 23:55:15.314606"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.319386"], ["updated_at", "2018-06-08 23:55:15.319386"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.326356"], ["updated_at", "2018-06-08 23:55:15.326356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.330059"], ["updated_at", "2018-06-08 23:55:15.330059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.333718"], ["updated_at", "2018-06-08 23:55:15.333718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.344343"], ["updated_at", "2018-06-08 23:55:15.344343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:55:15.362484"], ["updated_at", "2018-06-08 23:55:15.362484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:55:15.377098"], ["updated_at", "2018-06-08 23:55:15.377098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-08 23:55:15.378572"], ["updated_at", "2018-06-08 23:55:15.378572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.379892"], ["updated_at", "2018-06-08 23:55:15.379892"]]  (0.2ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.423323"], ["updated_at", "2018-06-08 23:55:15.423323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.424800"], ["updated_at", "2018-06-08 23:55:15.424800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.433588"], ["updated_at", "2018-06-08 23:55:15.433588"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.435883"], ["updated_at", "2018-06-08 23:55:15.435883"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.437994"], ["updated_at", "2018-06-08 23:55:15.437994"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-08 23:55:15.446822"], ["updated_at", "2018-06-08 23:55:15.446822"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-08 23:55:15.452033"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-08 23:55:15.455051"], ["updated_at", "2018-06-08 23:55:15.455051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-08 23:55:15.456634"], ["updated_at", "2018-06-08 23:55:15.456634"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-08 23:55:15.472484"], ["updated_at", "2018-06-08 23:55:15.472484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.492335"], ["updated_at", "2018-06-08 23:55:15.492335"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.494230"], ["updated_at", "2018-06-08 23:55:15.494230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.498293"], ["updated_at", "2018-06-08 23:55:15.498293"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.506275"], ["updated_at", "2018-06-08 23:55:15.506275"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.508057"], ["updated_at", "2018-06-08 23:55:15.508057"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.512470"], ["updated_at", "2018-06-08 23:55:15.512470"]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.514187"], ["updated_at", "2018-06-08 23:55:15.514187"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.529837"], ["updated_at", "2018-06-08 23:55:15.529837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.531802"], ["updated_at", "2018-06-08 23:55:15.531802"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.534093"], ["updated_at", "2018-06-08 23:55:15.534093"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.6ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.543018"], ["updated_at", "2018-06-08 23:55:15.543018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.557262"], ["updated_at", "2018-06-08 23:55:15.557262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (9.5ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.578325"], ["updated_at", "2018-06-08 23:55:15.578325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.588769"], ["updated_at", "2018-06-08 23:55:15.588769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-08 23:55:15.590637"], ["updated_at", "2018-06-08 23:55:15.590637"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-08 23:55:15.594338"], ["updated_at", "2018-06-08 23:55:15.594338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-08 23:55:15.595511"], ["updated_at", "2018-06-08 23:55:15.595511"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-08 23:55:15.598831"], ["updated_at", "2018-06-08 23:55:15.598831"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-08 23:55:15.600970"], ["updated_at", "2018-06-08 23:55:15.600970"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.3ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.617123"], ["updated_at", "2018-06-08 23:55:15.617123"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.619291"], ["updated_at", "2018-06-08 23:55:15.619291"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.624379"], ["updated_at", "2018-06-08 23:55:15.624379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.625640"], ["updated_at", "2018-06-08 23:55:15.625640"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.629394"], ["updated_at", "2018-06-08 23:55:15.629394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-08 23:55:15.670182"], ["updated_at", "2018-06-08 23:55:15.670182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-08 23:55:15.674176"], ["updated_at", "2018-06-08 23:55:15.674176"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 1.1ms | ActiveRecord: 0.4ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.7ms | ActiveRecord: 0.3ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-08 23:55:15.860186"], ["updated_at", "2018-06-08 23:55:15.860186"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.882868"], ["updated_at", "2018-06-08 23:55:15.882868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.920444"], ["updated_at", "2018-06-08 23:55:15.920444"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.929339"], ["updated_at", "2018-06-08 23:55:15.929339"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-08 23:55:15.935646"], ["updated_at", "2018-06-08 23:55:15.935646"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-08 23:55:15.966301"], ["updated_at", "2018-06-08 23:55:15.966301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-08 23:55:15.968105"], ["updated_at", "2018-06-08 23:55:15.968105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.391146"], ["updated_at", "2018-06-09 00:02:24.391146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.442586"], ["updated_at", "2018-06-09 00:02:24.442586"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.449174"], ["updated_at", "2018-06-09 00:02:24.449174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.452640"], ["updated_at", "2018-06-09 00:02:24.452640"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-09 00:02:24.460700"], ["updated_at", "2018-06-09 00:02:24.460700"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-09 00:02:24.468494"], ["updated_at", "2018-06-09 00:02:24.468494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-09 00:02:24.469582"], ["updated_at", "2018-06-09 00:02:24.469582"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.724312"], ["updated_at", "2018-06-09 00:02:24.724312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-09 00:02:24.725576"], ["updated_at", "2018-06-09 00:02:24.725576"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.729064"], ["updated_at", "2018-06-09 00:02:24.729064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.733739"], ["updated_at", "2018-06-09 00:02:24.733739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.734631"], ["updated_at", "2018-06-09 00:02:24.734631"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.736837"], ["updated_at", "2018-06-09 00:02:24.736837"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.737814"], ["updated_at", "2018-06-09 00:02:24.737814"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.742270"], ["updated_at", "2018-06-09 00:02:24.742270"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.743352"], ["updated_at", "2018-06-09 00:02:24.743352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.752215"], ["updated_at", "2018-06-09 00:02:24.752215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.759299"], ["updated_at", "2018-06-09 00:02:24.759299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.765419"], ["updated_at", "2018-06-09 00:02:24.765419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.766273"], ["updated_at", "2018-06-09 00:02:24.766273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.767310"], ["updated_at", "2018-06-09 00:02:24.767310"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.770844"], ["updated_at", "2018-06-09 00:02:24.770844"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.777356"], ["updated_at", "2018-06-09 00:02:24.777356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.778227"], ["updated_at", "2018-06-09 00:02:24.778227"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.779913"], ["updated_at", "2018-06-09 00:02:24.779913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.780683"], ["updated_at", "2018-06-09 00:02:24.780683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.786561"], ["updated_at", "2018-06-09 00:02:24.786561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.787684"], ["updated_at", "2018-06-09 00:02:24.787684"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.790098"], ["updated_at", "2018-06-09 00:02:24.790098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.790933"], ["updated_at", "2018-06-09 00:02:24.790933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.796889"], ["updated_at", "2018-06-09 00:02:24.796889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.799370"], ["updated_at", "2018-06-09 00:02:24.799370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.803476"], ["updated_at", "2018-06-09 00:02:24.803476"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.808332"], ["updated_at", "2018-06-09 00:02:24.808332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.809167"], ["updated_at", "2018-06-09 00:02:24.809167"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.812037"], ["updated_at", "2018-06-09 00:02:24.812037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.812847"], ["updated_at", "2018-06-09 00:02:24.812847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.815193"], ["updated_at", "2018-06-09 00:02:24.815193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.819898"], ["updated_at", "2018-06-09 00:02:24.819898"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-09 00:02:24.834657"], ["updated_at", "2018-06-09 00:02:24.834657"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-09 00:02:24.837147"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-09 00:02:24.838467"], ["updated_at", "2018-06-09 00:02:24.838467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-09 00:02:24.839351"], ["updated_at", "2018-06-09 00:02:24.839351"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.843147"], ["updated_at", "2018-06-09 00:02:24.843147"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.846445"], ["updated_at", "2018-06-09 00:02:24.846445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.849105"], ["updated_at", "2018-06-09 00:02:24.849105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-09 00:02:24.867906"], ["updated_at", "2018-06-09 00:02:24.867906"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-09 00:02:24.869605"], ["updated_at", "2018-06-09 00:02:24.869605"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-09 00:02:24.872699"], ["updated_at", "2018-06-09 00:02:24.872699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-09 00:02:24.873705"], ["updated_at", "2018-06-09 00:02:24.873705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.877433"], ["updated_at", "2018-06-09 00:02:24.877433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.878258"], ["updated_at", "2018-06-09 00:02:24.878258"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.880165"], ["updated_at", "2018-06-09 00:02:24.880165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.880982"], ["updated_at", "2018-06-09 00:02:24.880982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-09 00:02:24.895171"], ["updated_at", "2018-06-09 00:02:24.895171"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-09 00:02:24.899967"], ["updated_at", "2018-06-09 00:02:24.899967"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-09 00:02:24.901020"], ["updated_at", "2018-06-09 00:02:24.901020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.901901"], ["updated_at", "2018-06-09 00:02:24.901901"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.904393"], ["updated_at", "2018-06-09 00:02:24.904393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.907177"], ["updated_at", "2018-06-09 00:02:24.907177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.911104"], ["updated_at", "2018-06-09 00:02:24.911104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-09 00:02:24.918175"], ["updated_at", "2018-06-09 00:02:24.918175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.929304"], ["updated_at", "2018-06-09 00:02:24.929304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.935409"], ["updated_at", "2018-06-09 00:02:24.935409"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.936478"], ["updated_at", "2018-06-09 00:02:24.936478"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.937631"], ["updated_at", "2018-06-09 00:02:24.937631"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.940639"], ["updated_at", "2018-06-09 00:02:24.940639"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-09 00:02:24.946458"], ["updated_at", "2018-06-09 00:02:24.946458"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-09 00:02:24.947389"], ["updated_at", "2018-06-09 00:02:24.947389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-09 00:02:24.949205"], ["updated_at", "2018-06-09 00:02:24.949205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-09 00:02:24.950113"], ["updated_at", "2018-06-09 00:02:24.950113"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.963875"], ["updated_at", "2018-06-09 00:02:24.963875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.964822"], ["updated_at", "2018-06-09 00:02:24.964822"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.967608"], ["updated_at", "2018-06-09 00:02:24.967608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.968542"], ["updated_at", "2018-06-09 00:02:24.968542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.980488"], ["updated_at", "2018-06-09 00:02:24.980488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.985399"], ["updated_at", "2018-06-09 00:02:24.985399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.989041"], ["updated_at", "2018-06-09 00:02:24.989041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.992986"], ["updated_at", "2018-06-09 00:02:24.992986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.994182"], ["updated_at", "2018-06-09 00:02:24.994182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:24.996534"], ["updated_at", "2018-06-09 00:02:24.996534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-09 00:02:25.013404"], ["updated_at", "2018-06-09 00:02:25.013404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-09 00:02:25.016746"], ["updated_at", "2018-06-09 00:02:25.016746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:25.028934"], ["updated_at", "2018-06-09 00:02:25.028934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-09 00:02:25.035567"], ["updated_at", "2018-06-09 00:02:25.035567"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:25.039904"], ["updated_at", "2018-06-09 00:02:25.039904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 0.4ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.878975"], ["updated_at", "2018-06-09 00:02:37.878975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.880494"], ["updated_at", "2018-06-09 00:02:37.880494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-09 00:02:37.937517"], ["updated_at", "2018-06-09 00:02:37.937517"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-09 00:02:37.938910"], ["updated_at", "2018-06-09 00:02:37.938910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-09 00:02:37.942099"], ["updated_at", "2018-06-09 00:02:37.942099"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-09 00:02:37.943777"], ["updated_at", "2018-06-09 00:02:37.943777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.947777"], ["updated_at", "2018-06-09 00:02:37.947777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.948726"], ["updated_at", "2018-06-09 00:02:37.948726"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.951520"], ["updated_at", "2018-06-09 00:02:37.951520"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.952463"], ["updated_at", "2018-06-09 00:02:37.952463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.962296"], ["updated_at", "2018-06-09 00:02:37.962296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.965779"], ["updated_at", "2018-06-09 00:02:37.965779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.970477"], ["updated_at", "2018-06-09 00:02:37.970477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.971470"], ["updated_at", "2018-06-09 00:02:37.971470"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.974734"], ["updated_at", "2018-06-09 00:02:37.974734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-09 00:02:37.976031"], ["updated_at", "2018-06-09 00:02:37.976031"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.979862"], ["updated_at", "2018-06-09 00:02:37.979862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.980850"], ["updated_at", "2018-06-09 00:02:37.980850"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.981897"], ["updated_at", "2018-06-09 00:02:37.981897"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.985472"], ["updated_at", "2018-06-09 00:02:37.985472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.986545"], ["updated_at", "2018-06-09 00:02:37.986545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:37.989528"], ["updated_at", "2018-06-09 00:02:37.989528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.2ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.004443"], ["updated_at", "2018-06-09 00:02:38.004443"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.012900"], ["updated_at", "2018-06-09 00:02:38.012900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.014248"], ["updated_at", "2018-06-09 00:02:38.014248"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.017102"], ["updated_at", "2018-06-09 00:02:38.017102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.018089"], ["updated_at", "2018-06-09 00:02:38.018089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.019041"], ["updated_at", "2018-06-09 00:02:38.019041"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.023953"], ["updated_at", "2018-06-09 00:02:38.023953"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.032385"], ["updated_at", "2018-06-09 00:02:38.032385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.033419"], ["updated_at", "2018-06-09 00:02:38.033419"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-09 00:02:38.035512"], ["updated_at", "2018-06-09 00:02:38.035512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.038394"], ["updated_at", "2018-06-09 00:02:38.038394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.043730"], ["updated_at", "2018-06-09 00:02:38.043730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-09 00:02:38.051039"], ["updated_at", "2018-06-09 00:02:38.051039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-09 00:02:38.054201"], ["updated_at", "2018-06-09 00:02:38.054201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-09 00:02:38.069633"], ["updated_at", "2018-06-09 00:02:38.069633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-09 00:02:38.072303"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-09 00:02:38.074812"], ["updated_at", "2018-06-09 00:02:38.074812"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-09 00:02:38.076150"], ["updated_at", "2018-06-09 00:02:38.076150"]]  (0.2ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.081577"], ["updated_at", "2018-06-09 00:02:38.081577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.087322"], ["updated_at", "2018-06-09 00:02:38.087322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.088818"], ["updated_at", "2018-06-09 00:02:38.088818"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-09 00:02:38.111786"], ["updated_at", "2018-06-09 00:02:38.111786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.122702"], ["updated_at", "2018-06-09 00:02:38.122702"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.125132"], ["updated_at", "2018-06-09 00:02:38.125132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.129221"], ["updated_at", "2018-06-09 00:02:38.129221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.130160"], ["updated_at", "2018-06-09 00:02:38.130160"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.132826"], ["updated_at", "2018-06-09 00:02:38.132826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-09 00:02:38.138539"], ["updated_at", "2018-06-09 00:02:38.138539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-09 00:02:38.140108"], ["updated_at", "2018-06-09 00:02:38.140108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.141120"], ["updated_at", "2018-06-09 00:02:38.141120"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.144477"], ["updated_at", "2018-06-09 00:02:38.144477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.153840"], ["updated_at", "2018-06-09 00:02:38.153840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-09 00:02:38.165236"], ["updated_at", "2018-06-09 00:02:38.165236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.170133"], ["updated_at", "2018-06-09 00:02:38.170133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.171120"], ["updated_at", "2018-06-09 00:02:38.171120"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.173801"], ["updated_at", "2018-06-09 00:02:38.173801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.174978"], ["updated_at", "2018-06-09 00:02:38.174978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.181214"], ["updated_at", "2018-06-09 00:02:38.181214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.183291"], ["updated_at", "2018-06-09 00:02:38.183291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.186907"], ["updated_at", "2018-06-09 00:02:38.186907"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.191797"], ["updated_at", "2018-06-09 00:02:38.191797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.195378"], ["updated_at", "2018-06-09 00:02:38.195378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.209898"], ["updated_at", "2018-06-09 00:02:38.209898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.210855"], ["updated_at", "2018-06-09 00:02:38.210855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.213358"], ["updated_at", "2018-06-09 00:02:38.213358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.217122"], ["updated_at", "2018-06-09 00:02:38.217122"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.219391"], ["updated_at", "2018-06-09 00:02:38.219391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.221879"], ["updated_at", "2018-06-09 00:02:38.221879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.229485"], ["updated_at", "2018-06-09 00:02:38.229485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-09 00:02:38.237991"], ["updated_at", "2018-06-09 00:02:38.237991"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-09 00:02:38.239556"], ["updated_at", "2018-06-09 00:02:38.239556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-09 00:02:38.242475"], ["updated_at", "2018-06-09 00:02:38.242475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-09 00:02:38.243439"], ["updated_at", "2018-06-09 00:02:38.243439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.251299"], ["updated_at", "2018-06-09 00:02:38.251299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.252264"], ["updated_at", "2018-06-09 00:02:38.252264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.261266"], ["updated_at", "2018-06-09 00:02:38.261266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.262340"], ["updated_at", "2018-06-09 00:02:38.262340"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-09 00:02:38.410338"], ["updated_at", "2018-06-09 00:02:38.410338"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-09 00:02:38.413713"], ["updated_at", "2018-06-09 00:02:38.413713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-09 00:02:38.414645"], ["updated_at", "2018-06-09 00:02:38.414645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.429235"], ["updated_at", "2018-06-09 00:02:38.429235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 9], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.446858"], ["updated_at", "2018-06-09 00:02:38.446858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.453623"], ["updated_at", "2018-06-09 00:02:38.453623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-09 00:02:38.458019"], ["updated_at", "2018-06-09 00:02:38.458019"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (5.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.783544"], ["updated_at", "2018-06-11 20:26:59.783544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.799261"], ["updated_at", "2018-06-11 20:26:59.799261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.804275"], ["updated_at", "2018-06-11 20:26:59.804275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.835216"], ["updated_at", "2018-06-11 20:26:59.835216"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-11 20:26:59.854173"], ["updated_at", "2018-06-11 20:26:59.854173"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-11 20:26:59.862754"], ["updated_at", "2018-06-11 20:26:59.862754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-11 20:26:59.863831"], ["updated_at", "2018-06-11 20:26:59.863831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.909885"], ["updated_at", "2018-06-11 20:26:59.909885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.912719"], ["updated_at", "2018-06-11 20:26:59.912719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.916570"], ["updated_at", "2018-06-11 20:26:59.916570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.917455"], ["updated_at", "2018-06-11 20:26:59.917455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.924934"], ["updated_at", "2018-06-11 20:26:59.924934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.926422"], ["updated_at", "2018-06-11 20:26:59.926422"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 20:26:59.928851"], ["updated_at", "2018-06-11 20:26:59.928851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 20:26:59.929775"], ["updated_at", "2018-06-11 20:26:59.929775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.930593"], ["updated_at", "2018-06-11 20:26:59.930593"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.932570"], ["updated_at", "2018-06-11 20:26:59.932570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.933358"], ["updated_at", "2018-06-11 20:26:59.933358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.938818"], ["updated_at", "2018-06-11 20:26:59.938818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.939873"], ["updated_at", "2018-06-11 20:26:59.939873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.940751"], ["updated_at", "2018-06-11 20:26:59.940751"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-11 20:26:59.944661"], ["updated_at", "2018-06-11 20:26:59.944661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.948274"], ["updated_at", "2018-06-11 20:26:59.948274"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.963900"], ["updated_at", "2018-06-11 20:26:59.963900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.964840"], ["updated_at", "2018-06-11 20:26:59.964840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.967910"], ["updated_at", "2018-06-11 20:26:59.967910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.971936"], ["updated_at", "2018-06-11 20:26:59.971936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.974664"], ["updated_at", "2018-06-11 20:26:59.974664"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.977921"], ["updated_at", "2018-06-11 20:26:59.977921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.982037"], ["updated_at", "2018-06-11 20:26:59.982037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.986658"], ["updated_at", "2018-06-11 20:26:59.986658"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.987942"], ["updated_at", "2018-06-11 20:26:59.987942"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.990811"], ["updated_at", "2018-06-11 20:26:59.990811"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:26:59.999294"], ["updated_at", "2018-06-11 20:26:59.999294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-11 20:27:00.011416"], ["updated_at", "2018-06-11 20:27:00.011416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.022917"], ["updated_at", "2018-06-11 20:27:00.022917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.024218"], ["updated_at", "2018-06-11 20:27:00.024218"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 20:27:00.030970"], ["updated_at", "2018-06-11 20:27:00.030970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.035677"], ["updated_at", "2018-06-11 20:27:00.035677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.036509"], ["updated_at", "2018-06-11 20:27:00.036509"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.042783"], ["updated_at", "2018-06-11 20:27:00.042783"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 20:27:00.049066"], ["updated_at", "2018-06-11 20:27:00.049066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 20:27:00.050107"], ["updated_at", "2018-06-11 20:27:00.050107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 20:27:00.052185"], ["updated_at", "2018-06-11 20:27:00.052185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 20:27:00.053340"], ["updated_at", "2018-06-11 20:27:00.053340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.064195"], ["updated_at", "2018-06-11 20:27:00.064195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.065282"], ["updated_at", "2018-06-11 20:27:00.065282"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.068021"], ["updated_at", "2018-06-11 20:27:00.068021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.074796"], ["updated_at", "2018-06-11 20:27:00.074796"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-11 20:27:00.079841"], ["updated_at", "2018-06-11 20:27:00.079841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-11 20:27:00.082787"], ["updated_at", "2018-06-11 20:27:00.082787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.094341"], ["updated_at", "2018-06-11 20:27:00.094341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.102172"], ["updated_at", "2018-06-11 20:27:00.102172"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 20:27:00.113644"], ["updated_at", "2018-06-11 20:27:00.113644"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 20:27:00.114851"], ["updated_at", "2018-06-11 20:27:00.114851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 20:27:00.116935"], ["updated_at", "2018-06-11 20:27:00.116935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 20:27:00.118103"], ["updated_at", "2018-06-11 20:27:00.118103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-11 20:27:00.123453"], ["updated_at", "2018-06-11 20:27:00.123453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-11 20:27:00.124861"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 20:27:00.126298"], ["updated_at", "2018-06-11 20:27:00.126298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-11 20:27:00.127288"], ["updated_at", "2018-06-11 20:27:00.127288"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.131531"], ["updated_at", "2018-06-11 20:27:00.131531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.132351"], ["updated_at", "2018-06-11 20:27:00.132351"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.135003"], ["updated_at", "2018-06-11 20:27:00.135003"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.139792"], ["updated_at", "2018-06-11 20:27:00.139792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.141012"], ["updated_at", "2018-06-11 20:27:00.141012"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.160539"], ["updated_at", "2018-06-11 20:27:00.160539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.163131"], ["updated_at", "2018-06-11 20:27:00.163131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.166706"], ["updated_at", "2018-06-11 20:27:00.166706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.167495"], ["updated_at", "2018-06-11 20:27:00.167495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.177028"], ["updated_at", "2018-06-11 20:27:00.177028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.177904"], ["updated_at", "2018-06-11 20:27:00.177904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.180105"], ["updated_at", "2018-06-11 20:27:00.180105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.183846"], ["updated_at", "2018-06-11 20:27:00.183846"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.189508"], ["updated_at", "2018-06-11 20:27:00.189508"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.192881"], ["updated_at", "2018-06-11 20:27:00.192881"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.196499"], ["updated_at", "2018-06-11 20:27:00.196499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.201440"], ["updated_at", "2018-06-11 20:27:00.201440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.202371"], ["updated_at", "2018-06-11 20:27:00.202371"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.204664"], ["updated_at", "2018-06-11 20:27:00.204664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-11 20:27:00.205708"], ["updated_at", "2018-06-11 20:27:00.205708"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.209157"], ["updated_at", "2018-06-11 20:27:00.209157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.210249"], ["updated_at", "2018-06-11 20:27:00.210249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.220228"], ["updated_at", "2018-06-11 20:27:00.220228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.221125"], ["updated_at", "2018-06-11 20:27:00.221125"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:27:00.222036"], ["updated_at", "2018-06-11 20:27:00.222036"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models" -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.320360"], ["updated_at", "2018-06-11 20:33:33.320360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 20:33:33.370568"], ["updated_at", "2018-06-11 20:33:33.370568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.376512"], ["updated_at", "2018-06-11 20:33:33.376512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.377833"], ["updated_at", "2018-06-11 20:33:33.377833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.378763"], ["updated_at", "2018-06-11 20:33:33.378763"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.382406"], ["updated_at", "2018-06-11 20:33:33.382406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.387623"], ["updated_at", "2018-06-11 20:33:33.387623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.395088"], ["updated_at", "2018-06-11 20:33:33.395088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.398892"], ["updated_at", "2018-06-11 20:33:33.398892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 20:33:33.402330"], ["updated_at", "2018-06-11 20:33:33.402330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 20:33:33.403147"], ["updated_at", "2018-06-11 20:33:33.403147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 20:33:33.405186"], ["updated_at", "2018-06-11 20:33:33.405186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 20:33:33.406289"], ["updated_at", "2018-06-11 20:33:33.406289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-11 20:33:33.417104"], ["updated_at", "2018-06-11 20:33:33.417104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-11 20:33:33.419749"], ["updated_at", "2018-06-11 20:33:33.419749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.433030"], ["updated_at", "2018-06-11 20:33:33.433030"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.435041"], ["updated_at", "2018-06-11 20:33:33.435041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.435866"], ["updated_at", "2018-06-11 20:33:33.435866"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.437936"], ["updated_at", "2018-06-11 20:33:33.437936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.440758"], ["updated_at", "2018-06-11 20:33:33.440758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.443567"], ["updated_at", "2018-06-11 20:33:33.443567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.448306"], ["updated_at", "2018-06-11 20:33:33.448306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.449309"], ["updated_at", "2018-06-11 20:33:33.449309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-11 20:33:33.461092"], ["updated_at", "2018-06-11 20:33:33.461092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-11 20:33:33.464158"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 20:33:33.465842"], ["updated_at", "2018-06-11 20:33:33.465842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-11 20:33:33.466720"], ["updated_at", "2018-06-11 20:33:33.466720"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.470800"], ["updated_at", "2018-06-11 20:33:33.470800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.471664"], ["updated_at", "2018-06-11 20:33:33.471664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.473926"], ["updated_at", "2018-06-11 20:33:33.473926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 20:33:33.477991"], ["updated_at", "2018-06-11 20:33:33.477991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 20:33:33.479241"], ["updated_at", "2018-06-11 20:33:33.479241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 20:33:33.481417"], ["updated_at", "2018-06-11 20:33:33.481417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 20:33:33.482458"], ["updated_at", "2018-06-11 20:33:33.482458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.487150"], ["updated_at", "2018-06-11 20:33:33.487150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.496001"], ["updated_at", "2018-06-11 20:33:33.496001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.511036"], ["updated_at", "2018-06-11 20:33:33.511036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.511939"], ["updated_at", "2018-06-11 20:33:33.511939"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.514124"], ["updated_at", "2018-06-11 20:33:33.514124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.520205"], ["updated_at", "2018-06-11 20:33:33.520205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.521070"], ["updated_at", "2018-06-11 20:33:33.521070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.523410"], ["updated_at", "2018-06-11 20:33:33.523410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.530874"], ["updated_at", "2018-06-11 20:33:33.530874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.531838"], ["updated_at", "2018-06-11 20:33:33.531838"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.534053"], ["updated_at", "2018-06-11 20:33:33.534053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.534914"], ["updated_at", "2018-06-11 20:33:33.534914"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.544713"], ["updated_at", "2018-06-11 20:33:33.544713"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.545895"], ["updated_at", "2018-06-11 20:33:33.545895"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.548779"], ["updated_at", "2018-06-11 20:33:33.548779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.549551"], ["updated_at", "2018-06-11 20:33:33.549551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.554667"], ["updated_at", "2018-06-11 20:33:33.554667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.555469"], ["updated_at", "2018-06-11 20:33:33.555469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 20:33:33.565203"], ["updated_at", "2018-06-11 20:33:33.565203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 20:33:33.566099"], ["updated_at", "2018-06-11 20:33:33.566099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.566946"], ["updated_at", "2018-06-11 20:33:33.566946"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.568755"], ["updated_at", "2018-06-11 20:33:33.568755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.570813"], ["updated_at", "2018-06-11 20:33:33.570813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.589674"], ["updated_at", "2018-06-11 20:33:33.589674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.594136"], ["updated_at", "2018-06-11 20:33:33.594136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.602718"], ["updated_at", "2018-06-11 20:33:33.602718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-11 20:33:33.608742"], ["updated_at", "2018-06-11 20:33:33.608742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.610944"], ["updated_at", "2018-06-11 20:33:33.610944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.615190"], ["updated_at", "2018-06-11 20:33:33.615190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.616006"], ["updated_at", "2018-06-11 20:33:33.616006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.626205"], ["updated_at", "2018-06-11 20:33:33.626205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-11 20:33:33.627412"], ["updated_at", "2018-06-11 20:33:33.627412"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.631106"], ["updated_at", "2018-06-11 20:33:33.631106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.632043"], ["updated_at", "2018-06-11 20:33:33.632043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.632760"], ["updated_at", "2018-06-11 20:33:33.632760"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.634949"], ["updated_at", "2018-06-11 20:33:33.634949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.635676"], ["updated_at", "2018-06-11 20:33:33.635676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.654441"], ["updated_at", "2018-06-11 20:33:33.654441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.655508"], ["updated_at", "2018-06-11 20:33:33.655508"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-11 20:33:33.660125"], ["updated_at", "2018-06-11 20:33:33.660125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.670577"], ["updated_at", "2018-06-11 20:33:33.670577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.671344"], ["updated_at", "2018-06-11 20:33:33.671344"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.673501"], ["updated_at", "2018-06-11 20:33:33.673501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.680137"], ["updated_at", "2018-06-11 20:33:33.680137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.683004"], ["updated_at", "2018-06-11 20:33:33.683004"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-11 20:33:33.764409"], ["updated_at", "2018-06-11 20:33:33.764409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-11 20:33:33.765484"], ["updated_at", "2018-06-11 20:33:33.765484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.781878"], ["updated_at", "2018-06-11 20:33:33.781878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.798685"], ["updated_at", "2018-06-11 20:33:33.798685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.804150"], ["updated_at", "2018-06-11 20:33:33.804150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 20:33:33.806929"], ["updated_at", "2018-06-11 20:33:33.806929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-11 20:33:33.839002"], ["updated_at", "2018-06-11 20:33:33.839002"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (5.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 4.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-11 21:29:39.996927"], ["updated_at", "2018-06-11 21:29:39.996927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-11 21:29:39.998205"], ["updated_at", "2018-06-11 21:29:39.998205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.031322"], ["updated_at", "2018-06-11 21:29:40.031322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.041877"], ["updated_at", "2018-06-11 21:29:40.041877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.045544"], ["updated_at", "2018-06-11 21:29:40.045544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.053755"], ["updated_at", "2018-06-11 21:29:40.053755"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-11 21:29:40.088560"], ["updated_at", "2018-06-11 21:29:40.088560"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-11 21:29:40.177558"], ["updated_at", "2018-06-11 21:29:40.177558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.199225"], ["updated_at", "2018-06-11 21:29:40.199225"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.201235"], ["updated_at", "2018-06-11 21:29:40.201235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.202015"], ["updated_at", "2018-06-11 21:29:40.202015"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.204910"], ["updated_at", "2018-06-11 21:29:40.204910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.212395"], ["updated_at", "2018-06-11 21:29:40.212395"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.213602"], ["updated_at", "2018-06-11 21:29:40.213602"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-11 21:29:40.221453"], ["updated_at", "2018-06-11 21:29:40.221453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-11 21:29:40.224346"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:29:40.225961"], ["updated_at", "2018-06-11 21:29:40.225961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-11 21:29:40.226865"], ["updated_at", "2018-06-11 21:29:40.226865"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.230889"], ["updated_at", "2018-06-11 21:29:40.230889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.231886"], ["updated_at", "2018-06-11 21:29:40.231886"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.244492"], ["updated_at", "2018-06-11 21:29:40.244492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.264549"], ["updated_at", "2018-06-11 21:29:40.264549"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.266955"], ["updated_at", "2018-06-11 21:29:40.266955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.270540"], ["updated_at", "2018-06-11 21:29:40.270540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-11 21:29:40.276718"], ["updated_at", "2018-06-11 21:29:40.276718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-11 21:29:40.279086"], ["updated_at", "2018-06-11 21:29:40.279086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.289950"], ["updated_at", "2018-06-11 21:29:40.289950"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:29:40.296471"], ["updated_at", "2018-06-11 21:29:40.296471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:29:40.297826"], ["updated_at", "2018-06-11 21:29:40.297826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.298759"], ["updated_at", "2018-06-11 21:29:40.298759"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.300668"], ["updated_at", "2018-06-11 21:29:40.300668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.301433"], ["updated_at", "2018-06-11 21:29:40.301433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.312798"], ["updated_at", "2018-06-11 21:29:40.312798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.315391"], ["updated_at", "2018-06-11 21:29:40.315391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.317442"], ["updated_at", "2018-06-11 21:29:40.317442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.321090"], ["updated_at", "2018-06-11 21:29:40.321090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.322186"], ["updated_at", "2018-06-11 21:29:40.322186"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.325121"], ["updated_at", "2018-06-11 21:29:40.325121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.329143"], ["updated_at", "2018-06-11 21:29:40.329143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.333860"], ["updated_at", "2018-06-11 21:29:40.333860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:29:40.338664"], ["updated_at", "2018-06-11 21:29:40.338664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:29:40.340026"], ["updated_at", "2018-06-11 21:29:40.340026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:29:40.342100"], ["updated_at", "2018-06-11 21:29:40.342100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:29:40.342969"], ["updated_at", "2018-06-11 21:29:40.342969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.350848"], ["updated_at", "2018-06-11 21:29:40.350848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.351690"], ["updated_at", "2018-06-11 21:29:40.351690"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.354610"], ["updated_at", "2018-06-11 21:29:40.354610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.355594"], ["updated_at", "2018-06-11 21:29:40.355594"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.358461"], ["updated_at", "2018-06-11 21:29:40.358461"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.362208"], ["updated_at", "2018-06-11 21:29:40.362208"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.363356"], ["updated_at", "2018-06-11 21:29:40.363356"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.365962"], ["updated_at", "2018-06-11 21:29:40.365962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-11 21:29:40.366809"], ["updated_at", "2018-06-11 21:29:40.366809"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.373843"], ["updated_at", "2018-06-11 21:29:40.373843"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.380953"], ["updated_at", "2018-06-11 21:29:40.380953"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.382085"], ["updated_at", "2018-06-11 21:29:40.382085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.387650"], ["updated_at", "2018-06-11 21:29:40.387650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.388651"], ["updated_at", "2018-06-11 21:29:40.388651"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.391035"], ["updated_at", "2018-06-11 21:29:40.391035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.392133"], ["updated_at", "2018-06-11 21:29:40.392133"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.403164"], ["updated_at", "2018-06-11 21:29:40.403164"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.406723"], ["updated_at", "2018-06-11 21:29:40.406723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.410967"], ["updated_at", "2018-06-11 21:29:40.410967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.411891"], ["updated_at", "2018-06-11 21:29:40.411891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.412737"], ["updated_at", "2018-06-11 21:29:40.412737"]]  (0.0ms) commit transaction TestModel Load (3.5ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:29:40.424139"], ["updated_at", "2018-06-11 21:29:40.424139"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.429006"], ["updated_at", "2018-06-11 21:29:40.429006"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.430036"], ["updated_at", "2018-06-11 21:29:40.430036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.437310"], ["updated_at", "2018-06-11 21:29:40.437310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.438483"], ["updated_at", "2018-06-11 21:29:40.438483"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.441794"], ["updated_at", "2018-06-11 21:29:40.441794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.448496"], ["updated_at", "2018-06-11 21:29:40.448496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.455322"], ["updated_at", "2018-06-11 21:29:40.455322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-11 21:29:40.460856"], ["updated_at", "2018-06-11 21:29:40.460856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.463784"], ["updated_at", "2018-06-11 21:29:40.463784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.468524"], ["updated_at", "2018-06-11 21:29:40.468524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.469328"], ["updated_at", "2018-06-11 21:29:40.469328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.470097"], ["updated_at", "2018-06-11 21:29:40.470097"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.473219"], ["updated_at", "2018-06-11 21:29:40.473219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.474204"], ["updated_at", "2018-06-11 21:29:40.474204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.482417"], ["updated_at", "2018-06-11 21:29:40.482417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:29:40.485059"], ["updated_at", "2018-06-11 21:29:40.485059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:29:40.489252"], ["updated_at", "2018-06-11 21:29:40.489252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:29:40.490574"], ["updated_at", "2018-06-11 21:29:40.490574"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:29:40.492811"], ["updated_at", "2018-06-11 21:29:40.492811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:29:40.493758"], ["updated_at", "2018-06-11 21:29:40.493758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms  (2.1ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 9ms (Views: 0.3ms | ActiveRecord: 0.1ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.480135"], ["updated_at", "2018-06-11 21:31:30.480135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.505768"], ["updated_at", "2018-06-11 21:31:30.505768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.507127"], ["updated_at", "2018-06-11 21:31:30.507127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.509896"], ["updated_at", "2018-06-11 21:31:30.509896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.514065"], ["updated_at", "2018-06-11 21:31:30.514065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.515022"], ["updated_at", "2018-06-11 21:31:30.515022"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:31:30.524033"], ["updated_at", "2018-06-11 21:31:30.524033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.529521"], ["updated_at", "2018-06-11 21:31:30.529521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.530575"], ["updated_at", "2018-06-11 21:31:30.530575"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.531529"], ["updated_at", "2018-06-11 21:31:30.531529"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.534489"], ["updated_at", "2018-06-11 21:31:30.534489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.535356"], ["updated_at", "2018-06-11 21:31:30.535356"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.539612"], ["updated_at", "2018-06-11 21:31:30.539612"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.540753"], ["updated_at", "2018-06-11 21:31:30.540753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.552370"], ["updated_at", "2018-06-11 21:31:30.552370"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.553967"], ["updated_at", "2018-06-11 21:31:30.553967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.555734"], ["updated_at", "2018-06-11 21:31:30.555734"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.559140"], ["updated_at", "2018-06-11 21:31:30.559140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.560150"], ["updated_at", "2018-06-11 21:31:30.560150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.566999"], ["updated_at", "2018-06-11 21:31:30.566999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.573401"], ["updated_at", "2018-06-11 21:31:30.573401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.574756"], ["updated_at", "2018-06-11 21:31:30.574756"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.579093"], ["updated_at", "2018-06-11 21:31:30.579093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.585444"], ["updated_at", "2018-06-11 21:31:30.585444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.586554"], ["updated_at", "2018-06-11 21:31:30.586554"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:31:30.626380"], ["updated_at", "2018-06-11 21:31:30.626380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:31:30.627488"], ["updated_at", "2018-06-11 21:31:30.627488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:31:30.629604"], ["updated_at", "2018-06-11 21:31:30.629604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:31:30.630527"], ["updated_at", "2018-06-11 21:31:30.630527"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.642423"], ["updated_at", "2018-06-11 21:31:30.642423"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-11 21:31:30.650524"], ["updated_at", "2018-06-11 21:31:30.650524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.655772"], ["updated_at", "2018-06-11 21:31:30.655772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.668510"], ["updated_at", "2018-06-11 21:31:30.668510"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.670768"], ["updated_at", "2018-06-11 21:31:30.670768"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.676857"], ["updated_at", "2018-06-11 21:31:30.676857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-11 21:31:30.678510"], ["updated_at", "2018-06-11 21:31:30.678510"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-11 21:31:30.690868"], ["updated_at", "2018-06-11 21:31:30.690868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-11 21:31:30.694124"], ["updated_at", "2018-06-11 21:31:30.694124"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.707619"], ["updated_at", "2018-06-11 21:31:30.707619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.708685"], ["updated_at", "2018-06-11 21:31:30.708685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.711443"], ["updated_at", "2018-06-11 21:31:30.711443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.715459"], ["updated_at", "2018-06-11 21:31:30.715459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-11 21:31:30.724773"], ["updated_at", "2018-06-11 21:31:30.724773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.738227"], ["updated_at", "2018-06-11 21:31:30.738227"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.746138"], ["updated_at", "2018-06-11 21:31:30.746138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.746976"], ["updated_at", "2018-06-11 21:31:30.746976"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.749188"], ["updated_at", "2018-06-11 21:31:30.749188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.756403"], ["updated_at", "2018-06-11 21:31:30.756403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.764017"], ["updated_at", "2018-06-11 21:31:30.764017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.772178"], ["updated_at", "2018-06-11 21:31:30.772178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.774951"], ["updated_at", "2018-06-11 21:31:30.774951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.779498"], ["updated_at", "2018-06-11 21:31:30.779498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.780588"], ["updated_at", "2018-06-11 21:31:30.780588"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.784130"], ["updated_at", "2018-06-11 21:31:30.784130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.790279"], ["updated_at", "2018-06-11 21:31:30.790279"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.791581"], ["updated_at", "2018-06-11 21:31:30.791581"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:31:30.794113"], ["updated_at", "2018-06-11 21:31:30.794113"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:31:30.795431"], ["updated_at", "2018-06-11 21:31:30.795431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:31:30.797795"], ["updated_at", "2018-06-11 21:31:30.797795"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:31:30.799143"], ["updated_at", "2018-06-11 21:31:30.799143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:31:30.803897"], ["updated_at", "2018-06-11 21:31:30.803897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:31:30.805749"], ["updated_at", "2018-06-11 21:31:30.805749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.806943"], ["updated_at", "2018-06-11 21:31:30.806943"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.809342"], ["updated_at", "2018-06-11 21:31:30.809342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.812778"], ["updated_at", "2018-06-11 21:31:30.812778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.815652"], ["updated_at", "2018-06-11 21:31:30.815652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.823632"], ["updated_at", "2018-06-11 21:31:30.823632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.826534"], ["updated_at", "2018-06-11 21:31:30.826534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.830975"], ["updated_at", "2018-06-11 21:31:30.830975"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.832445"], ["updated_at", "2018-06-11 21:31:30.832445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.840328"], ["updated_at", "2018-06-11 21:31:30.840328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.842987"], ["updated_at", "2018-06-11 21:31:30.842987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-11 21:31:30.847979"], ["updated_at", "2018-06-11 21:31:30.847979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-11 21:31:30.849414"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:31:30.851152"], ["updated_at", "2018-06-11 21:31:30.851152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-11 21:31:30.852233"], ["updated_at", "2018-06-11 21:31:30.852233"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.858185"], ["updated_at", "2018-06-11 21:31:30.858185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.859116"], ["updated_at", "2018-06-11 21:31:30.859116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:30.867276"], ["updated_at", "2018-06-11 21:31:30.867276"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-11 21:31:31.018569"], ["updated_at", "2018-06-11 21:31:31.018569"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-11 21:31:31.020416"], ["updated_at", "2018-06-11 21:31:31.020416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-11 21:31:31.047853"], ["updated_at", "2018-06-11 21:31:31.047853"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:31.094259"], ["updated_at", "2018-06-11 21:31:31.094259"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:31.099864"], ["updated_at", "2018-06-11 21:31:31.099864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:31.106608"], ["updated_at", "2018-06-11 21:31:31.106608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:31:31.110814"], ["updated_at", "2018-06-11 21:31:31.110814"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms  (2.0ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.704100"], ["updated_at", "2018-06-11 21:36:43.704100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.714776"], ["updated_at", "2018-06-11 21:36:43.714776"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.719097"], ["updated_at", "2018-06-11 21:36:43.719097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.731581"], ["updated_at", "2018-06-11 21:36:43.731581"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-11 21:36:43.742501"], ["updated_at", "2018-06-11 21:36:43.742501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-11 21:36:43.743943"], ["updated_at", "2018-06-11 21:36:43.743943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-11 21:36:43.794447"], ["updated_at", "2018-06-11 21:36:43.794447"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.832364"], ["updated_at", "2018-06-11 21:36:43.832364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.833670"], ["updated_at", "2018-06-11 21:36:43.833670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-11 21:36:43.857071"], ["updated_at", "2018-06-11 21:36:43.857071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.870965"], ["updated_at", "2018-06-11 21:36:43.870965"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.872226"], ["updated_at", "2018-06-11 21:36:43.872226"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:36:43.876169"], ["updated_at", "2018-06-11 21:36:43.876169"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:36:43.877294"], ["updated_at", "2018-06-11 21:36:43.877294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:36:43.879685"], ["updated_at", "2018-06-11 21:36:43.879685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:36:43.880742"], ["updated_at", "2018-06-11 21:36:43.880742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.890646"], ["updated_at", "2018-06-11 21:36:43.890646"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.892256"], ["updated_at", "2018-06-11 21:36:43.892256"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-11 21:36:43.898886"], ["updated_at", "2018-06-11 21:36:43.898886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-11 21:36:43.902147"], ["updated_at", "2018-06-11 21:36:43.902147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.914202"], ["updated_at", "2018-06-11 21:36:43.914202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.917401"], ["updated_at", "2018-06-11 21:36:43.917401"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:36:43.926372"], ["updated_at", "2018-06-11 21:36:43.926372"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.933557"], ["updated_at", "2018-06-11 21:36:43.933557"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.937871"], ["updated_at", "2018-06-11 21:36:43.937871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-11 21:36:43.938982"], ["updated_at", "2018-06-11 21:36:43.938982"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.942054"], ["updated_at", "2018-06-11 21:36:43.942054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.948399"], ["updated_at", "2018-06-11 21:36:43.948399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.949455"], ["updated_at", "2018-06-11 21:36:43.949455"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.952025"], ["updated_at", "2018-06-11 21:36:43.952025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.952808"], ["updated_at", "2018-06-11 21:36:43.952808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.961307"], ["updated_at", "2018-06-11 21:36:43.961307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.962182"], ["updated_at", "2018-06-11 21:36:43.962182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.972533"], ["updated_at", "2018-06-11 21:36:43.972533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.974014"], ["updated_at", "2018-06-11 21:36:43.974014"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.976657"], ["updated_at", "2018-06-11 21:36:43.976657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.977747"], ["updated_at", "2018-06-11 21:36:43.977747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.978562"], ["updated_at", "2018-06-11 21:36:43.978562"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.981177"], ["updated_at", "2018-06-11 21:36:43.981177"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.984116"], ["updated_at", "2018-06-11 21:36:43.984116"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.986398"], ["updated_at", "2018-06-11 21:36:43.986398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.990514"], ["updated_at", "2018-06-11 21:36:43.990514"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.991419"], ["updated_at", "2018-06-11 21:36:43.991419"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.993754"], ["updated_at", "2018-06-11 21:36:43.993754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.995895"], ["updated_at", "2018-06-11 21:36:43.995895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:43.999652"], ["updated_at", "2018-06-11 21:36:43.999652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.034897"], ["updated_at", "2018-06-11 21:36:44.034897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.036029"], ["updated_at", "2018-06-11 21:36:44.036029"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.039393"], ["updated_at", "2018-06-11 21:36:44.039393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.040436"], ["updated_at", "2018-06-11 21:36:44.040436"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.043817"], ["updated_at", "2018-06-11 21:36:44.043817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.051128"], ["updated_at", "2018-06-11 21:36:44.051128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.052161"], ["updated_at", "2018-06-11 21:36:44.052161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.052987"], ["updated_at", "2018-06-11 21:36:44.052987"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.056590"], ["updated_at", "2018-06-11 21:36:44.056590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-11 21:36:44.062258"], ["updated_at", "2018-06-11 21:36:44.062258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.065627"], ["updated_at", "2018-06-11 21:36:44.065627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:36:44.070617"], ["updated_at", "2018-06-11 21:36:44.070617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:36:44.071559"], ["updated_at", "2018-06-11 21:36:44.071559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.072663"], ["updated_at", "2018-06-11 21:36:44.072663"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.075254"], ["updated_at", "2018-06-11 21:36:44.075254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.080788"], ["updated_at", "2018-06-11 21:36:44.080788"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.081964"], ["updated_at", "2018-06-11 21:36:44.081964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:36:44.098833"], ["updated_at", "2018-06-11 21:36:44.098833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:36:44.099820"], ["updated_at", "2018-06-11 21:36:44.099820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:36:44.101642"], ["updated_at", "2018-06-11 21:36:44.101642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:36:44.102489"], ["updated_at", "2018-06-11 21:36:44.102489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.111386"], ["updated_at", "2018-06-11 21:36:44.111386"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.117792"], ["updated_at", "2018-06-11 21:36:44.117792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.126442"], ["updated_at", "2018-06-11 21:36:44.126442"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-11 21:36:44.129787"], ["updated_at", "2018-06-11 21:36:44.129787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-11 21:36:44.131231"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:36:44.132348"], ["updated_at", "2018-06-11 21:36:44.132348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-11 21:36:44.133465"], ["updated_at", "2018-06-11 21:36:44.133465"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.138096"], ["updated_at", "2018-06-11 21:36:44.138096"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.145971"], ["updated_at", "2018-06-11 21:36:44.145971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.146973"], ["updated_at", "2018-06-11 21:36:44.146973"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.150376"], ["updated_at", "2018-06-11 21:36:44.150376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.155290"], ["updated_at", "2018-06-11 21:36:44.155290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.156781"], ["updated_at", "2018-06-11 21:36:44.156781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.163086"], ["updated_at", "2018-06-11 21:36:44.163086"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.165654"], ["updated_at", "2018-06-11 21:36:44.165654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.170859"], ["updated_at", "2018-06-11 21:36:44.170859"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.179000"], ["updated_at", "2018-06-11 21:36:44.179000"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.180009"], ["updated_at", "2018-06-11 21:36:44.180009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:36:44.182406"], ["updated_at", "2018-06-11 21:36:44.182406"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.3ms | ActiveRecord: 0.1ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.4ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.3ms | ActiveRecord: 0.1ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-11 21:37:10.119397"], ["updated_at", "2018-06-11 21:37:10.119397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-11 21:37:10.120945"], ["updated_at", "2018-06-11 21:37:10.120945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.187318"], ["updated_at", "2018-06-11 21:37:10.187318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.194912"], ["updated_at", "2018-06-11 21:37:10.194912"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.198690"], ["updated_at", "2018-06-11 21:37:10.198690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.219742"], ["updated_at", "2018-06-11 21:37:10.219742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-11 21:37:10.225435"], ["updated_at", "2018-06-11 21:37:10.225435"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.268176"], ["updated_at", "2018-06-11 21:37:10.268176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.269403"], ["updated_at", "2018-06-11 21:37:10.269403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.270284"], ["updated_at", "2018-06-11 21:37:10.270284"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.273984"], ["updated_at", "2018-06-11 21:37:10.273984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.275241"], ["updated_at", "2018-06-11 21:37:10.275241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.277969"], ["updated_at", "2018-06-11 21:37:10.277969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.284762"], ["updated_at", "2018-06-11 21:37:10.284762"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.293951"], ["updated_at", "2018-06-11 21:37:10.293951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.294905"], ["updated_at", "2018-06-11 21:37:10.294905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.297651"], ["updated_at", "2018-06-11 21:37:10.297651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-11 21:37:10.301859"], ["updated_at", "2018-06-11 21:37:10.301859"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-11 21:37:10.304836"], ["updated_at", "2018-06-11 21:37:10.304836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.316036"], ["updated_at", "2018-06-11 21:37:10.316036"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-11 21:37:10.318643"], ["updated_at", "2018-06-11 21:37:10.318643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.321928"], ["updated_at", "2018-06-11 21:37:10.321928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.327663"], ["updated_at", "2018-06-11 21:37:10.327663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.332778"], ["updated_at", "2018-06-11 21:37:10.332778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.337809"], ["updated_at", "2018-06-11 21:37:10.337809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.339068"], ["updated_at", "2018-06-11 21:37:10.339068"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.341712"], ["updated_at", "2018-06-11 21:37:10.341712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.345219"], ["updated_at", "2018-06-11 21:37:10.345219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.349088"], ["updated_at", "2018-06-11 21:37:10.349088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.350012"], ["updated_at", "2018-06-11 21:37:10.350012"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.356314"], ["updated_at", "2018-06-11 21:37:10.356314"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-11 21:37:10.357596"], ["updated_at", "2018-06-11 21:37:10.357596"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.360890"], ["updated_at", "2018-06-11 21:37:10.360890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.367740"], ["updated_at", "2018-06-11 21:37:10.367740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.370765"], ["updated_at", "2018-06-11 21:37:10.370765"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.374430"], ["updated_at", "2018-06-11 21:37:10.374430"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:37:10.379784"], ["updated_at", "2018-06-11 21:37:10.379784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:37:10.380883"], ["updated_at", "2018-06-11 21:37:10.380883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.381906"], ["updated_at", "2018-06-11 21:37:10.381906"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:37:10.384938"], ["updated_at", "2018-06-11 21:37:10.384938"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:37:10.386703"], ["updated_at", "2018-06-11 21:37:10.386703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:37:10.389711"], ["updated_at", "2018-06-11 21:37:10.389711"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:37:10.390990"], ["updated_at", "2018-06-11 21:37:10.390990"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.401662"], ["updated_at", "2018-06-11 21:37:10.401662"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.403222"], ["updated_at", "2018-06-11 21:37:10.403222"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.419556"], ["updated_at", "2018-06-11 21:37:10.419556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.423155"], ["updated_at", "2018-06-11 21:37:10.423155"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.428890"], ["updated_at", "2018-06-11 21:37:10.428890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.436002"], ["updated_at", "2018-06-11 21:37:10.436002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.437245"], ["updated_at", "2018-06-11 21:37:10.437245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:37:10.451067"], ["updated_at", "2018-06-11 21:37:10.451067"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:37:10.452457"], ["updated_at", "2018-06-11 21:37:10.452457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:37:10.454613"], ["updated_at", "2018-06-11 21:37:10.454613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:37:10.455677"], ["updated_at", "2018-06-11 21:37:10.455677"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.460634"], ["updated_at", "2018-06-11 21:37:10.460634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.461726"], ["updated_at", "2018-06-11 21:37:10.461726"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.464802"], ["updated_at", "2018-06-11 21:37:10.464802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.476706"], ["updated_at", "2018-06-11 21:37:10.476706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.477875"], ["updated_at", "2018-06-11 21:37:10.477875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.494319"], ["updated_at", "2018-06-11 21:37:10.494319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.502654"], ["updated_at", "2018-06-11 21:37:10.502654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.514368"], ["updated_at", "2018-06-11 21:37:10.514368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.515301"], ["updated_at", "2018-06-11 21:37:10.515301"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-11 21:37:10.521777"], ["updated_at", "2018-06-11 21:37:10.521777"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-11 21:37:10.524740"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:37:10.526451"], ["updated_at", "2018-06-11 21:37:10.526451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-11 21:37:10.527643"], ["updated_at", "2018-06-11 21:37:10.527643"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.548541"], ["updated_at", "2018-06-11 21:37:10.548541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.549505"], ["updated_at", "2018-06-11 21:37:10.549505"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.552437"], ["updated_at", "2018-06-11 21:37:10.552437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.553459"], ["updated_at", "2018-06-11 21:37:10.553459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.559697"], ["updated_at", "2018-06-11 21:37:10.559697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.560777"], ["updated_at", "2018-06-11 21:37:10.560777"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.563772"], ["updated_at", "2018-06-11 21:37:10.563772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.564725"], ["updated_at", "2018-06-11 21:37:10.564725"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.567694"], ["updated_at", "2018-06-11 21:37:10.567694"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.568708"], ["updated_at", "2018-06-11 21:37:10.568708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:37:10.580538"], ["updated_at", "2018-06-11 21:37:10.580538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-11 21:37:10.588489"], ["updated_at", "2018-06-11 21:37:10.588489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.599368"], ["updated_at", "2018-06-11 21:37:10.599368"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.602480"], ["updated_at", "2018-06-11 21:37:10.602480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.607157"], ["updated_at", "2018-06-11 21:37:10.607157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.614035"], ["updated_at", "2018-06-11 21:37:10.614035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.619876"], ["updated_at", "2018-06-11 21:37:10.619876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.620824"], ["updated_at", "2018-06-11 21:37:10.620824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:10.621668"], ["updated_at", "2018-06-11 21:37:10.621668"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.612815"], ["updated_at", "2018-06-11 21:37:23.612815"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.647178"], ["updated_at", "2018-06-11 21:37:23.647178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.648610"], ["updated_at", "2018-06-11 21:37:23.648610"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.659969"], ["updated_at", "2018-06-11 21:37:23.659969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.677361"], ["updated_at", "2018-06-11 21:37:23.677361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:37:23.684993"], ["updated_at", "2018-06-11 21:37:23.684993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:37:23.685904"], ["updated_at", "2018-06-11 21:37:23.685904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.686711"], ["updated_at", "2018-06-11 21:37:23.686711"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.688690"], ["updated_at", "2018-06-11 21:37:23.688690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.691760"], ["updated_at", "2018-06-11 21:37:23.691760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.695359"], ["updated_at", "2018-06-11 21:37:23.695359"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-11 21:37:23.697691"], ["updated_at", "2018-06-11 21:37:23.697691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.700809"], ["updated_at", "2018-06-11 21:37:23.700809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.707317"], ["updated_at", "2018-06-11 21:37:23.707317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.712098"], ["updated_at", "2018-06-11 21:37:23.712098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.714240"], ["updated_at", "2018-06-11 21:37:23.714240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.727595"], ["updated_at", "2018-06-11 21:37:23.727595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.729257"], ["updated_at", "2018-06-11 21:37:23.729257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.742114"], ["updated_at", "2018-06-11 21:37:23.742114"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.744988"], ["updated_at", "2018-06-11 21:37:23.744988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.747913"], ["updated_at", "2018-06-11 21:37:23.747913"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.752583"], ["updated_at", "2018-06-11 21:37:23.752583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.753540"], ["updated_at", "2018-06-11 21:37:23.753540"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.756284"], ["updated_at", "2018-06-11 21:37:23.756284"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.757416"], ["updated_at", "2018-06-11 21:37:23.757416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.758231"], ["updated_at", "2018-06-11 21:37:23.758231"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-11 21:37:23.761297"], ["updated_at", "2018-06-11 21:37:23.761297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-11 21:37:23.763754"], ["updated_at", "2018-06-11 21:37:23.763754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.776144"], ["updated_at", "2018-06-11 21:37:23.776144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.777252"], ["updated_at", "2018-06-11 21:37:23.777252"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.780367"], ["updated_at", "2018-06-11 21:37:23.780367"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.788489"], ["updated_at", "2018-06-11 21:37:23.788489"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.797000"], ["updated_at", "2018-06-11 21:37:23.797000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.801338"], ["updated_at", "2018-06-11 21:37:23.801338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.805783"], ["updated_at", "2018-06-11 21:37:23.805783"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.807090"], ["updated_at", "2018-06-11 21:37:23.807090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.834577"], ["updated_at", "2018-06-11 21:37:23.834577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:37:23.839264"], ["updated_at", "2018-06-11 21:37:23.839264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:37:23.840287"], ["updated_at", "2018-06-11 21:37:23.840287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:37:23.842035"], ["updated_at", "2018-06-11 21:37:23.842035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:37:23.843122"], ["updated_at", "2018-06-11 21:37:23.843122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.852595"], ["updated_at", "2018-06-11 21:37:23.852595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.853849"], ["updated_at", "2018-06-11 21:37:23.853849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.856642"], ["updated_at", "2018-06-11 21:37:23.856642"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.862401"], ["updated_at", "2018-06-11 21:37:23.862401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.868574"], ["updated_at", "2018-06-11 21:37:23.868574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.869504"], ["updated_at", "2018-06-11 21:37:23.869504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.887255"], ["updated_at", "2018-06-11 21:37:23.887255"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.892999"], ["updated_at", "2018-06-11 21:37:23.892999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.894217"], ["updated_at", "2018-06-11 21:37:23.894217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.896094"], ["updated_at", "2018-06-11 21:37:23.896094"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.899529"], ["updated_at", "2018-06-11 21:37:23.899529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.900685"], ["updated_at", "2018-06-11 21:37:23.900685"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-11 21:37:23.906325"], ["updated_at", "2018-06-11 21:37:23.906325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-11 21:37:23.908543"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:37:23.910494"], ["updated_at", "2018-06-11 21:37:23.910494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-11 21:37:23.911622"], ["updated_at", "2018-06-11 21:37:23.911622"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.923726"], ["updated_at", "2018-06-11 21:37:23.923726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.924711"], ["updated_at", "2018-06-11 21:37:23.924711"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.930488"], ["updated_at", "2018-06-11 21:37:23.930488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-11 21:37:23.931303"], ["updated_at", "2018-06-11 21:37:23.931303"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:37:23.933678"], ["updated_at", "2018-06-11 21:37:23.933678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:37:23.934553"], ["updated_at", "2018-06-11 21:37:23.934553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:37:23.936294"], ["updated_at", "2018-06-11 21:37:23.936294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:37:23.937200"], ["updated_at", "2018-06-11 21:37:23.937200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.941449"], ["updated_at", "2018-06-11 21:37:23.941449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.942946"], ["updated_at", "2018-06-11 21:37:23.942946"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:37:23.950117"], ["updated_at", "2018-06-11 21:37:23.950117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.955128"], ["updated_at", "2018-06-11 21:37:23.955128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.955973"], ["updated_at", "2018-06-11 21:37:23.955973"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.958848"], ["updated_at", "2018-06-11 21:37:23.958848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.964047"], ["updated_at", "2018-06-11 21:37:23.964047"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.965139"], ["updated_at", "2018-06-11 21:37:23.965139"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.968474"], ["updated_at", "2018-06-11 21:37:23.968474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:23.969388"], ["updated_at", "2018-06-11 21:37:23.969388"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-11 21:37:23.973051"], ["updated_at", "2018-06-11 21:37:23.973051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:24.001449"], ["updated_at", "2018-06-11 21:37:24.001449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:24.007886"], ["updated_at", "2018-06-11 21:37:24.007886"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:24.008857"], ["updated_at", "2018-06-11 21:37:24.008857"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-11 21:37:24.060835"], ["updated_at", "2018-06-11 21:37:24.060835"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:24.104399"], ["updated_at", "2018-06-11 21:37:24.104399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-11 21:37:24.114350"], ["updated_at", "2018-06-11 21:37:24.114350"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-11 21:37:24.115674"], ["updated_at", "2018-06-11 21:37:24.115674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 9], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:24.141887"], ["updated_at", "2018-06-11 21:37:24.141887"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:24.149634"], ["updated_at", "2018-06-11 21:37:24.149634"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:24.153515"], ["updated_at", "2018-06-11 21:37:24.153515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-11 21:37:33.906666"], ["updated_at", "2018-06-11 21:37:33.906666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-11 21:37:33.908021"], ["updated_at", "2018-06-11 21:37:33.908021"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:33.954147"], ["updated_at", "2018-06-11 21:37:33.954147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:33.965228"], ["updated_at", "2018-06-11 21:37:33.965228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:33.969122"], ["updated_at", "2018-06-11 21:37:33.969122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.2ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.013981"], ["updated_at", "2018-06-11 21:37:34.013981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-11 21:37:34.028829"], ["updated_at", "2018-06-11 21:37:34.028829"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.4ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.159507"], ["updated_at", "2018-06-11 21:37:34.159507"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.163177"], ["updated_at", "2018-06-11 21:37:34.163177"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.174160"], ["updated_at", "2018-06-11 21:37:34.174160"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.179260"], ["updated_at", "2018-06-11 21:37:34.179260"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.188967"], ["updated_at", "2018-06-11 21:37:34.188967"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.196456"], ["updated_at", "2018-06-11 21:37:34.196456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:37:34.203732"], ["updated_at", "2018-06-11 21:37:34.203732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:37:34.205101"], ["updated_at", "2018-06-11 21:37:34.205101"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:37:34.208750"], ["updated_at", "2018-06-11 21:37:34.208750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:37:34.209887"], ["updated_at", "2018-06-11 21:37:34.209887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.215592"], ["updated_at", "2018-06-11 21:37:34.215592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.223189"], ["updated_at", "2018-06-11 21:37:34.223189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.224336"], ["updated_at", "2018-06-11 21:37:34.224336"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.227024"], ["updated_at", "2018-06-11 21:37:34.227024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.228060"], ["updated_at", "2018-06-11 21:37:34.228060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.229177"], ["updated_at", "2018-06-11 21:37:34.229177"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.232227"], ["updated_at", "2018-06-11 21:37:34.232227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.241063"], ["updated_at", "2018-06-11 21:37:34.241063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.241982"], ["updated_at", "2018-06-11 21:37:34.241982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.253736"], ["updated_at", "2018-06-11 21:37:34.253736"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.254987"], ["updated_at", "2018-06-11 21:37:34.254987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.257591"], ["updated_at", "2018-06-11 21:37:34.257591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.265234"], ["updated_at", "2018-06-11 21:37:34.265234"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.266211"], ["updated_at", "2018-06-11 21:37:34.266211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.272492"], ["updated_at", "2018-06-11 21:37:34.272492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.273391"], ["updated_at", "2018-06-11 21:37:34.273391"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.275873"], ["updated_at", "2018-06-11 21:37:34.275873"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.276856"], ["updated_at", "2018-06-11 21:37:34.276856"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:37:34.282799"], ["updated_at", "2018-06-11 21:37:34.282799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.287355"], ["updated_at", "2018-06-11 21:37:34.287355"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-11 21:37:34.288346"], ["updated_at", "2018-06-11 21:37:34.288346"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.291187"], ["updated_at", "2018-06-11 21:37:34.291187"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.298852"], ["updated_at", "2018-06-11 21:37:34.298852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.307004"], ["updated_at", "2018-06-11 21:37:34.307004"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.307965"], ["updated_at", "2018-06-11 21:37:34.307965"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.335302"], ["updated_at", "2018-06-11 21:37:34.335302"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.336437"], ["updated_at", "2018-06-11 21:37:34.336437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.345881"], ["updated_at", "2018-06-11 21:37:34.345881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.350815"], ["updated_at", "2018-06-11 21:37:34.350815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.351788"], ["updated_at", "2018-06-11 21:37:34.351788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.358080"], ["updated_at", "2018-06-11 21:37:34.358080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.358977"], ["updated_at", "2018-06-11 21:37:34.358977"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.362504"], ["updated_at", "2018-06-11 21:37:34.362504"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.363662"], ["updated_at", "2018-06-11 21:37:34.363662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.379857"], ["updated_at", "2018-06-11 21:37:34.379857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.381006"], ["updated_at", "2018-06-11 21:37:34.381006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.384406"], ["updated_at", "2018-06-11 21:37:34.384406"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.390231"], ["updated_at", "2018-06-11 21:37:34.390231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.392943"], ["updated_at", "2018-06-11 21:37:34.392943"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:37:34.397110"], ["updated_at", "2018-06-11 21:37:34.397110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:37:34.398184"], ["updated_at", "2018-06-11 21:37:34.398184"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:37:34.400193"], ["updated_at", "2018-06-11 21:37:34.400193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:37:34.401137"], ["updated_at", "2018-06-11 21:37:34.401137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.409790"], ["updated_at", "2018-06-11 21:37:34.409790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.412974"], ["updated_at", "2018-06-11 21:37:34.412974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.415253"], ["updated_at", "2018-06-11 21:37:34.415253"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.420351"], ["updated_at", "2018-06-11 21:37:34.420351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.421469"], ["updated_at", "2018-06-11 21:37:34.421469"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:37:34.423497"], ["updated_at", "2018-06-11 21:37:34.423497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:37:34.424321"], ["updated_at", "2018-06-11 21:37:34.424321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.425108"], ["updated_at", "2018-06-11 21:37:34.425108"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.427025"], ["updated_at", "2018-06-11 21:37:34.427025"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.433353"], ["updated_at", "2018-06-11 21:37:34.433353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.434338"], ["updated_at", "2018-06-11 21:37:34.434338"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.437130"], ["updated_at", "2018-06-11 21:37:34.437130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.439859"], ["updated_at", "2018-06-11 21:37:34.439859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.443186"], ["updated_at", "2018-06-11 21:37:34.443186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.444022"], ["updated_at", "2018-06-11 21:37:34.444022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.445030"], ["updated_at", "2018-06-11 21:37:34.445030"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-11 21:37:34.447700"], ["updated_at", "2018-06-11 21:37:34.447700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-11 21:37:34.450021"], ["updated_at", "2018-06-11 21:37:34.450021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.460816"], ["updated_at", "2018-06-11 21:37:34.460816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-11 21:37:34.470122"], ["updated_at", "2018-06-11 21:37:34.470122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-11 21:37:34.485207"], ["updated_at", "2018-06-11 21:37:34.485207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:37:34.488443"], ["updated_at", "2018-06-11 21:37:34.488443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-11 21:37:34.494960"], ["updated_at", "2018-06-11 21:37:34.494960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-11 21:37:34.496934"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:37:34.498655"], ["updated_at", "2018-06-11 21:37:34.498655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-11 21:37:34.499696"], ["updated_at", "2018-06-11 21:37:34.499696"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (7.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 19ms (Views: 0.4ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-11 21:38:18.659196"], ["updated_at", "2018-06-11 21:38:18.659196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-11 21:38:18.660332"], ["updated_at", "2018-06-11 21:38:18.660332"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.3ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:18.809057"], ["updated_at", "2018-06-11 21:38:18.809057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:18.825972"], ["updated_at", "2018-06-11 21:38:18.825972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:18.832347"], ["updated_at", "2018-06-11 21:38:18.832347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms)[0m SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.2ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:18.858201"], ["updated_at", "2018-06-11 21:38:18.858201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-11 21:38:18.900743"], ["updated_at", "2018-06-11 21:38:18.900743"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:18.996469"], ["updated_at", "2018-06-11 21:38:18.996469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.001303"], ["updated_at", "2018-06-11 21:38:19.001303"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.005151"], ["updated_at", "2018-06-11 21:38:19.005151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.014056"], ["updated_at", "2018-06-11 21:38:19.014056"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.015564"], ["updated_at", "2018-06-11 21:38:19.015564"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.033484"], ["updated_at", "2018-06-11 21:38:19.033484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.036825"], ["updated_at", "2018-06-11 21:38:19.036825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.041188"], ["updated_at", "2018-06-11 21:38:19.041188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-11 21:38:19.049389"], ["updated_at", "2018-06-11 21:38:19.049389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-11 21:38:19.052983"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:38:19.054233"], ["updated_at", "2018-06-11 21:38:19.054233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-11 21:38:19.055238"], ["updated_at", "2018-06-11 21:38:19.055238"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.059865"], ["updated_at", "2018-06-11 21:38:19.059865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.060845"], ["updated_at", "2018-06-11 21:38:19.060845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.069033"], ["updated_at", "2018-06-11 21:38:19.069033"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.070546"], ["updated_at", "2018-06-11 21:38:19.070546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-11 21:38:19.078598"], ["updated_at", "2018-06-11 21:38:19.078598"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.082306"], ["updated_at", "2018-06-11 21:38:19.082306"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.089383"], ["updated_at", "2018-06-11 21:38:19.089383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.090742"], ["updated_at", "2018-06-11 21:38:19.090742"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.093929"], ["updated_at", "2018-06-11 21:38:19.093929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.103980"], ["updated_at", "2018-06-11 21:38:19.103980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.105350"], ["updated_at", "2018-06-11 21:38:19.105350"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:38:19.109803"], ["updated_at", "2018-06-11 21:38:19.109803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:38:19.110962"], ["updated_at", "2018-06-11 21:38:19.110962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:38:19.113694"], ["updated_at", "2018-06-11 21:38:19.113694"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:38:19.115844"], ["updated_at", "2018-06-11 21:38:19.115844"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.128886"], ["updated_at", "2018-06-11 21:38:19.128886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.135329"], ["updated_at", "2018-06-11 21:38:19.135329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.142106"], ["updated_at", "2018-06-11 21:38:19.142106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.143146"], ["updated_at", "2018-06-11 21:38:19.143146"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.145615"], ["updated_at", "2018-06-11 21:38:19.145615"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.155241"], ["updated_at", "2018-06-11 21:38:19.155241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.156672"], ["updated_at", "2018-06-11 21:38:19.156672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.168925"], ["updated_at", "2018-06-11 21:38:19.168925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.171856"], ["updated_at", "2018-06-11 21:38:19.171856"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.175950"], ["updated_at", "2018-06-11 21:38:19.175950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.176944"], ["updated_at", "2018-06-11 21:38:19.176944"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.185196"], ["updated_at", "2018-06-11 21:38:19.185196"]]  (0.1ms) commit transaction  (4.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.191415"], ["updated_at", "2018-06-11 21:38:19.191415"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.204523"], ["updated_at", "2018-06-11 21:38:19.204523"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:38:19.211288"], ["updated_at", "2018-06-11 21:38:19.211288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:38:19.212250"], ["updated_at", "2018-06-11 21:38:19.212250"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:38:19.214273"], ["updated_at", "2018-06-11 21:38:19.214273"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:38:19.215888"], ["updated_at", "2018-06-11 21:38:19.215888"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.221130"], ["updated_at", "2018-06-11 21:38:19.221130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.222017"], ["updated_at", "2018-06-11 21:38:19.222017"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.225218"], ["updated_at", "2018-06-11 21:38:19.225218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.226106"], ["updated_at", "2018-06-11 21:38:19.226106"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.228143"], ["updated_at", "2018-06-11 21:38:19.228143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.228967"], ["updated_at", "2018-06-11 21:38:19.228967"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-11 21:38:19.246460"], ["updated_at", "2018-06-11 21:38:19.246460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.260886"], ["updated_at", "2018-06-11 21:38:19.260886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.262116"], ["updated_at", "2018-06-11 21:38:19.262116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.263065"], ["updated_at", "2018-06-11 21:38:19.263065"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.268260"], ["updated_at", "2018-06-11 21:38:19.268260"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.276174"], ["updated_at", "2018-06-11 21:38:19.276174"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.284213"], ["updated_at", "2018-06-11 21:38:19.284213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.285485"], ["updated_at", "2018-06-11 21:38:19.285485"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.287789"], ["updated_at", "2018-06-11 21:38:19.287789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.292330"], ["updated_at", "2018-06-11 21:38:19.292330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:38:19.318957"], ["updated_at", "2018-06-11 21:38:19.318957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:38:19.320103"], ["updated_at", "2018-06-11 21:38:19.320103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.321134"], ["updated_at", "2018-06-11 21:38:19.321134"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.323722"], ["updated_at", "2018-06-11 21:38:19.323722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-11 21:38:19.324821"], ["updated_at", "2018-06-11 21:38:19.324821"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:38:19.331406"], ["updated_at", "2018-06-11 21:38:19.331406"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.337160"], ["updated_at", "2018-06-11 21:38:19.337160"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.338249"], ["updated_at", "2018-06-11 21:38:19.338249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.339096"], ["updated_at", "2018-06-11 21:38:19.339096"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.342713"], ["updated_at", "2018-06-11 21:38:19.342713"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.343888"], ["updated_at", "2018-06-11 21:38:19.343888"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.347061"], ["updated_at", "2018-06-11 21:38:19.347061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.353159"], ["updated_at", "2018-06-11 21:38:19.353159"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.356372"], ["updated_at", "2018-06-11 21:38:19.356372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.360262"], ["updated_at", "2018-06-11 21:38:19.360262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-11 21:38:19.364818"], ["updated_at", "2018-06-11 21:38:19.364818"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-11 21:38:19.369413"], ["updated_at", "2018-06-11 21:38:19.369413"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:19.379917"], ["updated_at", "2018-06-11 21:38:19.379917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (1.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.6ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 12ms (Views: 0.4ms | ActiveRecord: 0.1ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-11 21:38:29.937267"], ["updated_at", "2018-06-11 21:38:29.937267"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-11 21:38:29.940055"], ["updated_at", "2018-06-11 21:38:29.940055"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:29.992690"], ["updated_at", "2018-06-11 21:38:29.992690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.004037"], ["updated_at", "2018-06-11 21:38:30.004037"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.009081"], ["updated_at", "2018-06-11 21:38:30.009081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-11 21:38:30.028402"], ["updated_at", "2018-06-11 21:38:30.028402"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.032135"], ["updated_at", "2018-06-11 21:38:30.032135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.3ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 55ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.276268"], ["updated_at", "2018-06-11 21:38:30.276268"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.280452"], ["updated_at", "2018-06-11 21:38:30.280452"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:38:30.291210"], ["updated_at", "2018-06-11 21:38:30.291210"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:38:30.292948"], ["updated_at", "2018-06-11 21:38:30.292948"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:38:30.296115"], ["updated_at", "2018-06-11 21:38:30.296115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:38:30.297402"], ["updated_at", "2018-06-11 21:38:30.297402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.303581"], ["updated_at", "2018-06-11 21:38:30.303581"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.310058"], ["updated_at", "2018-06-11 21:38:30.310058"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.323723"], ["updated_at", "2018-06-11 21:38:30.323723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-11 21:38:30.332087"], ["updated_at", "2018-06-11 21:38:30.332087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.335136"], ["updated_at", "2018-06-11 21:38:30.335136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:38:30.346557"], ["updated_at", "2018-06-11 21:38:30.346557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.351980"], ["updated_at", "2018-06-11 21:38:30.351980"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-11 21:38:30.362965"], ["updated_at", "2018-06-11 21:38:30.362965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.379437"], ["updated_at", "2018-06-11 21:38:30.379437"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.380997"], ["updated_at", "2018-06-11 21:38:30.380997"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.383562"], ["updated_at", "2018-06-11 21:38:30.383562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.384588"], ["updated_at", "2018-06-11 21:38:30.384588"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.399943"], ["updated_at", "2018-06-11 21:38:30.399943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.401026"], ["updated_at", "2018-06-11 21:38:30.401026"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.410376"], ["updated_at", "2018-06-11 21:38:30.410376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.411899"], ["updated_at", "2018-06-11 21:38:30.411899"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-11 21:38:30.416810"], ["updated_at", "2018-06-11 21:38:30.416810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-11 21:38:30.419292"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-11 21:38:30.421179"], ["updated_at", "2018-06-11 21:38:30.421179"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-11 21:38:30.422738"], ["updated_at", "2018-06-11 21:38:30.422738"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.429271"], ["updated_at", "2018-06-11 21:38:30.429271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.430306"], ["updated_at", "2018-06-11 21:38:30.430306"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.433075"], ["updated_at", "2018-06-11 21:38:30.433075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.434052"], ["updated_at", "2018-06-11 21:38:30.434052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.442730"], ["updated_at", "2018-06-11 21:38:30.442730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.445959"], ["updated_at", "2018-06-11 21:38:30.445959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.449726"], ["updated_at", "2018-06-11 21:38:30.449726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.450670"], ["updated_at", "2018-06-11 21:38:30.450670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.451558"], ["updated_at", "2018-06-11 21:38:30.451558"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.455186"], ["updated_at", "2018-06-11 21:38:30.455186"]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.457379"], ["updated_at", "2018-06-11 21:38:30.457379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.464116"], ["updated_at", "2018-06-11 21:38:30.464116"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.466359"], ["updated_at", "2018-06-11 21:38:30.466359"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.479893"], ["updated_at", "2018-06-11 21:38:30.479893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.481270"], ["updated_at", "2018-06-11 21:38:30.481270"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.486847"], ["updated_at", "2018-06-11 21:38:30.486847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.488036"], ["updated_at", "2018-06-11 21:38:30.488036"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:38:30.491533"], ["updated_at", "2018-06-11 21:38:30.491533"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-11 21:38:30.492719"], ["updated_at", "2018-06-11 21:38:30.492719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.493699"], ["updated_at", "2018-06-11 21:38:30.493699"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-11 21:38:30.513852"], ["updated_at", "2018-06-11 21:38:30.513852"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-11 21:38:30.516763"], ["updated_at", "2018-06-11 21:38:30.516763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.529401"], ["updated_at", "2018-06-11 21:38:30.529401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.530561"], ["updated_at", "2018-06-11 21:38:30.530561"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.531454"], ["updated_at", "2018-06-11 21:38:30.531454"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.534239"], ["updated_at", "2018-06-11 21:38:30.534239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.539388"], ["updated_at", "2018-06-11 21:38:30.539388"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.540742"], ["updated_at", "2018-06-11 21:38:30.540742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.544227"], ["updated_at", "2018-06-11 21:38:30.544227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.548829"], ["updated_at", "2018-06-11 21:38:30.548829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.549763"], ["updated_at", "2018-06-11 21:38:30.549763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.558412"], ["updated_at", "2018-06-11 21:38:30.558412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.561059"], ["updated_at", "2018-06-11 21:38:30.561059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-11 21:38:30.565255"], ["updated_at", "2018-06-11 21:38:30.565255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-11 21:38:30.566344"], ["updated_at", "2018-06-11 21:38:30.566344"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-11 21:38:30.568633"], ["updated_at", "2018-06-11 21:38:30.568633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-11 21:38:30.569650"], ["updated_at", "2018-06-11 21:38:30.569650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.579185"], ["updated_at", "2018-06-11 21:38:30.579185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.585327"], ["updated_at", "2018-06-11 21:38:30.585327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.586463"], ["updated_at", "2018-06-11 21:38:30.586463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.598367"], ["updated_at", "2018-06-11 21:38:30.598367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.599419"], ["updated_at", "2018-06-11 21:38:30.599419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.613581"], ["updated_at", "2018-06-11 21:38:30.613581"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.614671"], ["updated_at", "2018-06-11 21:38:30.614671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.617238"], ["updated_at", "2018-06-11 21:38:30.617238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.622367"], ["updated_at", "2018-06-11 21:38:30.622367"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.631068"], ["updated_at", "2018-06-11 21:38:30.631068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.633777"], ["updated_at", "2018-06-11 21:38:30.633777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.636657"], ["updated_at", "2018-06-11 21:38:30.636657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.641348"], ["updated_at", "2018-06-11 21:38:30.641348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-11 21:38:30.642683"], ["updated_at", "2018-06-11 21:38:30.642683"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.647299"], ["updated_at", "2018-06-11 21:38:30.647299"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-11 21:38:30.659585"], ["updated_at", "2018-06-11 21:38:30.659585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Completed 200 OK in 0ms ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 12ms (Views: 11.7ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToTestController#show as HTML Parameters: {"id"=>"#"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"no_filter_access_to"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 4ms (Views: 3.9ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"no_filter_access_to"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"no_filter_access_to"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.8ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"no_filter_access_to"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.9ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"no_filter_access_to"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"no_filter_access_to"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.9ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessToController#show as HTML Parameters: {"no_filter_access_object"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.4ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.4ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.9ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.1ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.9ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 4ms (Views: 3.9ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.1ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 3.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.6ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.5ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 6.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.8ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.8ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 11ms (Views: 10.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.9ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 4.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.6ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.9ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.9ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.7ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.8ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.5ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 24ms (Views: 23.9ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.7ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.5ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.6ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.5ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 6.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.6ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.7ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"2"} Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.4ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.8ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.8ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Completed 200 OK in 0ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.6ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.6ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.6ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.1ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"special_attribute"=>"wrong"} Completed 500 Internal Server Error in 1ms ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.8ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.6ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"secret"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 6ms ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"secret"} Completed 500 Internal Server Error in 6ms ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 3.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"secret"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"secret"} Completed 500 Internal Server Error in 2ms ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.1ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"secret"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms)  (2.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.5ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 10ms (Views: 0.3ms | ActiveRecord: 0.1ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.688652"], ["updated_at", "2018-06-13 21:47:57.688652"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.714219"], ["updated_at", "2018-06-13 21:47:57.714219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.726631"], ["updated_at", "2018-06-13 21:47:57.726631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.734068"], ["updated_at", "2018-06-13 21:47:57.734068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.735055"], ["updated_at", "2018-06-13 21:47:57.735055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.735987"], ["updated_at", "2018-06-13 21:47:57.735987"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.739052"], ["updated_at", "2018-06-13 21:47:57.739052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.745109"], ["updated_at", "2018-06-13 21:47:57.745109"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.774311"], ["updated_at", "2018-06-13 21:47:57.774311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.775381"], ["updated_at", "2018-06-13 21:47:57.775381"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.782927"], ["updated_at", "2018-06-13 21:47:57.782927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.784515"], ["updated_at", "2018-06-13 21:47:57.784515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.787394"], ["updated_at", "2018-06-13 21:47:57.787394"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:47:57.803040"], ["updated_at", "2018-06-13 21:47:57.803040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.2ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.808865"], ["updated_at", "2018-06-13 21:47:57.808865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.809939"], ["updated_at", "2018-06-13 21:47:57.809939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.830158"], ["updated_at", "2018-06-13 21:47:57.830158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.834381"], ["updated_at", "2018-06-13 21:47:57.834381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.836930"], ["updated_at", "2018-06-13 21:47:57.836930"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.851655"], ["updated_at", "2018-06-13 21:47:57.851655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.852694"], ["updated_at", "2018-06-13 21:47:57.852694"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.859211"], ["updated_at", "2018-06-13 21:47:57.859211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.860342"], ["updated_at", "2018-06-13 21:47:57.860342"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.862887"], ["updated_at", "2018-06-13 21:47:57.862887"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.863878"], ["updated_at", "2018-06-13 21:47:57.863878"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:47:57.867471"], ["updated_at", "2018-06-13 21:47:57.867471"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.870204"], ["updated_at", "2018-06-13 21:47:57.870204"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.875420"], ["updated_at", "2018-06-13 21:47:57.875420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:47:57.876465"], ["updated_at", "2018-06-13 21:47:57.876465"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.878963"], ["updated_at", "2018-06-13 21:47:57.878963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.879886"], ["updated_at", "2018-06-13 21:47:57.879886"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:47:57.891700"], ["updated_at", "2018-06-13 21:47:57.891700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:47:57.894397"], ["updated_at", "2018-06-13 21:47:57.894397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.905527"], ["updated_at", "2018-06-13 21:47:57.905527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.906535"], ["updated_at", "2018-06-13 21:47:57.906535"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.909616"], ["updated_at", "2018-06-13 21:47:57.909616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.910467"], ["updated_at", "2018-06-13 21:47:57.910467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.913356"], ["updated_at", "2018-06-13 21:47:57.913356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:47:57.917676"], ["updated_at", "2018-06-13 21:47:57.917676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:47:57.918793"], ["updated_at", "2018-06-13 21:47:57.918793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:47:57.921133"], ["updated_at", "2018-06-13 21:47:57.921133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:47:57.922077"], ["updated_at", "2018-06-13 21:47:57.922077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.930037"], ["updated_at", "2018-06-13 21:47:57.930037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.931072"], ["updated_at", "2018-06-13 21:47:57.931072"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.936734"], ["updated_at", "2018-06-13 21:47:57.936734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.940384"], ["updated_at", "2018-06-13 21:47:57.940384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.942773"], ["updated_at", "2018-06-13 21:47:57.942773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.947058"], ["updated_at", "2018-06-13 21:47:57.947058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.948436"], ["updated_at", "2018-06-13 21:47:57.948436"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:47:57.958458"], ["updated_at", "2018-06-13 21:47:57.958458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.971412"], ["updated_at", "2018-06-13 21:47:57.971412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.972595"], ["updated_at", "2018-06-13 21:47:57.972595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.982416"], ["updated_at", "2018-06-13 21:47:57.982416"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.989479"], ["updated_at", "2018-06-13 21:47:57.989479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:57.996659"], ["updated_at", "2018-06-13 21:47:57.996659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.005607"], ["updated_at", "2018-06-13 21:47:58.005607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.011461"], ["updated_at", "2018-06-13 21:47:58.011461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.012407"], ["updated_at", "2018-06-13 21:47:58.012407"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:47:58.015164"], ["updated_at", "2018-06-13 21:47:58.015164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:47:58.016138"], ["updated_at", "2018-06-13 21:47:58.016138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.017114"], ["updated_at", "2018-06-13 21:47:58.017114"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.019632"], ["updated_at", "2018-06-13 21:47:58.019632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.020564"], ["updated_at", "2018-06-13 21:47:58.020564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.021580"], ["updated_at", "2018-06-13 21:47:58.021580"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:47:58.025430"], ["updated_at", "2018-06-13 21:47:58.025430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:47:58.026536"], ["updated_at", "2018-06-13 21:47:58.026536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:47:58.029196"], ["updated_at", "2018-06-13 21:47:58.029196"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:47:58.030155"], ["updated_at", "2018-06-13 21:47:58.030155"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.034549"], ["updated_at", "2018-06-13 21:47:58.034549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.037850"], ["updated_at", "2018-06-13 21:47:58.037850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.041926"], ["updated_at", "2018-06-13 21:47:58.041926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.053251"], ["updated_at", "2018-06-13 21:47:58.053251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:47:58.059515"], ["updated_at", "2018-06-13 21:47:58.059515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 21:47:58.060788"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:47:58.062377"], ["updated_at", "2018-06-13 21:47:58.062377"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:47:58.063321"], ["updated_at", "2018-06-13 21:47:58.063321"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.067863"], ["updated_at", "2018-06-13 21:47:58.067863"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.069045"], ["updated_at", "2018-06-13 21:47:58.069045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.075487"], ["updated_at", "2018-06-13 21:47:58.075487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.112149"], ["updated_at", "2018-06-13 21:47:58.112149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.119235"], ["updated_at", "2018-06-13 21:47:58.119235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.122208"], ["updated_at", "2018-06-13 21:47:58.122208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:47:58.135133"], ["updated_at", "2018-06-13 21:47:58.135133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:47:58.142498"], ["updated_at", "2018-06-13 21:47:58.142498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:47:58.143657"], ["updated_at", "2018-06-13 21:47:58.143657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:47:58.204280"], ["updated_at", "2018-06-13 21:47:58.204280"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"secret"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wroing"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.309076"], ["updated_at", "2018-06-13 21:48:14.309076"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.329427"], ["updated_at", "2018-06-13 21:48:14.329427"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.335946"], ["updated_at", "2018-06-13 21:48:14.335946"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.2ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:48:14.415018"], ["updated_at", "2018-06-13 21:48:14.415018"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:48:14.417421"], ["updated_at", "2018-06-13 21:48:14.417421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.9ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.461601"], ["updated_at", "2018-06-13 21:48:14.461601"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:48:14.477326"], ["updated_at", "2018-06-13 21:48:14.477326"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 0.6ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.729081"], ["updated_at", "2018-06-13 21:48:14.729081"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.731952"], ["updated_at", "2018-06-13 21:48:14.731952"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:48:14.738255"], ["updated_at", "2018-06-13 21:48:14.738255"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:48:14.740647"], ["updated_at", "2018-06-13 21:48:14.740647"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.742418"], ["updated_at", "2018-06-13 21:48:14.742418"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:48:14.756770"], ["updated_at", "2018-06-13 21:48:14.756770"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.3ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.796977"], ["updated_at", "2018-06-13 21:48:14.796977"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.799253"], ["updated_at", "2018-06-13 21:48:14.799253"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:48:14.809086"], ["updated_at", "2018-06-13 21:48:14.809086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:48:14.813640"], ["updated_at", "2018-06-13 21:48:14.813640"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:48:14.833821"], ["updated_at", "2018-06-13 21:48:14.833821"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.839740"], ["updated_at", "2018-06-13 21:48:14.839740"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.847218"], ["updated_at", "2018-06-13 21:48:14.847218"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.849118"], ["updated_at", "2018-06-13 21:48:14.849118"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.853963"], ["updated_at", "2018-06-13 21:48:14.853963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.860311"], ["updated_at", "2018-06-13 21:48:14.860311"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.865401"], ["updated_at", "2018-06-13 21:48:14.865401"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.867654"], ["updated_at", "2018-06-13 21:48:14.867654"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.869384"], ["updated_at", "2018-06-13 21:48:14.869384"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.874879"], ["updated_at", "2018-06-13 21:48:14.874879"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.887443"], ["updated_at", "2018-06-13 21:48:14.887443"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.906578"], ["updated_at", "2018-06-13 21:48:14.906578"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.924882"], ["updated_at", "2018-06-13 21:48:14.924882"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.926608"], ["updated_at", "2018-06-13 21:48:14.926608"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.947293"], ["updated_at", "2018-06-13 21:48:14.947293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.948594"], ["updated_at", "2018-06-13 21:48:14.948594"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.952501"], ["updated_at", "2018-06-13 21:48:14.952501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:48:14.959849"], ["updated_at", "2018-06-13 21:48:14.959849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 21:48:14.961724"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:48:14.963647"], ["updated_at", "2018-06-13 21:48:14.963647"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:48:14.966049"], ["updated_at", "2018-06-13 21:48:14.966049"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.973151"], ["updated_at", "2018-06-13 21:48:14.973151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.974734"], ["updated_at", "2018-06-13 21:48:14.974734"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.984848"], ["updated_at", "2018-06-13 21:48:14.984848"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.989210"], ["updated_at", "2018-06-13 21:48:14.989210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.994572"], ["updated_at", "2018-06-13 21:48:14.994572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.995990"], ["updated_at", "2018-06-13 21:48:14.995990"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:14.998135"], ["updated_at", "2018-06-13 21:48:14.998135"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.004735"], ["updated_at", "2018-06-13 21:48:15.004735"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.010141"], ["updated_at", "2018-06-13 21:48:15.010141"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.018688"], ["updated_at", "2018-06-13 21:48:15.018688"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.020928"], ["updated_at", "2018-06-13 21:48:15.020928"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (1.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.044375"], ["updated_at", "2018-06-13 21:48:15.044375"]]  (0.1ms) commit transaction  (0.4ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.055867"], ["updated_at", "2018-06-13 21:48:15.055867"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.058793"], ["updated_at", "2018-06-13 21:48:15.058793"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.065699"], ["updated_at", "2018-06-13 21:48:15.065699"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.068327"], ["updated_at", "2018-06-13 21:48:15.068327"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.090051"], ["updated_at", "2018-06-13 21:48:15.090051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.102414"], ["updated_at", "2018-06-13 21:48:15.102414"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.114858"], ["updated_at", "2018-06-13 21:48:15.114858"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.123139"], ["updated_at", "2018-06-13 21:48:15.123139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.136151"], ["updated_at", "2018-06-13 21:48:15.136151"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.150038"], ["updated_at", "2018-06-13 21:48:15.150038"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:48:15.153235"], ["updated_at", "2018-06-13 21:48:15.153235"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.157777"], ["updated_at", "2018-06-13 21:48:15.157777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.159053"], ["updated_at", "2018-06-13 21:48:15.159053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:48:15.178034"], ["updated_at", "2018-06-13 21:48:15.178034"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:48:15.180491"], ["updated_at", "2018-06-13 21:48:15.180491"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:48:15.184636"], ["updated_at", "2018-06-13 21:48:15.184636"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:48:15.187079"], ["updated_at", "2018-06-13 21:48:15.187079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:48:15.207321"], ["updated_at", "2018-06-13 21:48:15.207321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.249389"], ["updated_at", "2018-06-13 21:48:15.249389"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.251691"], ["updated_at", "2018-06-13 21:48:15.251691"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.255346"], ["updated_at", "2018-06-13 21:48:15.255346"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.256943"], ["updated_at", "2018-06-13 21:48:15.256943"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.260930"], ["updated_at", "2018-06-13 21:48:15.260930"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.273442"], ["updated_at", "2018-06-13 21:48:15.273442"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.275233"], ["updated_at", "2018-06-13 21:48:15.275233"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.278829"], ["updated_at", "2018-06-13 21:48:15.278829"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.281615"], ["updated_at", "2018-06-13 21:48:15.281615"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.286503"], ["updated_at", "2018-06-13 21:48:15.286503"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.292452"], ["updated_at", "2018-06-13 21:48:15.292452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.297728"], ["updated_at", "2018-06-13 21:48:15.297728"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:48:15.304885"], ["updated_at", "2018-06-13 21:48:15.304885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:48:15.306165"], ["updated_at", "2018-06-13 21:48:15.306165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:48:15.309383"], ["updated_at", "2018-06-13 21:48:15.309383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:48:15.310729"], ["updated_at", "2018-06-13 21:48:15.310729"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.319033"], ["updated_at", "2018-06-13 21:48:15.319033"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:15.323338"], ["updated_at", "2018-06-13 21:48:15.323338"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.2ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.3ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.2ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:48:23.503084"], ["updated_at", "2018-06-13 21:48:23.503084"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.575533"], ["updated_at", "2018-06-13 21:48:23.575533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.592831"], ["updated_at", "2018-06-13 21:48:23.592831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.599016"], ["updated_at", "2018-06-13 21:48:23.599016"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:48:23.611887"], ["updated_at", "2018-06-13 21:48:23.611887"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:48:23.613577"], ["updated_at", "2018-06-13 21:48:23.613577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.661392"], ["updated_at", "2018-06-13 21:48:23.661392"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:48:23.692439"], ["updated_at", "2018-06-13 21:48:23.692439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.698030"], ["updated_at", "2018-06-13 21:48:23.698030"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.707472"], ["updated_at", "2018-06-13 21:48:23.707472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.708921"], ["updated_at", "2018-06-13 21:48:23.708921"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.713563"], ["updated_at", "2018-06-13 21:48:23.713563"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.725950"], ["updated_at", "2018-06-13 21:48:23.725950"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.727693"], ["updated_at", "2018-06-13 21:48:23.727693"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.729877"], ["updated_at", "2018-06-13 21:48:23.729877"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:48:23.735260"], ["updated_at", "2018-06-13 21:48:23.735260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:48:23.736800"], ["updated_at", "2018-06-13 21:48:23.736800"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:48:23.740928"], ["updated_at", "2018-06-13 21:48:23.740928"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:48:23.742321"], ["updated_at", "2018-06-13 21:48:23.742321"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.759274"], ["updated_at", "2018-06-13 21:48:23.759274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.766229"], ["updated_at", "2018-06-13 21:48:23.766229"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.768950"], ["updated_at", "2018-06-13 21:48:23.768950"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:48:23.787291"], ["updated_at", "2018-06-13 21:48:23.787291"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 21:48:23.791716"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:48:23.794160"], ["updated_at", "2018-06-13 21:48:23.794160"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:48:23.796644"], ["updated_at", "2018-06-13 21:48:23.796644"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:48:23.811958"], ["updated_at", "2018-06-13 21:48:23.811958"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:48:23.813961"], ["updated_at", "2018-06-13 21:48:23.813961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:48:23.817927"], ["updated_at", "2018-06-13 21:48:23.817927"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:48:23.820455"], ["updated_at", "2018-06-13 21:48:23.820455"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.834845"], ["updated_at", "2018-06-13 21:48:23.834845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.840237"], ["updated_at", "2018-06-13 21:48:23.840237"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.846510"], ["updated_at", "2018-06-13 21:48:23.846510"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.848401"], ["updated_at", "2018-06-13 21:48:23.848401"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.854934"], ["updated_at", "2018-06-13 21:48:23.854934"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.857018"], ["updated_at", "2018-06-13 21:48:23.857018"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.861681"], ["updated_at", "2018-06-13 21:48:23.861681"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:48:23.863712"], ["updated_at", "2018-06-13 21:48:23.863712"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.869428"], ["updated_at", "2018-06-13 21:48:23.869428"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.871646"], ["updated_at", "2018-06-13 21:48:23.871646"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.9ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.881711"], ["updated_at", "2018-06-13 21:48:23.881711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.883273"], ["updated_at", "2018-06-13 21:48:23.883273"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.885232"], ["updated_at", "2018-06-13 21:48:23.885232"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.897935"], ["updated_at", "2018-06-13 21:48:23.897935"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.911083"], ["updated_at", "2018-06-13 21:48:23.911083"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:48:23.925657"], ["updated_at", "2018-06-13 21:48:23.925657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:48:23.927402"], ["updated_at", "2018-06-13 21:48:23.927402"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.929349"], ["updated_at", "2018-06-13 21:48:23.929349"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.938933"], ["updated_at", "2018-06-13 21:48:23.938933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.948362"], ["updated_at", "2018-06-13 21:48:23.948362"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.956948"], ["updated_at", "2018-06-13 21:48:23.956948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.958430"], ["updated_at", "2018-06-13 21:48:23.958430"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.974241"], ["updated_at", "2018-06-13 21:48:23.974241"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.975920"], ["updated_at", "2018-06-13 21:48:23.975920"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.981180"], ["updated_at", "2018-06-13 21:48:23.981180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.982652"], ["updated_at", "2018-06-13 21:48:23.982652"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.989055"], ["updated_at", "2018-06-13 21:48:23.989055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:23.990849"], ["updated_at", "2018-06-13 21:48:23.990849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.014297"], ["updated_at", "2018-06-13 21:48:24.014297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.023176"], ["updated_at", "2018-06-13 21:48:24.023176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.027138"], ["updated_at", "2018-06-13 21:48:24.027138"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.032120"], ["updated_at", "2018-06-13 21:48:24.032120"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.040898"], ["updated_at", "2018-06-13 21:48:24.040898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.042221"], ["updated_at", "2018-06-13 21:48:24.042221"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:48:24.045641"], ["updated_at", "2018-06-13 21:48:24.045641"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:48:24.049911"], ["updated_at", "2018-06-13 21:48:24.049911"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.069553"], ["updated_at", "2018-06-13 21:48:24.069553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.071414"], ["updated_at", "2018-06-13 21:48:24.071414"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.075971"], ["updated_at", "2018-06-13 21:48:24.075971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.083689"], ["updated_at", "2018-06-13 21:48:24.083689"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.085828"], ["updated_at", "2018-06-13 21:48:24.085828"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.103706"], ["updated_at", "2018-06-13 21:48:24.103706"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.105769"], ["updated_at", "2018-06-13 21:48:24.105769"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:48:24.113458"], ["updated_at", "2018-06-13 21:48:24.113458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.135123"], ["updated_at", "2018-06-13 21:48:24.135123"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.139716"], ["updated_at", "2018-06-13 21:48:24.139716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.147882"], ["updated_at", "2018-06-13 21:48:24.147882"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.161107"], ["updated_at", "2018-06-13 21:48:24.161107"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.166741"], ["updated_at", "2018-06-13 21:48:24.166741"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:48:24.180292"], ["updated_at", "2018-06-13 21:48:24.180292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.5ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.207149"], ["updated_at", "2018-06-13 21:48:24.207149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.243628"], ["updated_at", "2018-06-13 21:48:24.243628"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.245536"], ["updated_at", "2018-06-13 21:48:24.245536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.249690"], ["updated_at", "2018-06-13 21:48:24.249690"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.259237"], ["updated_at", "2018-06-13 21:48:24.259237"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:48:24.267378"], ["updated_at", "2018-06-13 21:48:24.267378"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wroing"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.5ms | ActiveRecord: 0.5ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.2ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wroing"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 11ms (Views: 0.4ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:49:01.210380"], ["updated_at", "2018-06-13 21:49:01.210380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:49:01.211776"], ["updated_at", "2018-06-13 21:49:01.211776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.4ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:49:01.249342"], ["updated_at", "2018-06-13 21:49:01.249342"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.298864"], ["updated_at", "2018-06-13 21:49:01.298864"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.305845"], ["updated_at", "2018-06-13 21:49:01.305845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.312782"], ["updated_at", "2018-06-13 21:49:01.312782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.318376"], ["updated_at", "2018-06-13 21:49:01.318376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.485779"], ["updated_at", "2018-06-13 21:49:01.485779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:49:01.487492"], ["updated_at", "2018-06-13 21:49:01.487492"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.490662"], ["updated_at", "2018-06-13 21:49:01.490662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.491590"], ["updated_at", "2018-06-13 21:49:01.491590"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.495298"], ["updated_at", "2018-06-13 21:49:01.495298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.496306"], ["updated_at", "2018-06-13 21:49:01.496306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.500062"], ["updated_at", "2018-06-13 21:49:01.500062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:49:01.505582"], ["updated_at", "2018-06-13 21:49:01.505582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:49:01.506639"], ["updated_at", "2018-06-13 21:49:01.506639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:49:01.508965"], ["updated_at", "2018-06-13 21:49:01.508965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:49:01.509995"], ["updated_at", "2018-06-13 21:49:01.509995"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:49:01.514298"], ["updated_at", "2018-06-13 21:49:01.514298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:49:01.515549"], ["updated_at", "2018-06-13 21:49:01.515549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:49:01.518819"], ["updated_at", "2018-06-13 21:49:01.518819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:49:01.520148"], ["updated_at", "2018-06-13 21:49:01.520148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.533975"], ["updated_at", "2018-06-13 21:49:01.533975"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.542737"], ["updated_at", "2018-06-13 21:49:01.542737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.543763"], ["updated_at", "2018-06-13 21:49:01.543763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.551273"], ["updated_at", "2018-06-13 21:49:01.551273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:49:01.585598"], ["updated_at", "2018-06-13 21:49:01.585598"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:49:01.587271"], ["updated_at", "2018-06-13 21:49:01.587271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.588769"], ["updated_at", "2018-06-13 21:49:01.588769"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.592704"], ["updated_at", "2018-06-13 21:49:01.592704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.614259"], ["updated_at", "2018-06-13 21:49:01.614259"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.617833"], ["updated_at", "2018-06-13 21:49:01.617833"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.624747"], ["updated_at", "2018-06-13 21:49:01.624747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.625938"], ["updated_at", "2018-06-13 21:49:01.625938"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.627094"], ["updated_at", "2018-06-13 21:49:01.627094"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.630613"], ["updated_at", "2018-06-13 21:49:01.630613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.631716"], ["updated_at", "2018-06-13 21:49:01.631716"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.636505"], ["updated_at", "2018-06-13 21:49:01.636505"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.638218"], ["updated_at", "2018-06-13 21:49:01.638218"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.641990"], ["updated_at", "2018-06-13 21:49:01.641990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.643093"], ["updated_at", "2018-06-13 21:49:01.643093"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.646194"], ["updated_at", "2018-06-13 21:49:01.646194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.647334"], ["updated_at", "2018-06-13 21:49:01.647334"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.658607"], ["updated_at", "2018-06-13 21:49:01.658607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.662805"], ["updated_at", "2018-06-13 21:49:01.662805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.669176"], ["updated_at", "2018-06-13 21:49:01.669176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.670448"], ["updated_at", "2018-06-13 21:49:01.670448"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.685751"], ["updated_at", "2018-06-13 21:49:01.685751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.694894"], ["updated_at", "2018-06-13 21:49:01.694894"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.703625"], ["updated_at", "2018-06-13 21:49:01.703625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.705353"], ["updated_at", "2018-06-13 21:49:01.705353"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.708768"], ["updated_at", "2018-06-13 21:49:01.708768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.712381"], ["updated_at", "2018-06-13 21:49:01.712381"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.715156"], ["updated_at", "2018-06-13 21:49:01.715156"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.721769"], ["updated_at", "2018-06-13 21:49:01.721769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.723543"], ["updated_at", "2018-06-13 21:49:01.723543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.726534"], ["updated_at", "2018-06-13 21:49:01.726534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:49:01.736077"], ["updated_at", "2018-06-13 21:49:01.736077"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 21:49:01.740228"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:49:01.741644"], ["updated_at", "2018-06-13 21:49:01.741644"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:49:01.743014"], ["updated_at", "2018-06-13 21:49:01.743014"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.747836"], ["updated_at", "2018-06-13 21:49:01.747836"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:49:01.759307"], ["updated_at", "2018-06-13 21:49:01.759307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.762985"], ["updated_at", "2018-06-13 21:49:01.762985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.774048"], ["updated_at", "2018-06-13 21:49:01.774048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.775263"], ["updated_at", "2018-06-13 21:49:01.775263"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.776288"], ["updated_at", "2018-06-13 21:49:01.776288"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:49:01.779712"], ["updated_at", "2018-06-13 21:49:01.779712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:49:01.782879"], ["updated_at", "2018-06-13 21:49:01.782879"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.797566"], ["updated_at", "2018-06-13 21:49:01.797566"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.801405"], ["updated_at", "2018-06-13 21:49:01.801405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.802915"], ["updated_at", "2018-06-13 21:49:01.802915"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:49:01.810971"], ["updated_at", "2018-06-13 21:49:01.810971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.816566"], ["updated_at", "2018-06-13 21:49:01.816566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.824294"], ["updated_at", "2018-06-13 21:49:01.824294"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.827846"], ["updated_at", "2018-06-13 21:49:01.827846"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.839718"], ["updated_at", "2018-06-13 21:49:01.839718"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.841047"], ["updated_at", "2018-06-13 21:49:01.841047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.851379"], ["updated_at", "2018-06-13 21:49:01.851379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (3.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.860412"], ["updated_at", "2018-06-13 21:49:01.860412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.874163"], ["updated_at", "2018-06-13 21:49:01.874163"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.875361"], ["updated_at", "2018-06-13 21:49:01.875361"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:49:01.879271"], ["updated_at", "2018-06-13 21:49:01.879271"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.893762"], ["updated_at", "2018-06-13 21:49:01.893762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.900223"], ["updated_at", "2018-06-13 21:49:01.900223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:49:01.901629"], ["updated_at", "2018-06-13 21:49:01.901629"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.6ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wroing"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.7ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.1ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Completed 500 Internal Server Error in 1ms (Views: 3.1ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.1ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.450201"], ["updated_at", "2018-06-13 21:52:52.450201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.456807"], ["updated_at", "2018-06-13 21:52:52.456807"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.2ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.505769"], ["updated_at", "2018-06-13 21:52:52.505769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.509795"], ["updated_at", "2018-06-13 21:52:52.509795"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.513968"], ["updated_at", "2018-06-13 21:52:52.513968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.522540"], ["updated_at", "2018-06-13 21:52:52.522540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.523466"], ["updated_at", "2018-06-13 21:52:52.523466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.539361"], ["updated_at", "2018-06-13 21:52:52.539361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.540525"], ["updated_at", "2018-06-13 21:52:52.540525"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.543177"], ["updated_at", "2018-06-13 21:52:52.543177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.545516"], ["updated_at", "2018-06-13 21:52:52.545516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.548139"], ["updated_at", "2018-06-13 21:52:52.548139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.554106"], ["updated_at", "2018-06-13 21:52:52.554106"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.566593"], ["updated_at", "2018-06-13 21:52:52.566593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.575731"], ["updated_at", "2018-06-13 21:52:52.575731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.580530"], ["updated_at", "2018-06-13 21:52:52.580530"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:52:52.582355"], ["updated_at", "2018-06-13 21:52:52.582355"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.586977"], ["updated_at", "2018-06-13 21:52:52.586977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.588423"], ["updated_at", "2018-06-13 21:52:52.588423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.591771"], ["updated_at", "2018-06-13 21:52:52.591771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:52:52.596701"], ["updated_at", "2018-06-13 21:52:52.596701"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:52:52.598483"], ["updated_at", "2018-06-13 21:52:52.598483"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.599921"], ["updated_at", "2018-06-13 21:52:52.599921"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.603079"], ["updated_at", "2018-06-13 21:52:52.603079"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.604429"], ["updated_at", "2018-06-13 21:52:52.604429"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.606726"], ["updated_at", "2018-06-13 21:52:52.606726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.607682"], ["updated_at", "2018-06-13 21:52:52.607682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:52:52.619530"], ["updated_at", "2018-06-13 21:52:52.619530"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:52:52.622726"], ["updated_at", "2018-06-13 21:52:52.622726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:52:52.648100"], ["updated_at", "2018-06-13 21:52:52.648100"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.660508"], ["updated_at", "2018-06-13 21:52:52.660508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.662927"], ["updated_at", "2018-06-13 21:52:52.662927"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.667718"], ["updated_at", "2018-06-13 21:52:52.667718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.672904"], ["updated_at", "2018-06-13 21:52:52.672904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.673772"], ["updated_at", "2018-06-13 21:52:52.673772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.675829"], ["updated_at", "2018-06-13 21:52:52.675829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:52:52.679909"], ["updated_at", "2018-06-13 21:52:52.679909"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 21:52:52.681403"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:52:52.683164"], ["updated_at", "2018-06-13 21:52:52.683164"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:52:52.684371"], ["updated_at", "2018-06-13 21:52:52.684371"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:52:52.688877"], ["updated_at", "2018-06-13 21:52:52.688877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:52:52.689919"], ["updated_at", "2018-06-13 21:52:52.689919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:52:52.691967"], ["updated_at", "2018-06-13 21:52:52.691967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:52:52.692807"], ["updated_at", "2018-06-13 21:52:52.692807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:52:52.701683"], ["updated_at", "2018-06-13 21:52:52.701683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:52:52.702740"], ["updated_at", "2018-06-13 21:52:52.702740"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:52:52.704995"], ["updated_at", "2018-06-13 21:52:52.704995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:52:52.705877"], ["updated_at", "2018-06-13 21:52:52.705877"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:52:52.711831"], ["updated_at", "2018-06-13 21:52:52.711831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.716414"], ["updated_at", "2018-06-13 21:52:52.716414"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.717753"], ["updated_at", "2018-06-13 21:52:52.717753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.718623"], ["updated_at", "2018-06-13 21:52:52.718623"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:52:52.721782"], ["updated_at", "2018-06-13 21:52:52.721782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.724159"], ["updated_at", "2018-06-13 21:52:52.724159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.743679"], ["updated_at", "2018-06-13 21:52:52.743679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.750186"], ["updated_at", "2018-06-13 21:52:52.750186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.751227"], ["updated_at", "2018-06-13 21:52:52.751227"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.753369"], ["updated_at", "2018-06-13 21:52:52.753369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.756072"], ["updated_at", "2018-06-13 21:52:52.756072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.759595"], ["updated_at", "2018-06-13 21:52:52.759595"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.761380"], ["updated_at", "2018-06-13 21:52:52.761380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.762138"], ["updated_at", "2018-06-13 21:52:52.762138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.762850"], ["updated_at", "2018-06-13 21:52:52.762850"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.765713"], ["updated_at", "2018-06-13 21:52:52.765713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.767141"], ["updated_at", "2018-06-13 21:52:52.767141"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.770906"], ["updated_at", "2018-06-13 21:52:52.770906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.776181"], ["updated_at", "2018-06-13 21:52:52.776181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.780872"], ["updated_at", "2018-06-13 21:52:52.780872"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.782452"], ["updated_at", "2018-06-13 21:52:52.782452"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.785085"], ["updated_at", "2018-06-13 21:52:52.785085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.786145"], ["updated_at", "2018-06-13 21:52:52.786145"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.794366"], ["updated_at", "2018-06-13 21:52:52.794366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.795208"], ["updated_at", "2018-06-13 21:52:52.795208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.800882"], ["updated_at", "2018-06-13 21:52:52.800882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.807279"], ["updated_at", "2018-06-13 21:52:52.807279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.813353"], ["updated_at", "2018-06-13 21:52:52.813353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.814373"], ["updated_at", "2018-06-13 21:52:52.814373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.826031"], ["updated_at", "2018-06-13 21:52:52.826031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:52.826890"], ["updated_at", "2018-06-13 21:52:52.826890"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.3ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:52:52.965377"], ["updated_at", "2018-06-13 21:52:52.965377"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:52:52.982359"], ["updated_at", "2018-06-13 21:52:52.982359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:52:52.983420"], ["updated_at", "2018-06-13 21:52:52.983420"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:53.023942"], ["updated_at", "2018-06-13 21:52:53.023942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:53.030134"], ["updated_at", "2018-06-13 21:52:53.030134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:53.038124"], ["updated_at", "2018-06-13 21:52:53.038124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:52:53.040883"], ["updated_at", "2018-06-13 21:52:53.040883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.5ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.1ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.5ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:58:03.965900"], ["updated_at", "2018-06-13 21:58:03.965900"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.2ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.021758"], ["updated_at", "2018-06-13 21:58:04.021758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.053903"], ["updated_at", "2018-06-13 21:58:04.053903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.060790"], ["updated_at", "2018-06-13 21:58:04.060790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.065038"], ["updated_at", "2018-06-13 21:58:04.065038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:58:04.075028"], ["updated_at", "2018-06-13 21:58:04.075028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:58:04.076126"], ["updated_at", "2018-06-13 21:58:04.076126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.126859"], ["updated_at", "2018-06-13 21:58:04.126859"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.128119"], ["updated_at", "2018-06-13 21:58:04.128119"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.129095"], ["updated_at", "2018-06-13 21:58:04.129095"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.132960"], ["updated_at", "2018-06-13 21:58:04.132960"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.134426"], ["updated_at", "2018-06-13 21:58:04.134426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.145176"], ["updated_at", "2018-06-13 21:58:04.145176"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.151251"], ["updated_at", "2018-06-13 21:58:04.151251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.154608"], ["updated_at", "2018-06-13 21:58:04.154608"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.159450"], ["updated_at", "2018-06-13 21:58:04.159450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.167334"], ["updated_at", "2018-06-13 21:58:04.167334"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:58:04.174983"], ["updated_at", "2018-06-13 21:58:04.174983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:58:04.177298"], ["updated_at", "2018-06-13 21:58:04.177298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:58:04.188986"], ["updated_at", "2018-06-13 21:58:04.188986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.192178"], ["updated_at", "2018-06-13 21:58:04.192178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.196735"], ["updated_at", "2018-06-13 21:58:04.196735"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.198061"], ["updated_at", "2018-06-13 21:58:04.198061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.207834"], ["updated_at", "2018-06-13 21:58:04.207834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.213515"], ["updated_at", "2018-06-13 21:58:04.213515"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.220520"], ["updated_at", "2018-06-13 21:58:04.220520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.226718"], ["updated_at", "2018-06-13 21:58:04.226718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:58:04.227778"], ["updated_at", "2018-06-13 21:58:04.227778"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.230796"], ["updated_at", "2018-06-13 21:58:04.230796"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.232364"], ["updated_at", "2018-06-13 21:58:04.232364"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.236491"], ["updated_at", "2018-06-13 21:58:04.236491"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.239718"], ["updated_at", "2018-06-13 21:58:04.239718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.242224"], ["updated_at", "2018-06-13 21:58:04.242224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.245759"], ["updated_at", "2018-06-13 21:58:04.245759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.253919"], ["updated_at", "2018-06-13 21:58:04.253919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.255005"], ["updated_at", "2018-06-13 21:58:04.255005"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:58:04.275793"], ["updated_at", "2018-06-13 21:58:04.275793"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:58:04.276906"], ["updated_at", "2018-06-13 21:58:04.276906"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:58:04.278927"], ["updated_at", "2018-06-13 21:58:04.278927"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:58:04.279866"], ["updated_at", "2018-06-13 21:58:04.279866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.295270"], ["updated_at", "2018-06-13 21:58:04.295270"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.296194"], ["updated_at", "2018-06-13 21:58:04.296194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.307030"], ["updated_at", "2018-06-13 21:58:04.307030"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.307967"], ["updated_at", "2018-06-13 21:58:04.307967"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.309876"], ["updated_at", "2018-06-13 21:58:04.309876"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.310743"], ["updated_at", "2018-06-13 21:58:04.310743"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.312708"], ["updated_at", "2018-06-13 21:58:04.312708"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.316265"], ["updated_at", "2018-06-13 21:58:04.316265"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.320679"], ["updated_at", "2018-06-13 21:58:04.320679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.324937"], ["updated_at", "2018-06-13 21:58:04.324937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.325900"], ["updated_at", "2018-06-13 21:58:04.325900"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:58:04.328681"], ["updated_at", "2018-06-13 21:58:04.328681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:58:04.329630"], ["updated_at", "2018-06-13 21:58:04.329630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:58:04.332526"], ["updated_at", "2018-06-13 21:58:04.332526"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:58:04.334620"], ["updated_at", "2018-06-13 21:58:04.334620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.343105"], ["updated_at", "2018-06-13 21:58:04.343105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.344118"], ["updated_at", "2018-06-13 21:58:04.344118"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.346858"], ["updated_at", "2018-06-13 21:58:04.346858"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.348450"], ["updated_at", "2018-06-13 21:58:04.348450"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (4.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.367054"], ["updated_at", "2018-06-13 21:58:04.367054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.368105"], ["updated_at", "2018-06-13 21:58:04.368105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.370520"], ["updated_at", "2018-06-13 21:58:04.370520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.374161"], ["updated_at", "2018-06-13 21:58:04.374161"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.375145"], ["updated_at", "2018-06-13 21:58:04.375145"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:58:04.380517"], ["updated_at", "2018-06-13 21:58:04.380517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 21:58:04.383098"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:58:04.384894"], ["updated_at", "2018-06-13 21:58:04.384894"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:58:04.386505"], ["updated_at", "2018-06-13 21:58:04.386505"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.391979"], ["updated_at", "2018-06-13 21:58:04.391979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:58:04.403255"], ["updated_at", "2018-06-13 21:58:04.403255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.408159"], ["updated_at", "2018-06-13 21:58:04.408159"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.410366"], ["updated_at", "2018-06-13 21:58:04.410366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.411268"], ["updated_at", "2018-06-13 21:58:04.411268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.412125"], ["updated_at", "2018-06-13 21:58:04.412125"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.421279"], ["updated_at", "2018-06-13 21:58:04.421279"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.422465"], ["updated_at", "2018-06-13 21:58:04.422465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.425040"], ["updated_at", "2018-06-13 21:58:04.425040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:58:04.428818"], ["updated_at", "2018-06-13 21:58:04.428818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:58:04.429869"], ["updated_at", "2018-06-13 21:58:04.429869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.430974"], ["updated_at", "2018-06-13 21:58:04.430974"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.434299"], ["updated_at", "2018-06-13 21:58:04.434299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.438317"], ["updated_at", "2018-06-13 21:58:04.438317"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.442711"], ["updated_at", "2018-06-13 21:58:04.442711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.443624"], ["updated_at", "2018-06-13 21:58:04.443624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:58:04.454509"], ["updated_at", "2018-06-13 21:58:04.454509"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:04.466500"], ["updated_at", "2018-06-13 21:58:04.466500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:58:19.671445"], ["updated_at", "2018-06-13 21:58:19.671445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:58:19.673989"], ["updated_at", "2018-06-13 21:58:19.673989"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:58:19.735030"], ["updated_at", "2018-06-13 21:58:19.735030"]]  (0.0ms) commit transaction SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.745192"], ["updated_at", "2018-06-13 21:58:19.745192"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.752134"], ["updated_at", "2018-06-13 21:58:19.752134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.756661"], ["updated_at", "2018-06-13 21:58:19.756661"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.771203"], ["updated_at", "2018-06-13 21:58:19.771203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.794372"], ["updated_at", "2018-06-13 21:58:19.794372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.795478"], ["updated_at", "2018-06-13 21:58:19.795478"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:58:19.798706"], ["updated_at", "2018-06-13 21:58:19.798706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:58:19.801245"], ["updated_at", "2018-06-13 21:58:19.801245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.811889"], ["updated_at", "2018-06-13 21:58:19.811889"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.812784"], ["updated_at", "2018-06-13 21:58:19.812784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.815408"], ["updated_at", "2018-06-13 21:58:19.815408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:58:19.826306"], ["updated_at", "2018-06-13 21:58:19.826306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.830957"], ["updated_at", "2018-06-13 21:58:19.830957"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.832131"], ["updated_at", "2018-06-13 21:58:19.832131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.833126"], ["updated_at", "2018-06-13 21:58:19.833126"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.836032"], ["updated_at", "2018-06-13 21:58:19.836032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.837065"], ["updated_at", "2018-06-13 21:58:19.837065"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.848984"], ["updated_at", "2018-06-13 21:58:19.848984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.850010"], ["updated_at", "2018-06-13 21:58:19.850010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.8ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:58:19.856949"], ["updated_at", "2018-06-13 21:58:19.856949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:58:19.858014"], ["updated_at", "2018-06-13 21:58:19.858014"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:58:19.859802"], ["updated_at", "2018-06-13 21:58:19.859802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:58:19.860798"], ["updated_at", "2018-06-13 21:58:19.860798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.864484"], ["updated_at", "2018-06-13 21:58:19.864484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.865309"], ["updated_at", "2018-06-13 21:58:19.865309"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:58:19.870251"], ["updated_at", "2018-06-13 21:58:19.870251"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 21:58:19.873315"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:58:19.874890"], ["updated_at", "2018-06-13 21:58:19.874890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:58:19.875966"], ["updated_at", "2018-06-13 21:58:19.875966"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.880858"], ["updated_at", "2018-06-13 21:58:19.880858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:58:19.885643"], ["updated_at", "2018-06-13 21:58:19.885643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:58:19.886720"], ["updated_at", "2018-06-13 21:58:19.886720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.887998"], ["updated_at", "2018-06-13 21:58:19.887998"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.891079"], ["updated_at", "2018-06-13 21:58:19.891079"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.894033"], ["updated_at", "2018-06-13 21:58:19.894033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:58:19.918056"], ["updated_at", "2018-06-13 21:58:19.918056"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:58:19.930661"], ["updated_at", "2018-06-13 21:58:19.930661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.933286"], ["updated_at", "2018-06-13 21:58:19.933286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.938377"], ["updated_at", "2018-06-13 21:58:19.938377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.941341"], ["updated_at", "2018-06-13 21:58:19.941341"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.943959"], ["updated_at", "2018-06-13 21:58:19.943959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.947881"], ["updated_at", "2018-06-13 21:58:19.947881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.953142"], ["updated_at", "2018-06-13 21:58:19.953142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.954163"], ["updated_at", "2018-06-13 21:58:19.954163"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.966928"], ["updated_at", "2018-06-13 21:58:19.966928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.971155"], ["updated_at", "2018-06-13 21:58:19.971155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.972206"], ["updated_at", "2018-06-13 21:58:19.972206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.984707"], ["updated_at", "2018-06-13 21:58:19.984707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.992721"], ["updated_at", "2018-06-13 21:58:19.992721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.993976"], ["updated_at", "2018-06-13 21:58:19.993976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:19.996875"], ["updated_at", "2018-06-13 21:58:19.996875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.000598"], ["updated_at", "2018-06-13 21:58:20.000598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.003127"], ["updated_at", "2018-06-13 21:58:20.003127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.008474"], ["updated_at", "2018-06-13 21:58:20.008474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.015257"], ["updated_at", "2018-06-13 21:58:20.015257"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.016472"], ["updated_at", "2018-06-13 21:58:20.016472"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.019417"], ["updated_at", "2018-06-13 21:58:20.019417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.020386"], ["updated_at", "2018-06-13 21:58:20.020386"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.028209"], ["updated_at", "2018-06-13 21:58:20.028209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.030916"], ["updated_at", "2018-06-13 21:58:20.030916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.035110"], ["updated_at", "2018-06-13 21:58:20.035110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.043113"], ["updated_at", "2018-06-13 21:58:20.043113"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.063633"], ["updated_at", "2018-06-13 21:58:20.063633"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.066222"], ["updated_at", "2018-06-13 21:58:20.066222"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.069631"], ["updated_at", "2018-06-13 21:58:20.069631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.070490"], ["updated_at", "2018-06-13 21:58:20.070490"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.074020"], ["updated_at", "2018-06-13 21:58:20.074020"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.075158"], ["updated_at", "2018-06-13 21:58:20.075158"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.080721"], ["updated_at", "2018-06-13 21:58:20.080721"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:58:20.081780"], ["updated_at", "2018-06-13 21:58:20.081780"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.084776"], ["updated_at", "2018-06-13 21:58:20.084776"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.091663"], ["updated_at", "2018-06-13 21:58:20.091663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.092814"], ["updated_at", "2018-06-13 21:58:20.092814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:58:20.099308"], ["updated_at", "2018-06-13 21:58:20.099308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:58:20.100225"], ["updated_at", "2018-06-13 21:58:20.100225"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:58:20.101964"], ["updated_at", "2018-06-13 21:58:20.101964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:58:20.102891"], ["updated_at", "2018-06-13 21:58:20.102891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.112215"], ["updated_at", "2018-06-13 21:58:20.112215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.113356"], ["updated_at", "2018-06-13 21:58:20.113356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.114352"], ["updated_at", "2018-06-13 21:58:20.114352"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.122262"], ["updated_at", "2018-06-13 21:58:20.122262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.127360"], ["updated_at", "2018-06-13 21:58:20.127360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:20.128526"], ["updated_at", "2018-06-13 21:58:20.128526"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.4ms | ActiveRecord: 0.3ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:58:56.676472"], ["updated_at", "2018-06-13 21:58:56.676472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:58:56.677987"], ["updated_at", "2018-06-13 21:58:56.677987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:56.765267"], ["updated_at", "2018-06-13 21:58:56.765267"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:56.774113"], ["updated_at", "2018-06-13 21:58:56.774113"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:56.779806"], ["updated_at", "2018-06-13 21:58:56.779806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:58:56.806089"], ["updated_at", "2018-06-13 21:58:56.806089"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:56.819233"], ["updated_at", "2018-06-13 21:58:56.819233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.4ms | ActiveRecord: 0.3ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.058527"], ["updated_at", "2018-06-13 21:58:57.058527"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.066482"], ["updated_at", "2018-06-13 21:58:57.066482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.069570"], ["updated_at", "2018-06-13 21:58:57.069570"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.076897"], ["updated_at", "2018-06-13 21:58:57.076897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.078312"], ["updated_at", "2018-06-13 21:58:57.078312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.085389"], ["updated_at", "2018-06-13 21:58:57.085389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.086394"], ["updated_at", "2018-06-13 21:58:57.086394"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.090715"], ["updated_at", "2018-06-13 21:58:57.090715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:58:57.107341"], ["updated_at", "2018-06-13 21:58:57.107341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.113788"], ["updated_at", "2018-06-13 21:58:57.113788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.114953"], ["updated_at", "2018-06-13 21:58:57.114953"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.129958"], ["updated_at", "2018-06-13 21:58:57.129958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.131108"], ["updated_at", "2018-06-13 21:58:57.131108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.142313"], ["updated_at", "2018-06-13 21:58:57.142313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.148796"], ["updated_at", "2018-06-13 21:58:57.148796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.152003"], ["updated_at", "2018-06-13 21:58:57.152003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.158190"], ["updated_at", "2018-06-13 21:58:57.158190"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.159546"], ["updated_at", "2018-06-13 21:58:57.159546"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.162889"], ["updated_at", "2018-06-13 21:58:57.162889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.164015"], ["updated_at", "2018-06-13 21:58:57.164015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.166927"], ["updated_at", "2018-06-13 21:58:57.166927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.173655"], ["updated_at", "2018-06-13 21:58:57.173655"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.181588"], ["updated_at", "2018-06-13 21:58:57.181588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.191262"], ["updated_at", "2018-06-13 21:58:57.191262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.192760"], ["updated_at", "2018-06-13 21:58:57.192760"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.199550"], ["updated_at", "2018-06-13 21:58:57.199550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.200718"], ["updated_at", "2018-06-13 21:58:57.200718"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.209947"], ["updated_at", "2018-06-13 21:58:57.209947"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.211603"], ["updated_at", "2018-06-13 21:58:57.211603"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.215410"], ["updated_at", "2018-06-13 21:58:57.215410"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:58:57.217712"], ["updated_at", "2018-06-13 21:58:57.217712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:58:57.218798"], ["updated_at", "2018-06-13 21:58:57.218798"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:58:57.222197"], ["updated_at", "2018-06-13 21:58:57.222197"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:58:57.224089"], ["updated_at", "2018-06-13 21:58:57.224089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:58:57.229643"], ["updated_at", "2018-06-13 21:58:57.229643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:58:57.230902"], ["updated_at", "2018-06-13 21:58:57.230902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:58:57.233139"], ["updated_at", "2018-06-13 21:58:57.233139"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:58:57.234223"], ["updated_at", "2018-06-13 21:58:57.234223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.246037"], ["updated_at", "2018-06-13 21:58:57.246037"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.251510"], ["updated_at", "2018-06-13 21:58:57.251510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.252646"], ["updated_at", "2018-06-13 21:58:57.252646"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.254483"], ["updated_at", "2018-06-13 21:58:57.254483"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.259089"], ["updated_at", "2018-06-13 21:58:57.259089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.260503"], ["updated_at", "2018-06-13 21:58:57.260503"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.261976"], ["updated_at", "2018-06-13 21:58:57.261976"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.265777"], ["updated_at", "2018-06-13 21:58:57.265777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.269196"], ["updated_at", "2018-06-13 21:58:57.269196"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.273393"], ["updated_at", "2018-06-13 21:58:57.273393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.278927"], ["updated_at", "2018-06-13 21:58:57.278927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.287990"], ["updated_at", "2018-06-13 21:58:57.287990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.296961"], ["updated_at", "2018-06-13 21:58:57.296961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.298389"], ["updated_at", "2018-06-13 21:58:57.298389"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:58:57.302240"], ["updated_at", "2018-06-13 21:58:57.302240"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:58:57.303638"], ["updated_at", "2018-06-13 21:58:57.303638"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.305486"], ["updated_at", "2018-06-13 21:58:57.305486"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.310098"], ["updated_at", "2018-06-13 21:58:57.310098"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:58:57.318145"], ["updated_at", "2018-06-13 21:58:57.318145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:58:57.323687"], ["updated_at", "2018-06-13 21:58:57.323687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:58:57.359007"], ["updated_at", "2018-06-13 21:58:57.359007"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.362121"], ["updated_at", "2018-06-13 21:58:57.362121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.368139"], ["updated_at", "2018-06-13 21:58:57.368139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.369337"], ["updated_at", "2018-06-13 21:58:57.369337"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.386584"], ["updated_at", "2018-06-13 21:58:57.386584"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:58:57.388804"], ["updated_at", "2018-06-13 21:58:57.388804"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.397309"], ["updated_at", "2018-06-13 21:58:57.397309"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.404592"], ["updated_at", "2018-06-13 21:58:57.404592"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.409352"], ["updated_at", "2018-06-13 21:58:57.409352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.415313"], ["updated_at", "2018-06-13 21:58:57.415313"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.416475"], ["updated_at", "2018-06-13 21:58:57.416475"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:58:57.423489"], ["updated_at", "2018-06-13 21:58:57.423489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 21:58:57.426406"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:58:57.428100"], ["updated_at", "2018-06-13 21:58:57.428100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:58:57.429338"], ["updated_at", "2018-06-13 21:58:57.429338"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.438160"], ["updated_at", "2018-06-13 21:58:57.438160"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.447420"], ["updated_at", "2018-06-13 21:58:57.447420"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.448827"], ["updated_at", "2018-06-13 21:58:57.448827"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.465543"], ["updated_at", "2018-06-13 21:58:57.465543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:58:57.466745"], ["updated_at", "2018-06-13 21:58:57.466745"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:58:57.477687"], ["updated_at", "2018-06-13 21:58:57.477687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:59:26.088277"], ["updated_at", "2018-06-13 21:59:26.088277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:59:26.095781"], ["updated_at", "2018-06-13 21:59:26.095781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.096746"], ["updated_at", "2018-06-13 21:59:26.096746"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.102306"], ["updated_at", "2018-06-13 21:59:26.102306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.103382"], ["updated_at", "2018-06-13 21:59:26.103382"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.131399"], ["updated_at", "2018-06-13 21:59:26.131399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.132472"], ["updated_at", "2018-06-13 21:59:26.132472"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.135245"], ["updated_at", "2018-06-13 21:59:26.135245"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:59:26.143405"], ["updated_at", "2018-06-13 21:59:26.143405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.146727"], ["updated_at", "2018-06-13 21:59:26.146727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.153326"], ["updated_at", "2018-06-13 21:59:26.153326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.154669"], ["updated_at", "2018-06-13 21:59:26.154669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.162065"], ["updated_at", "2018-06-13 21:59:26.162065"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:59:26.163282"], ["updated_at", "2018-06-13 21:59:26.163282"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.166727"], ["updated_at", "2018-06-13 21:59:26.166727"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.175231"], ["updated_at", "2018-06-13 21:59:26.175231"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.178054"], ["updated_at", "2018-06-13 21:59:26.178054"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.2ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.193322"], ["updated_at", "2018-06-13 21:59:26.193322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.201160"], ["updated_at", "2018-06-13 21:59:26.201160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.202536"], ["updated_at", "2018-06-13 21:59:26.202536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.203678"], ["updated_at", "2018-06-13 21:59:26.203678"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.207210"], ["updated_at", "2018-06-13 21:59:26.207210"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.208224"], ["updated_at", "2018-06-13 21:59:26.208224"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.210594"], ["updated_at", "2018-06-13 21:59:26.210594"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.212685"], ["updated_at", "2018-06-13 21:59:26.212685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.213618"], ["updated_at", "2018-06-13 21:59:26.213618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.217241"], ["updated_at", "2018-06-13 21:59:26.217241"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.222432"], ["updated_at", "2018-06-13 21:59:26.222432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.223553"], ["updated_at", "2018-06-13 21:59:26.223553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.226616"], ["updated_at", "2018-06-13 21:59:26.226616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.231339"], ["updated_at", "2018-06-13 21:59:26.231339"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.235415"], ["updated_at", "2018-06-13 21:59:26.235415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:59:26.244566"], ["updated_at", "2018-06-13 21:59:26.244566"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.264131"], ["updated_at", "2018-06-13 21:59:26.264131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.271478"], ["updated_at", "2018-06-13 21:59:26.271478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:59:26.279914"], ["updated_at", "2018-06-13 21:59:26.279914"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:59:26.281183"], ["updated_at", "2018-06-13 21:59:26.281183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:59:26.291700"], ["updated_at", "2018-06-13 21:59:26.291700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:59:26.292922"], ["updated_at", "2018-06-13 21:59:26.292922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.297735"], ["updated_at", "2018-06-13 21:59:26.297735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.308834"], ["updated_at", "2018-06-13 21:59:26.308834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.316611"], ["updated_at", "2018-06-13 21:59:26.316611"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.317980"], ["updated_at", "2018-06-13 21:59:26.317980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.326754"], ["updated_at", "2018-06-13 21:59:26.326754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.329664"], ["updated_at", "2018-06-13 21:59:26.329664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.332303"], ["updated_at", "2018-06-13 21:59:26.332303"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:59:26.338331"], ["updated_at", "2018-06-13 21:59:26.338331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 21:59:26.339569"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:59:26.341085"], ["updated_at", "2018-06-13 21:59:26.341085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:59:26.342093"], ["updated_at", "2018-06-13 21:59:26.342093"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.346309"], ["updated_at", "2018-06-13 21:59:26.346309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.348974"], ["updated_at", "2018-06-13 21:59:26.348974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.354212"], ["updated_at", "2018-06-13 21:59:26.354212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:59:26.362387"], ["updated_at", "2018-06-13 21:59:26.362387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.367431"], ["updated_at", "2018-06-13 21:59:26.367431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.369026"], ["updated_at", "2018-06-13 21:59:26.369026"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:59:26.372163"], ["updated_at", "2018-06-13 21:59:26.372163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:59:26.374730"], ["updated_at", "2018-06-13 21:59:26.374730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.384956"], ["updated_at", "2018-06-13 21:59:26.384956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.391080"], ["updated_at", "2018-06-13 21:59:26.391080"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.392309"], ["updated_at", "2018-06-13 21:59:26.392309"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.395096"], ["updated_at", "2018-06-13 21:59:26.395096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.396084"], ["updated_at", "2018-06-13 21:59:26.396084"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.398792"], ["updated_at", "2018-06-13 21:59:26.398792"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.405285"], ["updated_at", "2018-06-13 21:59:26.405285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.406253"], ["updated_at", "2018-06-13 21:59:26.406253"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.407163"], ["updated_at", "2018-06-13 21:59:26.407163"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.422319"], ["updated_at", "2018-06-13 21:59:26.422319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.423297"], ["updated_at", "2018-06-13 21:59:26.423297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.443141"], ["updated_at", "2018-06-13 21:59:26.443141"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.444161"], ["updated_at", "2018-06-13 21:59:26.444161"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:59:26.446852"], ["updated_at", "2018-06-13 21:59:26.446852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:59:26.447760"], ["updated_at", "2018-06-13 21:59:26.447760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:59:26.450413"], ["updated_at", "2018-06-13 21:59:26.450413"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:59:26.451559"], ["updated_at", "2018-06-13 21:59:26.451559"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.459321"], ["updated_at", "2018-06-13 21:59:26.459321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.460527"], ["updated_at", "2018-06-13 21:59:26.460527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.488509"], ["updated_at", "2018-06-13 21:59:26.488509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.489466"], ["updated_at", "2018-06-13 21:59:26.489466"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:59:26.520010"], ["updated_at", "2018-06-13 21:59:26.520010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:59:26.521123"], ["updated_at", "2018-06-13 21:59:26.521123"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:59:26.541325"], ["updated_at", "2018-06-13 21:59:26.541325"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.544977"], ["updated_at", "2018-06-13 21:59:26.544977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.552741"], ["updated_at", "2018-06-13 21:59:26.552741"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.556065"], ["updated_at", "2018-06-13 21:59:26.556065"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:26.589597"], ["updated_at", "2018-06-13 21:59:26.589597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.3ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.2ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.858297"], ["updated_at", "2018-06-13 21:59:33.858297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.867207"], ["updated_at", "2018-06-13 21:59:33.867207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.868420"], ["updated_at", "2018-06-13 21:59:33.868420"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.876424"], ["updated_at", "2018-06-13 21:59:33.876424"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.911784"], ["updated_at", "2018-06-13 21:59:33.911784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.916755"], ["updated_at", "2018-06-13 21:59:33.916755"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.918067"], ["updated_at", "2018-06-13 21:59:33.918067"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.943912"], ["updated_at", "2018-06-13 21:59:33.943912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.945039"], ["updated_at", "2018-06-13 21:59:33.945039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.960651"], ["updated_at", "2018-06-13 21:59:33.960651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.966727"], ["updated_at", "2018-06-13 21:59:33.966727"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.976807"], ["updated_at", "2018-06-13 21:59:33.976807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.978164"], ["updated_at", "2018-06-13 21:59:33.978164"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:33.981216"], ["updated_at", "2018-06-13 21:59:33.981216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:59:33.986418"], ["updated_at", "2018-06-13 21:59:33.986418"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:59:33.990864"], ["updated_at", "2018-06-13 21:59:33.990864"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.007421"], ["updated_at", "2018-06-13 21:59:34.007421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.008737"], ["updated_at", "2018-06-13 21:59:34.008737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:59:34.018173"], ["updated_at", "2018-06-13 21:59:34.018173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:59:34.019267"], ["updated_at", "2018-06-13 21:59:34.019267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:59:34.022683"], ["updated_at", "2018-06-13 21:59:34.022683"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:59:34.023920"], ["updated_at", "2018-06-13 21:59:34.023920"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.034266"], ["updated_at", "2018-06-13 21:59:34.034266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:59:34.035402"], ["updated_at", "2018-06-13 21:59:34.035402"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.038921"], ["updated_at", "2018-06-13 21:59:34.038921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.039931"], ["updated_at", "2018-06-13 21:59:34.039931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.043220"], ["updated_at", "2018-06-13 21:59:34.043220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.047752"], ["updated_at", "2018-06-13 21:59:34.047752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.050327"], ["updated_at", "2018-06-13 21:59:34.050327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.057000"], ["updated_at", "2018-06-13 21:59:34.057000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.058740"], ["updated_at", "2018-06-13 21:59:34.058740"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.061365"], ["updated_at", "2018-06-13 21:59:34.061365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.064432"], ["updated_at", "2018-06-13 21:59:34.064432"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.067134"], ["updated_at", "2018-06-13 21:59:34.067134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.072487"], ["updated_at", "2018-06-13 21:59:34.072487"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.073897"], ["updated_at", "2018-06-13 21:59:34.073897"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.075309"], ["updated_at", "2018-06-13 21:59:34.075309"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.102882"], ["updated_at", "2018-06-13 21:59:34.102882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.104722"], ["updated_at", "2018-06-13 21:59:34.104722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.108104"], ["updated_at", "2018-06-13 21:59:34.108104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.113573"], ["updated_at", "2018-06-13 21:59:34.113573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.118703"], ["updated_at", "2018-06-13 21:59:34.118703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.119850"], ["updated_at", "2018-06-13 21:59:34.119850"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.123354"], ["updated_at", "2018-06-13 21:59:34.123354"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:59:34.131580"], ["updated_at", "2018-06-13 21:59:34.131580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:59:34.132981"], ["updated_at", "2018-06-13 21:59:34.132981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.134255"], ["updated_at", "2018-06-13 21:59:34.134255"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.137540"], ["updated_at", "2018-06-13 21:59:34.137540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.138936"], ["updated_at", "2018-06-13 21:59:34.138936"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.143091"], ["updated_at", "2018-06-13 21:59:34.143091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.144401"], ["updated_at", "2018-06-13 21:59:34.144401"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.147916"], ["updated_at", "2018-06-13 21:59:34.147916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.148978"], ["updated_at", "2018-06-13 21:59:34.148978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:59:34.161911"], ["updated_at", "2018-06-13 21:59:34.161911"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:59:34.163114"], ["updated_at", "2018-06-13 21:59:34.163114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:59:34.165324"], ["updated_at", "2018-06-13 21:59:34.165324"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:59:34.166388"], ["updated_at", "2018-06-13 21:59:34.166388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.171090"], ["updated_at", "2018-06-13 21:59:34.171090"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:59:34.182109"], ["updated_at", "2018-06-13 21:59:34.182109"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 21:59:34.184924"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:59:34.187271"], ["updated_at", "2018-06-13 21:59:34.187271"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:59:34.189157"], ["updated_at", "2018-06-13 21:59:34.189157"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.195610"], ["updated_at", "2018-06-13 21:59:34.195610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.208911"], ["updated_at", "2018-06-13 21:59:34.208911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.210264"], ["updated_at", "2018-06-13 21:59:34.210264"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:59:34.218574"], ["updated_at", "2018-06-13 21:59:34.218574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:59:34.227543"], ["updated_at", "2018-06-13 21:59:34.227543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:59:34.243262"], ["updated_at", "2018-06-13 21:59:34.243262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.246530"], ["updated_at", "2018-06-13 21:59:34.246530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.251410"], ["updated_at", "2018-06-13 21:59:34.251410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.252422"], ["updated_at", "2018-06-13 21:59:34.252422"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.256491"], ["updated_at", "2018-06-13 21:59:34.256491"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.264022"], ["updated_at", "2018-06-13 21:59:34.264022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.267175"], ["updated_at", "2018-06-13 21:59:34.267175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.273484"], ["updated_at", "2018-06-13 21:59:34.273484"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.284155"], ["updated_at", "2018-06-13 21:59:34.284155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.294925"], ["updated_at", "2018-06-13 21:59:34.294925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.301813"], ["updated_at", "2018-06-13 21:59:34.301813"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.303164"], ["updated_at", "2018-06-13 21:59:34.303164"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:59:34.379685"], ["updated_at", "2018-06-13 21:59:34.379685"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.383787"], ["updated_at", "2018-06-13 21:59:34.383787"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.392846"], ["updated_at", "2018-06-13 21:59:34.392846"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.397284"], ["updated_at", "2018-06-13 21:59:34.397284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:59:34.431569"], ["updated_at", "2018-06-13 21:59:34.431569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:59:34.433073"], ["updated_at", "2018-06-13 21:59:34.433073"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:34.487683"], ["updated_at", "2018-06-13 21:59:34.487683"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)  (0.9ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:59:56.531694"], ["updated_at", "2018-06-13 21:59:56.531694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.543989"], ["updated_at", "2018-06-13 21:59:56.543989"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.545324"], ["updated_at", "2018-06-13 21:59:56.545324"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.549424"], ["updated_at", "2018-06-13 21:59:56.549424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.5ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.581151"], ["updated_at", "2018-06-13 21:59:56.581151"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.582556"], ["updated_at", "2018-06-13 21:59:56.582556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.595064"], ["updated_at", "2018-06-13 21:59:56.595064"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.606146"], ["updated_at", "2018-06-13 21:59:56.606146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.620897"], ["updated_at", "2018-06-13 21:59:56.620897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.622764"], ["updated_at", "2018-06-13 21:59:56.622764"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.641435"], ["updated_at", "2018-06-13 21:59:56.641435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.642793"], ["updated_at", "2018-06-13 21:59:56.642793"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.646618"], ["updated_at", "2018-06-13 21:59:56.646618"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.648797"], ["updated_at", "2018-06-13 21:59:56.648797"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.653403"], ["updated_at", "2018-06-13 21:59:56.653403"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.660522"], ["updated_at", "2018-06-13 21:59:56.660522"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.662630"], ["updated_at", "2018-06-13 21:59:56.662630"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:59:56.673716"], ["updated_at", "2018-06-13 21:59:56.673716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:59:56.675521"], ["updated_at", "2018-06-13 21:59:56.675521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:59:56.678675"], ["updated_at", "2018-06-13 21:59:56.678675"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:59:56.680894"], ["updated_at", "2018-06-13 21:59:56.680894"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.3ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.696047"], ["updated_at", "2018-06-13 21:59:56.696047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.698319"], ["updated_at", "2018-06-13 21:59:56.698319"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.704230"], ["updated_at", "2018-06-13 21:59:56.704230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.706052"], ["updated_at", "2018-06-13 21:59:56.706052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.735489"], ["updated_at", "2018-06-13 21:59:56.735489"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.778322"], ["updated_at", "2018-06-13 21:59:56.778322"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 21:59:56.780045"], ["updated_at", "2018-06-13 21:59:56.780045"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.785456"], ["updated_at", "2018-06-13 21:59:56.785456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.786784"], ["updated_at", "2018-06-13 21:59:56.786784"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 21:59:56.791648"], ["updated_at", "2018-06-13 21:59:56.791648"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 21:59:56.792933"], ["updated_at", "2018-06-13 21:59:56.792933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 21:59:56.795895"], ["updated_at", "2018-06-13 21:59:56.795895"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 21:59:56.797937"], ["updated_at", "2018-06-13 21:59:56.797937"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.803660"], ["updated_at", "2018-06-13 21:59:56.803660"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.807095"], ["updated_at", "2018-06-13 21:59:56.807095"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.808747"], ["updated_at", "2018-06-13 21:59:56.808747"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 21:59:56.818190"], ["updated_at", "2018-06-13 21:59:56.818190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 21:59:56.821850"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 21:59:56.824333"], ["updated_at", "2018-06-13 21:59:56.824333"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 21:59:56.826209"], ["updated_at", "2018-06-13 21:59:56.826209"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.833594"], ["updated_at", "2018-06-13 21:59:56.833594"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.835105"], ["updated_at", "2018-06-13 21:59:56.835105"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.871724"], ["updated_at", "2018-06-13 21:59:56.871724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.873044"], ["updated_at", "2018-06-13 21:59:56.873044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.881944"], ["updated_at", "2018-06-13 21:59:56.881944"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.883546"], ["updated_at", "2018-06-13 21:59:56.883546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.884894"], ["updated_at", "2018-06-13 21:59:56.884894"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.888959"], ["updated_at", "2018-06-13 21:59:56.888959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.890642"], ["updated_at", "2018-06-13 21:59:56.890642"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.892573"], ["updated_at", "2018-06-13 21:59:56.892573"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 21:59:56.897759"], ["updated_at", "2018-06-13 21:59:56.897759"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 21:59:56.902683"], ["updated_at", "2018-06-13 21:59:56.902683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.918861"], ["updated_at", "2018-06-13 21:59:56.918861"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.928904"], ["updated_at", "2018-06-13 21:59:56.928904"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.933819"], ["updated_at", "2018-06-13 21:59:56.933819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.962011"], ["updated_at", "2018-06-13 21:59:56.962011"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.963643"], ["updated_at", "2018-06-13 21:59:56.963643"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.966295"], ["updated_at", "2018-06-13 21:59:56.966295"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.969379"], ["updated_at", "2018-06-13 21:59:56.969379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.972735"], ["updated_at", "2018-06-13 21:59:56.972735"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.978614"], ["updated_at", "2018-06-13 21:59:56.978614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.987716"], ["updated_at", "2018-06-13 21:59:56.987716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.990723"], ["updated_at", "2018-06-13 21:59:56.990723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:56.996741"], ["updated_at", "2018-06-13 21:59:56.996741"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.004781"], ["updated_at", "2018-06-13 21:59:57.004781"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.008650"], ["updated_at", "2018-06-13 21:59:57.008650"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.014489"], ["updated_at", "2018-06-13 21:59:57.014489"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.016247"], ["updated_at", "2018-06-13 21:59:57.016247"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.019735"], ["updated_at", "2018-06-13 21:59:57.019735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:59:57.026246"], ["updated_at", "2018-06-13 21:59:57.026246"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 21:59:57.027521"], ["updated_at", "2018-06-13 21:59:57.027521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.028764"], ["updated_at", "2018-06-13 21:59:57.028764"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.032265"], ["updated_at", "2018-06-13 21:59:57.032265"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.038179"], ["updated_at", "2018-06-13 21:59:57.038179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 21:59:57.049018"], ["updated_at", "2018-06-13 21:59:57.049018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.061576"], ["updated_at", "2018-06-13 21:59:57.061576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 21:59:57.068557"], ["updated_at", "2018-06-13 21:59:57.068557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.072146"], ["updated_at", "2018-06-13 21:59:57.072146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.4ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.163484"], ["updated_at", "2018-06-13 21:59:57.163484"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.173848"], ["updated_at", "2018-06-13 21:59:57.173848"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.178628"], ["updated_at", "2018-06-13 21:59:57.178628"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 21:59:57.206449"], ["updated_at", "2018-06-13 21:59:57.206449"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 2], ["LIMIT", 1]] SQL (0.2ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 21:59:57.250465"], ["updated_at", "2018-06-13 21:59:57.250465"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 21:59:57.259058"], ["updated_at", "2018-06-13 21:59:57.259058"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 21:59:57.260491"], ["updated_at", "2018-06-13 21:59:57.260491"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs" -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.2ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) SQL (0.9ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:00:05.812254"], ["updated_at", "2018-06-13 22:00:05.812254"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.838793"], ["updated_at", "2018-06-13 22:00:05.838793"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.854900"], ["updated_at", "2018-06-13 22:00:05.854900"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.861956"], ["updated_at", "2018-06-13 22:00:05.861956"]]  (0.3ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.901987"], ["updated_at", "2018-06-13 22:00:05.901987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.903300"], ["updated_at", "2018-06-13 22:00:05.903300"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.906848"], ["updated_at", "2018-06-13 22:00:05.906848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.912192"], ["updated_at", "2018-06-13 22:00:05.912192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.913279"], ["updated_at", "2018-06-13 22:00:05.913279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.922800"], ["updated_at", "2018-06-13 22:00:05.922800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.924297"], ["updated_at", "2018-06-13 22:00:05.924297"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.927754"], ["updated_at", "2018-06-13 22:00:05.927754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.931032"], ["updated_at", "2018-06-13 22:00:05.931032"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.936608"], ["updated_at", "2018-06-13 22:00:05.936608"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.945975"], ["updated_at", "2018-06-13 22:00:05.945975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.947155"], ["updated_at", "2018-06-13 22:00:05.947155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.948239"], ["updated_at", "2018-06-13 22:00:05.948239"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.955723"], ["updated_at", "2018-06-13 22:00:05.955723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.957045"], ["updated_at", "2018-06-13 22:00:05.957045"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.967501"], ["updated_at", "2018-06-13 22:00:05.967501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.968938"], ["updated_at", "2018-06-13 22:00:05.968938"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.976353"], ["updated_at", "2018-06-13 22:00:05.976353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:00:05.977769"], ["updated_at", "2018-06-13 22:00:05.977769"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.981253"], ["updated_at", "2018-06-13 22:00:05.981253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:05.982332"], ["updated_at", "2018-06-13 22:00:05.982332"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:00:05.998134"], ["updated_at", "2018-06-13 22:00:05.998134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:00:05.999319"], ["updated_at", "2018-06-13 22:00:05.999319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.000785"], ["updated_at", "2018-06-13 22:00:06.000785"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.004865"], ["updated_at", "2018-06-13 22:00:06.004865"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.006590"], ["updated_at", "2018-06-13 22:00:06.006590"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.009761"], ["updated_at", "2018-06-13 22:00:06.009761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.014719"], ["updated_at", "2018-06-13 22:00:06.014719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.015738"], ["updated_at", "2018-06-13 22:00:06.015738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.019332"], ["updated_at", "2018-06-13 22:00:06.019332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.025401"], ["updated_at", "2018-06-13 22:00:06.025401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.026739"], ["updated_at", "2018-06-13 22:00:06.026739"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.030497"], ["updated_at", "2018-06-13 22:00:06.030497"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.040794"], ["updated_at", "2018-06-13 22:00:06.040794"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.043975"], ["updated_at", "2018-06-13 22:00:06.043975"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.2ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.063964"], ["updated_at", "2018-06-13 22:00:06.063964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.065224"], ["updated_at", "2018-06-13 22:00:06.065224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.066751"], ["updated_at", "2018-06-13 22:00:06.066751"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:00:06.071493"], ["updated_at", "2018-06-13 22:00:06.071493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:00:06.072991"], ["updated_at", "2018-06-13 22:00:06.072991"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:00:06.075674"], ["updated_at", "2018-06-13 22:00:06.075674"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:00:06.077061"], ["updated_at", "2018-06-13 22:00:06.077061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.082579"], ["updated_at", "2018-06-13 22:00:06.082579"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.084672"], ["updated_at", "2018-06-13 22:00:06.084672"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.088288"], ["updated_at", "2018-06-13 22:00:06.088288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.091877"], ["updated_at", "2018-06-13 22:00:06.091877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.094538"], ["updated_at", "2018-06-13 22:00:06.094538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.099018"], ["updated_at", "2018-06-13 22:00:06.099018"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.100358"], ["updated_at", "2018-06-13 22:00:06.100358"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:00:06.121385"], ["updated_at", "2018-06-13 22:00:06.121385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:00:06.137682"], ["updated_at", "2018-06-13 22:00:06.137682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.141507"], ["updated_at", "2018-06-13 22:00:06.141507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.146773"], ["updated_at", "2018-06-13 22:00:06.146773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.147862"], ["updated_at", "2018-06-13 22:00:06.147862"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.152087"], ["updated_at", "2018-06-13 22:00:06.152087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:00:06.160453"], ["updated_at", "2018-06-13 22:00:06.160453"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:00:06.161814"], ["updated_at", "2018-06-13 22:00:06.161814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:00:06.164164"], ["updated_at", "2018-06-13 22:00:06.164164"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:00:06.165483"], ["updated_at", "2018-06-13 22:00:06.165483"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:00:06.195035"], ["updated_at", "2018-06-13 22:00:06.195035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 22:00:06.196757"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:00:06.198606"], ["updated_at", "2018-06-13 22:00:06.198606"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:00:06.200014"], ["updated_at", "2018-06-13 22:00:06.200014"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.206354"], ["updated_at", "2018-06-13 22:00:06.206354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.214404"], ["updated_at", "2018-06-13 22:00:06.214404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.226239"], ["updated_at", "2018-06-13 22:00:06.226239"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.235542"], ["updated_at", "2018-06-13 22:00:06.235542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.237015"], ["updated_at", "2018-06-13 22:00:06.237015"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:00:06.240664"], ["updated_at", "2018-06-13 22:00:06.240664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:00:06.244458"], ["updated_at", "2018-06-13 22:00:06.244458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.257801"], ["updated_at", "2018-06-13 22:00:06.257801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.259032"], ["updated_at", "2018-06-13 22:00:06.259032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.265910"], ["updated_at", "2018-06-13 22:00:06.265910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.274220"], ["updated_at", "2018-06-13 22:00:06.274220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.281093"], ["updated_at", "2018-06-13 22:00:06.281093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 2]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.384580"], ["updated_at", "2018-06-13 22:00:06.384580"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.394862"], ["updated_at", "2018-06-13 22:00:06.394862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.398547"], ["updated_at", "2018-06-13 22:00:06.398547"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:00:06.428053"], ["updated_at", "2018-06-13 22:00:06.428053"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:00:06.429274"], ["updated_at", "2018-06-13 22:00:06.429274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:00:06.455728"], ["updated_at", "2018-06-13 22:00:06.455728"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:06.496441"], ["updated_at", "2018-06-13 22:00:06.496441"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:16.813639"], ["updated_at", "2018-06-13 22:00:16.813639"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:16.853105"], ["updated_at", "2018-06-13 22:00:16.853105"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:16.859178"], ["updated_at", "2018-06-13 22:00:16.859178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:16.869483"], ["updated_at", "2018-06-13 22:00:16.869483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:00:16.880217"], ["updated_at", "2018-06-13 22:00:16.880217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:00:16.881843"], ["updated_at", "2018-06-13 22:00:16.881843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:00:16.927630"], ["updated_at", "2018-06-13 22:00:16.927630"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.281782"], ["updated_at", "2018-06-13 22:00:17.281782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.283300"], ["updated_at", "2018-06-13 22:00:17.283300"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.286905"], ["updated_at", "2018-06-13 22:00:17.286905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.288189"], ["updated_at", "2018-06-13 22:00:17.288189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 2)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.302559"], ["updated_at", "2018-06-13 22:00:17.302559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.303762"], ["updated_at", "2018-06-13 22:00:17.303762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.305142"], ["updated_at", "2018-06-13 22:00:17.305142"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.308902"], ["updated_at", "2018-06-13 22:00:17.308902"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.315769"], ["updated_at", "2018-06-13 22:00:17.315769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.316812"], ["updated_at", "2018-06-13 22:00:17.316812"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.325931"], ["updated_at", "2018-06-13 22:00:17.325931"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.327142"], ["updated_at", "2018-06-13 22:00:17.327142"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.330658"], ["updated_at", "2018-06-13 22:00:17.330658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.337843"], ["updated_at", "2018-06-13 22:00:17.337843"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.339552"], ["updated_at", "2018-06-13 22:00:17.339552"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.340900"], ["updated_at", "2018-06-13 22:00:17.340900"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.345546"], ["updated_at", "2018-06-13 22:00:17.345546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.353871"], ["updated_at", "2018-06-13 22:00:17.353871"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.362420"], ["updated_at", "2018-06-13 22:00:17.362420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.370619"], ["updated_at", "2018-06-13 22:00:17.370619"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:00:17.372569"], ["updated_at", "2018-06-13 22:00:17.372569"]]  (0.2ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.377264"], ["updated_at", "2018-06-13 22:00:17.377264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.382928"], ["updated_at", "2018-06-13 22:00:17.382928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.384060"], ["updated_at", "2018-06-13 22:00:17.384060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.400016"], ["updated_at", "2018-06-13 22:00:17.400016"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:00:17.402497"], ["updated_at", "2018-06-13 22:00:17.402497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:00:17.403658"], ["updated_at", "2018-06-13 22:00:17.403658"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.405011"], ["updated_at", "2018-06-13 22:00:17.405011"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.408543"], ["updated_at", "2018-06-13 22:00:17.408543"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.409660"], ["updated_at", "2018-06-13 22:00:17.409660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.412673"], ["updated_at", "2018-06-13 22:00:17.412673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.417758"], ["updated_at", "2018-06-13 22:00:17.417758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.418845"], ["updated_at", "2018-06-13 22:00:17.418845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.449455"], ["updated_at", "2018-06-13 22:00:17.449455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.450531"], ["updated_at", "2018-06-13 22:00:17.450531"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.452970"], ["updated_at", "2018-06-13 22:00:17.452970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.454082"], ["updated_at", "2018-06-13 22:00:17.454082"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.457813"], ["updated_at", "2018-06-13 22:00:17.457813"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.462293"], ["updated_at", "2018-06-13 22:00:17.462293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.465310"], ["updated_at", "2018-06-13 22:00:17.465310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:00:17.475497"], ["updated_at", "2018-06-13 22:00:17.475497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.481364"], ["updated_at", "2018-06-13 22:00:17.481364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.482438"], ["updated_at", "2018-06-13 22:00:17.482438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.493371"], ["updated_at", "2018-06-13 22:00:17.493371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.494601"], ["updated_at", "2018-06-13 22:00:17.494601"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:00:17.522898"], ["updated_at", "2018-06-13 22:00:17.522898"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.536043"], ["updated_at", "2018-06-13 22:00:17.536043"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.537155"], ["updated_at", "2018-06-13 22:00:17.537155"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:00:17.545811"], ["updated_at", "2018-06-13 22:00:17.545811"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:00:17.547451"], ["updated_at", "2018-06-13 22:00:17.547451"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:00:17.549802"], ["updated_at", "2018-06-13 22:00:17.549802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:00:17.550900"], ["updated_at", "2018-06-13 22:00:17.550900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:00:17.557943"], ["updated_at", "2018-06-13 22:00:17.557943"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:00:17.559533"], ["updated_at", "2018-06-13 22:00:17.559533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:00:17.562291"], ["updated_at", "2018-06-13 22:00:17.562291"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:00:17.563488"], ["updated_at", "2018-06-13 22:00:17.563488"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:00:17.573272"], ["updated_at", "2018-06-13 22:00:17.573272"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:00:17.576972"], ["updated_at", "2018-06-13 22:00:17.576972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.591461"], ["updated_at", "2018-06-13 22:00:17.591461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.598418"], ["updated_at", "2018-06-13 22:00:17.598418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.602971"], ["updated_at", "2018-06-13 22:00:17.602971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.606330"], ["updated_at", "2018-06-13 22:00:17.606330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.611706"], ["updated_at", "2018-06-13 22:00:17.611706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.618023"], ["updated_at", "2018-06-13 22:00:17.618023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.623976"], ["updated_at", "2018-06-13 22:00:17.623976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.625496"], ["updated_at", "2018-06-13 22:00:17.625496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.628863"], ["updated_at", "2018-06-13 22:00:17.628863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:00:17.633907"], ["updated_at", "2018-06-13 22:00:17.633907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.636745"], ["updated_at", "2018-06-13 22:00:17.636745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.643297"], ["updated_at", "2018-06-13 22:00:17.643297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:00:17.651156"], ["updated_at", "2018-06-13 22:00:17.651156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 22:00:17.653073"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:00:17.654335"], ["updated_at", "2018-06-13 22:00:17.654335"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:00:17.656214"], ["updated_at", "2018-06-13 22:00:17.656214"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.665225"], ["updated_at", "2018-06-13 22:00:17.665225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.668428"], ["updated_at", "2018-06-13 22:00:17.668428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.673253"], ["updated_at", "2018-06-13 22:00:17.673253"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.674947"], ["updated_at", "2018-06-13 22:00:17.674947"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:17.678253"], ["updated_at", "2018-06-13 22:00:17.678253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.044950"], ["updated_at", "2018-06-13 22:00:31.044950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.055202"], ["updated_at", "2018-06-13 22:00:31.055202"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:00:31.115778"], ["updated_at", "2018-06-13 22:00:31.115778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:00:31.117524"], ["updated_at", "2018-06-13 22:00:31.117524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.119033"], ["updated_at", "2018-06-13 22:00:31.119033"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.124416"], ["updated_at", "2018-06-13 22:00:31.124416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.163574"], ["updated_at", "2018-06-13 22:00:31.163574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.173941"], ["updated_at", "2018-06-13 22:00:31.173941"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.185591"], ["updated_at", "2018-06-13 22:00:31.185591"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.195512"], ["updated_at", "2018-06-13 22:00:31.195512"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.197743"], ["updated_at", "2018-06-13 22:00:31.197743"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.199778"], ["updated_at", "2018-06-13 22:00:31.199778"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.205168"], ["updated_at", "2018-06-13 22:00:31.205168"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.206841"], ["updated_at", "2018-06-13 22:00:31.206841"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.210164"], ["updated_at", "2018-06-13 22:00:31.210164"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.221549"], ["updated_at", "2018-06-13 22:00:31.221549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.223259"], ["updated_at", "2018-06-13 22:00:31.223259"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.228471"], ["updated_at", "2018-06-13 22:00:31.228471"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.230725"], ["updated_at", "2018-06-13 22:00:31.230725"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.246459"], ["updated_at", "2018-06-13 22:00:31.246459"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.248497"], ["updated_at", "2018-06-13 22:00:31.248497"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.254125"], ["updated_at", "2018-06-13 22:00:31.254125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.255699"], ["updated_at", "2018-06-13 22:00:31.255699"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.259777"], ["updated_at", "2018-06-13 22:00:31.259777"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.269244"], ["updated_at", "2018-06-13 22:00:31.269244"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.270743"], ["updated_at", "2018-06-13 22:00:31.270743"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.274581"], ["updated_at", "2018-06-13 22:00:31.274581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.284119"], ["updated_at", "2018-06-13 22:00:31.284119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.303170"], ["updated_at", "2018-06-13 22:00:31.303170"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.316597"], ["updated_at", "2018-06-13 22:00:31.316597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.318101"], ["updated_at", "2018-06-13 22:00:31.318101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.319643"], ["updated_at", "2018-06-13 22:00:31.319643"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.324060"], ["updated_at", "2018-06-13 22:00:31.324060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.325662"], ["updated_at", "2018-06-13 22:00:31.325662"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:00:31.331616"], ["updated_at", "2018-06-13 22:00:31.331616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:00:31.333959"], ["updated_at", "2018-06-13 22:00:31.333959"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:00:31.337965"], ["updated_at", "2018-06-13 22:00:31.337965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:00:31.339489"], ["updated_at", "2018-06-13 22:00:31.339489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:00:31.355238"], ["updated_at", "2018-06-13 22:00:31.355238"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.359068"], ["updated_at", "2018-06-13 22:00:31.359068"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.2ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:00:31.378540"], ["updated_at", "2018-06-13 22:00:31.378540"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:00:31.384013"], ["updated_at", "2018-06-13 22:00:31.384013"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:00:31.407853"], ["updated_at", "2018-06-13 22:00:31.407853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 22:00:31.411162"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:00:31.413850"], ["updated_at", "2018-06-13 22:00:31.413850"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:00:31.415790"], ["updated_at", "2018-06-13 22:00:31.415790"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.422949"], ["updated_at", "2018-06-13 22:00:31.422949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.424471"], ["updated_at", "2018-06-13 22:00:31.424471"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:00:31.434318"], ["updated_at", "2018-06-13 22:00:31.434318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.441321"], ["updated_at", "2018-06-13 22:00:31.441321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.446114"], ["updated_at", "2018-06-13 22:00:31.446114"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.463408"], ["updated_at", "2018-06-13 22:00:31.463408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.471125"], ["updated_at", "2018-06-13 22:00:31.471125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.472367"], ["updated_at", "2018-06-13 22:00:31.472367"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:00:31.477214"], ["updated_at", "2018-06-13 22:00:31.477214"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.494409"], ["updated_at", "2018-06-13 22:00:31.494409"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.499228"], ["updated_at", "2018-06-13 22:00:31.499228"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.504126"], ["updated_at", "2018-06-13 22:00:31.504126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:00:31.505340"], ["updated_at", "2018-06-13 22:00:31.505340"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:00:31.508755"], ["updated_at", "2018-06-13 22:00:31.508755"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:00:31.509886"], ["updated_at", "2018-06-13 22:00:31.509886"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:00:31.513579"], ["updated_at", "2018-06-13 22:00:31.513579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:00:31.515308"], ["updated_at", "2018-06-13 22:00:31.515308"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.521790"], ["updated_at", "2018-06-13 22:00:31.521790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.523034"], ["updated_at", "2018-06-13 22:00:31.523034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.531533"], ["updated_at", "2018-06-13 22:00:31.531533"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.533371"], ["updated_at", "2018-06-13 22:00:31.533371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.549401"], ["updated_at", "2018-06-13 22:00:31.549401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.552572"], ["updated_at", "2018-06-13 22:00:31.552572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.556692"], ["updated_at", "2018-06-13 22:00:31.556692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.563468"], ["updated_at", "2018-06-13 22:00:31.563468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.571687"], ["updated_at", "2018-06-13 22:00:31.571687"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.593689"], ["updated_at", "2018-06-13 22:00:31.593689"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.595678"], ["updated_at", "2018-06-13 22:00:31.595678"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.609142"], ["updated_at", "2018-06-13 22:00:31.609142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.610249"], ["updated_at", "2018-06-13 22:00:31.610249"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.614111"], ["updated_at", "2018-06-13 22:00:31.614111"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.617622"], ["updated_at", "2018-06-13 22:00:31.617622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.621056"], ["updated_at", "2018-06-13 22:00:31.621056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:00:31.726095"], ["updated_at", "2018-06-13 22:00:31.726095"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.745433"], ["updated_at", "2018-06-13 22:00:31.745433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.754570"], ["updated_at", "2018-06-13 22:00:31.754570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.758829"], ["updated_at", "2018-06-13 22:00:31.758829"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:00:31.773434"], ["updated_at", "2018-06-13 22:00:31.773434"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:00:31.774722"], ["updated_at", "2018-06-13 22:00:31.774722"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:31.795538"], ["updated_at", "2018-06-13 22:00:31.795538"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access ------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.7ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) SQL (0.9ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:00:52.235806"], ["updated_at", "2018-06-13 22:00:52.235806"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:00:52.238883"], ["updated_at", "2018-06-13 22:00:52.238883"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:00:52.367320"], ["updated_at", "2018-06-13 22:00:52.367320"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.5ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.403000"], ["updated_at", "2018-06-13 22:00:52.403000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.413924"], ["updated_at", "2018-06-13 22:00:52.413924"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.420454"], ["updated_at", "2018-06-13 22:00:52.420454"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.432456"], ["updated_at", "2018-06-13 22:00:52.432456"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.532017"], ["updated_at", "2018-06-13 22:00:52.532017"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.533474"], ["updated_at", "2018-06-13 22:00:52.533474"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:00:52.546121"], ["updated_at", "2018-06-13 22:00:52.546121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:00:52.547936"], ["updated_at", "2018-06-13 22:00:52.547936"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:00:52.551164"], ["updated_at", "2018-06-13 22:00:52.551164"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:00:52.552897"], ["updated_at", "2018-06-13 22:00:52.552897"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:00:52.567193"], ["updated_at", "2018-06-13 22:00:52.567193"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:00:52.569242"], ["updated_at", "2018-06-13 22:00:52.569242"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.571224"], ["updated_at", "2018-06-13 22:00:52.571224"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.576074"], ["updated_at", "2018-06-13 22:00:52.576074"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.578075"], ["updated_at", "2018-06-13 22:00:52.578075"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.582446"], ["updated_at", "2018-06-13 22:00:52.582446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.583858"], ["updated_at", "2018-06-13 22:00:52.583858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.603934"], ["updated_at", "2018-06-13 22:00:52.603934"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.605862"], ["updated_at", "2018-06-13 22:00:52.605862"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.610177"], ["updated_at", "2018-06-13 22:00:52.610177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.616966"], ["updated_at", "2018-06-13 22:00:52.616966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.618419"], ["updated_at", "2018-06-13 22:00:52.618419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.623132"], ["updated_at", "2018-06-13 22:00:52.623132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.634254"], ["updated_at", "2018-06-13 22:00:52.634254"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.635848"], ["updated_at", "2018-06-13 22:00:52.635848"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.637390"], ["updated_at", "2018-06-13 22:00:52.637390"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.660892"], ["updated_at", "2018-06-13 22:00:52.660892"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.662386"], ["updated_at", "2018-06-13 22:00:52.662386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.675193"], ["updated_at", "2018-06-13 22:00:52.675193"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:00:52.679397"], ["updated_at", "2018-06-13 22:00:52.679397"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:00:52.681344"], ["updated_at", "2018-06-13 22:00:52.681344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:00:52.684187"], ["updated_at", "2018-06-13 22:00:52.684187"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:00:52.685656"], ["updated_at", "2018-06-13 22:00:52.685656"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.692528"], ["updated_at", "2018-06-13 22:00:52.692528"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:00:52.694934"], ["updated_at", "2018-06-13 22:00:52.694934"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:00:52.699933"], ["updated_at", "2018-06-13 22:00:52.699933"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:00:52.704948"], ["updated_at", "2018-06-13 22:00:52.704948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.726536"], ["updated_at", "2018-06-13 22:00:52.726536"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.731003"], ["updated_at", "2018-06-13 22:00:52.731003"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:00:52.744598"], ["updated_at", "2018-06-13 22:00:52.744598"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.783400"], ["updated_at", "2018-06-13 22:00:52.783400"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.792826"], ["updated_at", "2018-06-13 22:00:52.792826"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.794977"], ["updated_at", "2018-06-13 22:00:52.794977"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.800423"], ["updated_at", "2018-06-13 22:00:52.800423"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.813837"], ["updated_at", "2018-06-13 22:00:52.813837"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.6ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:00:52.839847"], ["updated_at", "2018-06-13 22:00:52.839847"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.9ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.868225"], ["updated_at", "2018-06-13 22:00:52.868225"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.870510"], ["updated_at", "2018-06-13 22:00:52.870510"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.872654"], ["updated_at", "2018-06-13 22:00:52.872654"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:00:52.879132"], ["updated_at", "2018-06-13 22:00:52.879132"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.883016"], ["updated_at", "2018-06-13 22:00:52.883016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.890762"], ["updated_at", "2018-06-13 22:00:52.890762"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.892791"], ["updated_at", "2018-06-13 22:00:52.892791"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.913798"], ["updated_at", "2018-06-13 22:00:52.913798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.921510"], ["updated_at", "2018-06-13 22:00:52.921510"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.925834"], ["updated_at", "2018-06-13 22:00:52.925834"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.930940"], ["updated_at", "2018-06-13 22:00:52.930940"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.944950"], ["updated_at", "2018-06-13 22:00:52.944950"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.958235"], ["updated_at", "2018-06-13 22:00:52.958235"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.970346"], ["updated_at", "2018-06-13 22:00:52.970346"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.971930"], ["updated_at", "2018-06-13 22:00:52.971930"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.978464"], ["updated_at", "2018-06-13 22:00:52.978464"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.980349"], ["updated_at", "2018-06-13 22:00:52.980349"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.983890"], ["updated_at", "2018-06-13 22:00:52.983890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.993523"], ["updated_at", "2018-06-13 22:00:52.993523"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:52.999714"], ["updated_at", "2018-06-13 22:00:52.999714"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.008217"], ["updated_at", "2018-06-13 22:00:53.008217"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.010121"], ["updated_at", "2018-06-13 22:00:53.010121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.023563"], ["updated_at", "2018-06-13 22:00:53.023563"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.035233"], ["updated_at", "2018-06-13 22:00:53.035233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.037108"], ["updated_at", "2018-06-13 22:00:53.037108"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.041738"], ["updated_at", "2018-06-13 22:00:53.041738"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:00:53.055119"], ["updated_at", "2018-06-13 22:00:53.055119"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 22:00:53.058256"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:00:53.060839"], ["updated_at", "2018-06-13 22:00:53.060839"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:00:53.062623"], ["updated_at", "2018-06-13 22:00:53.062623"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.077431"], ["updated_at", "2018-06-13 22:00:53.077431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.087569"], ["updated_at", "2018-06-13 22:00:53.087569"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.090028"], ["updated_at", "2018-06-13 22:00:53.090028"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.095594"], ["updated_at", "2018-06-13 22:00:53.095594"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.099971"], ["updated_at", "2018-06-13 22:00:53.099971"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.110251"], ["updated_at", "2018-06-13 22:00:53.110251"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:00:53.115410"], ["updated_at", "2018-06-13 22:00:53.115410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) SQL (1.4ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:01:09.057222"], ["updated_at", "2018-06-13 22:01:09.057222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:01:09.059152"], ["updated_at", "2018-06-13 22:01:09.059152"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.3ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.152341"], ["updated_at", "2018-06-13 22:01:09.152341"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.167423"], ["updated_at", "2018-06-13 22:01:09.167423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.172290"], ["updated_at", "2018-06-13 22:01:09.172290"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:01:09.213760"], ["updated_at", "2018-06-13 22:01:09.213760"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 9], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.241944"], ["updated_at", "2018-06-13 22:01:09.241944"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.4ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.418613"], ["updated_at", "2018-06-13 22:01:09.418613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.420066"], ["updated_at", "2018-06-13 22:01:09.420066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.421273"], ["updated_at", "2018-06-13 22:01:09.421273"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.430976"], ["updated_at", "2018-06-13 22:01:09.430976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.439705"], ["updated_at", "2018-06-13 22:01:09.439705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:01:09.455750"], ["updated_at", "2018-06-13 22:01:09.455750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 22:01:09.459209"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:01:09.461888"], ["updated_at", "2018-06-13 22:01:09.461888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:01:09.463716"], ["updated_at", "2018-06-13 22:01:09.463716"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.468710"], ["updated_at", "2018-06-13 22:01:09.468710"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.470991"], ["updated_at", "2018-06-13 22:01:09.470991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.471995"], ["updated_at", "2018-06-13 22:01:09.471995"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.488412"], ["updated_at", "2018-06-13 22:01:09.488412"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.491587"], ["updated_at", "2018-06-13 22:01:09.491587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.495563"], ["updated_at", "2018-06-13 22:01:09.495563"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.500595"], ["updated_at", "2018-06-13 22:01:09.500595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:01:09.501764"], ["updated_at", "2018-06-13 22:01:09.501764"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.509779"], ["updated_at", "2018-06-13 22:01:09.509779"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.511770"], ["updated_at", "2018-06-13 22:01:09.511770"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:01:09.519732"], ["updated_at", "2018-06-13 22:01:09.519732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:01:09.520889"], ["updated_at", "2018-06-13 22:01:09.520889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:01:09.523641"], ["updated_at", "2018-06-13 22:01:09.523641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:01:09.524738"], ["updated_at", "2018-06-13 22:01:09.524738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.531496"], ["updated_at", "2018-06-13 22:01:09.531496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.532824"], ["updated_at", "2018-06-13 22:01:09.532824"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.536454"], ["updated_at", "2018-06-13 22:01:09.536454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.564637"], ["updated_at", "2018-06-13 22:01:09.564637"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.566083"], ["updated_at", "2018-06-13 22:01:09.566083"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:01:09.569695"], ["updated_at", "2018-06-13 22:01:09.569695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:01:09.570917"], ["updated_at", "2018-06-13 22:01:09.570917"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:01:09.573442"], ["updated_at", "2018-06-13 22:01:09.573442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:01:09.574610"], ["updated_at", "2018-06-13 22:01:09.574610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:01:09.591662"], ["updated_at", "2018-06-13 22:01:09.591662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:01:09.595978"], ["updated_at", "2018-06-13 22:01:09.595978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.610162"], ["updated_at", "2018-06-13 22:01:09.610162"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.612134"], ["updated_at", "2018-06-13 22:01:09.612134"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:01:09.616495"], ["updated_at", "2018-06-13 22:01:09.616495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:01:09.617653"], ["updated_at", "2018-06-13 22:01:09.617653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.618683"], ["updated_at", "2018-06-13 22:01:09.618683"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:01:09.620974"], ["updated_at", "2018-06-13 22:01:09.620974"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.625239"], ["updated_at", "2018-06-13 22:01:09.625239"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.632870"], ["updated_at", "2018-06-13 22:01:09.632870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.654220"], ["updated_at", "2018-06-13 22:01:09.654220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.655524"], ["updated_at", "2018-06-13 22:01:09.655524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.670384"], ["updated_at", "2018-06-13 22:01:09.670384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.673847"], ["updated_at", "2018-06-13 22:01:09.673847"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:01:09.682845"], ["updated_at", "2018-06-13 22:01:09.682845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.8ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.697946"], ["updated_at", "2018-06-13 22:01:09.697946"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.699567"], ["updated_at", "2018-06-13 22:01:09.699567"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.702873"], ["updated_at", "2018-06-13 22:01:09.702873"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.708078"], ["updated_at", "2018-06-13 22:01:09.708078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.709361"], ["updated_at", "2018-06-13 22:01:09.709361"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.714140"], ["updated_at", "2018-06-13 22:01:09.714140"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.719821"], ["updated_at", "2018-06-13 22:01:09.719821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:01:09.734935"], ["updated_at", "2018-06-13 22:01:09.734935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.740807"], ["updated_at", "2018-06-13 22:01:09.740807"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.742122"], ["updated_at", "2018-06-13 22:01:09.742122"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.743566"], ["updated_at", "2018-06-13 22:01:09.743566"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.749538"], ["updated_at", "2018-06-13 22:01:09.749538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.757790"], ["updated_at", "2018-06-13 22:01:09.757790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.768416"], ["updated_at", "2018-06-13 22:01:09.768416"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.769695"], ["updated_at", "2018-06-13 22:01:09.769695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.781971"], ["updated_at", "2018-06-13 22:01:09.781971"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.788290"], ["updated_at", "2018-06-13 22:01:09.788290"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.789532"], ["updated_at", "2018-06-13 22:01:09.789532"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.792343"], ["updated_at", "2018-06-13 22:01:09.792343"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.802931"], ["updated_at", "2018-06-13 22:01:09.802931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.812876"], ["updated_at", "2018-06-13 22:01:09.812876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.819883"], ["updated_at", "2018-06-13 22:01:09.819883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.824447"], ["updated_at", "2018-06-13 22:01:09.824447"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.825560"], ["updated_at", "2018-06-13 22:01:09.825560"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.830921"], ["updated_at", "2018-06-13 22:01:09.830921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.832475"], ["updated_at", "2018-06-13 22:01:09.832475"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.835330"], ["updated_at", "2018-06-13 22:01:09.835330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.836390"], ["updated_at", "2018-06-13 22:01:09.836390"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.843492"], ["updated_at", "2018-06-13 22:01:09.843492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.847511"], ["updated_at", "2018-06-13 22:01:09.847511"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.852657"], ["updated_at", "2018-06-13 22:01:09.852657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:09.853911"], ["updated_at", "2018-06-13 22:01:09.853911"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 9ms (Views: 0.4ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.3ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.093599"], ["updated_at", "2018-06-13 22:01:56.093599"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.144445"], ["updated_at", "2018-06-13 22:01:56.144445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.145511"], ["updated_at", "2018-06-13 22:01:56.145511"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.146555"], ["updated_at", "2018-06-13 22:01:56.146555"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.150578"], ["updated_at", "2018-06-13 22:01:56.150578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.162702"], ["updated_at", "2018-06-13 22:01:56.162702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.172443"], ["updated_at", "2018-06-13 22:01:56.172443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.173458"], ["updated_at", "2018-06-13 22:01:56.173458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.185169"], ["updated_at", "2018-06-13 22:01:56.185169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.187870"], ["updated_at", "2018-06-13 22:01:56.187870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.194689"], ["updated_at", "2018-06-13 22:01:56.194689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.197577"], ["updated_at", "2018-06-13 22:01:56.197577"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.200912"], ["updated_at", "2018-06-13 22:01:56.200912"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.205301"], ["updated_at", "2018-06-13 22:01:56.205301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:01:56.211968"], ["updated_at", "2018-06-13 22:01:56.211968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.216302"], ["updated_at", "2018-06-13 22:01:56.216302"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.224101"], ["updated_at", "2018-06-13 22:01:56.224101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.227583"], ["updated_at", "2018-06-13 22:01:56.227583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.231994"], ["updated_at", "2018-06-13 22:01:56.231994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:01:56.242748"], ["updated_at", "2018-06-13 22:01:56.242748"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:01:56.243792"], ["updated_at", "2018-06-13 22:01:56.243792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:01:56.245763"], ["updated_at", "2018-06-13 22:01:56.245763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:01:56.246877"], ["updated_at", "2018-06-13 22:01:56.246877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:01:56.252341"], ["updated_at", "2018-06-13 22:01:56.252341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:01:56.253395"], ["updated_at", "2018-06-13 22:01:56.253395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:01:56.255485"], ["updated_at", "2018-06-13 22:01:56.255485"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:01:56.256522"], ["updated_at", "2018-06-13 22:01:56.256522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.265867"], ["updated_at", "2018-06-13 22:01:56.265867"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.273690"], ["updated_at", "2018-06-13 22:01:56.273690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.274815"], ["updated_at", "2018-06-13 22:01:56.274815"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.279864"], ["updated_at", "2018-06-13 22:01:56.279864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.281117"], ["updated_at", "2018-06-13 22:01:56.281117"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.284822"], ["updated_at", "2018-06-13 22:01:56.284822"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.289862"], ["updated_at", "2018-06-13 22:01:56.289862"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.290959"], ["updated_at", "2018-06-13 22:01:56.290959"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.294699"], ["updated_at", "2018-06-13 22:01:56.294699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.295818"], ["updated_at", "2018-06-13 22:01:56.295818"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.303145"], ["updated_at", "2018-06-13 22:01:56.303145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.304382"], ["updated_at", "2018-06-13 22:01:56.304382"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.307594"], ["updated_at", "2018-06-13 22:01:56.307594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.308673"], ["updated_at", "2018-06-13 22:01:56.308673"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.311715"], ["updated_at", "2018-06-13 22:01:56.311715"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.312715"], ["updated_at", "2018-06-13 22:01:56.312715"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:01:56.332838"], ["updated_at", "2018-06-13 22:01:56.332838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:01:56.334029"], ["updated_at", "2018-06-13 22:01:56.334029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.334968"], ["updated_at", "2018-06-13 22:01:56.334968"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.337175"], ["updated_at", "2018-06-13 22:01:56.337175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.338062"], ["updated_at", "2018-06-13 22:01:56.338062"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:01:56.340424"], ["updated_at", "2018-06-13 22:01:56.340424"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:01:56.343018"], ["updated_at", "2018-06-13 22:01:56.343018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:01:56.357927"], ["updated_at", "2018-06-13 22:01:56.357927"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 22:01:56.360285"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:01:56.361934"], ["updated_at", "2018-06-13 22:01:56.361934"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:01:56.362924"], ["updated_at", "2018-06-13 22:01:56.362924"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.368082"], ["updated_at", "2018-06-13 22:01:56.368082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.370982"], ["updated_at", "2018-06-13 22:01:56.370982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.376200"], ["updated_at", "2018-06-13 22:01:56.376200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.377275"], ["updated_at", "2018-06-13 22:01:56.377275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.378155"], ["updated_at", "2018-06-13 22:01:56.378155"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.381668"], ["updated_at", "2018-06-13 22:01:56.381668"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:01:56.389314"], ["updated_at", "2018-06-13 22:01:56.389314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.402219"], ["updated_at", "2018-06-13 22:01:56.402219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.403356"], ["updated_at", "2018-06-13 22:01:56.403356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.412550"], ["updated_at", "2018-06-13 22:01:56.412550"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.414077"], ["updated_at", "2018-06-13 22:01:56.414077"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.418344"], ["updated_at", "2018-06-13 22:01:56.418344"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.422913"], ["updated_at", "2018-06-13 22:01:56.422913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.427737"], ["updated_at", "2018-06-13 22:01:56.427737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.428631"], ["updated_at", "2018-06-13 22:01:56.428631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:01:56.439966"], ["updated_at", "2018-06-13 22:01:56.439966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.459503"], ["updated_at", "2018-06-13 22:01:56.459503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.460587"], ["updated_at", "2018-06-13 22:01:56.460587"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.463454"], ["updated_at", "2018-06-13 22:01:56.463454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.469367"], ["updated_at", "2018-06-13 22:01:56.469367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:01:56.470557"], ["updated_at", "2018-06-13 22:01:56.470557"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.473881"], ["updated_at", "2018-06-13 22:01:56.473881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.474873"], ["updated_at", "2018-06-13 22:01:56.474873"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.477198"], ["updated_at", "2018-06-13 22:01:56.477198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.484704"], ["updated_at", "2018-06-13 22:01:56.484704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.531960"], ["updated_at", "2018-06-13 22:01:56.531960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.548765"], ["updated_at", "2018-06-13 22:01:56.548765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.555659"], ["updated_at", "2018-06-13 22:01:56.555659"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:01:56.559217"], ["updated_at", "2018-06-13 22:01:56.559217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:01:56.567305"], ["updated_at", "2018-06-13 22:01:56.567305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:01:56.568722"], ["updated_at", "2018-06-13 22:01:56.568722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:01:56.622221"], ["updated_at", "2018-06-13 22:01:56.622221"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.405471"], ["updated_at", "2018-06-13 22:02:05.405471"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.414255"], ["updated_at", "2018-06-13 22:02:05.414255"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.422386"], ["updated_at", "2018-06-13 22:02:05.422386"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.448692"], ["updated_at", "2018-06-13 22:02:05.448692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.460299"], ["updated_at", "2018-06-13 22:02:05.460299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.461816"], ["updated_at", "2018-06-13 22:02:05.461816"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:02:05.465706"], ["updated_at", "2018-06-13 22:02:05.465706"]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:02:05.467891"], ["updated_at", "2018-06-13 22:02:05.467891"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.469807"], ["updated_at", "2018-06-13 22:02:05.469807"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.473209"], ["updated_at", "2018-06-13 22:02:05.473209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.474337"], ["updated_at", "2018-06-13 22:02:05.474337"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.489284"], ["updated_at", "2018-06-13 22:02:05.489284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.492833"], ["updated_at", "2018-06-13 22:02:05.492833"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.495690"], ["updated_at", "2018-06-13 22:02:05.495690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.500725"], ["updated_at", "2018-06-13 22:02:05.500725"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.502450"], ["updated_at", "2018-06-13 22:02:05.502450"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:02:05.507197"], ["updated_at", "2018-06-13 22:02:05.507197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:02:05.508550"], ["updated_at", "2018-06-13 22:02:05.508550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:02:05.511235"], ["updated_at", "2018-06-13 22:02:05.511235"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:02:05.512388"], ["updated_at", "2018-06-13 22:02:05.512388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.525608"], ["updated_at", "2018-06-13 22:02:05.525608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.528723"], ["updated_at", "2018-06-13 22:02:05.528723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:02:05.542659"], ["updated_at", "2018-06-13 22:02:05.542659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.549186"], ["updated_at", "2018-06-13 22:02:05.549186"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.550735"], ["updated_at", "2018-06-13 22:02:05.550735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.552416"], ["updated_at", "2018-06-13 22:02:05.552416"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:02:05.556535"], ["updated_at", "2018-06-13 22:02:05.556535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:02:05.560216"], ["updated_at", "2018-06-13 22:02:05.560216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.607160"], ["updated_at", "2018-06-13 22:02:05.607160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.608392"], ["updated_at", "2018-06-13 22:02:05.608392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.618778"], ["updated_at", "2018-06-13 22:02:05.618778"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.620409"], ["updated_at", "2018-06-13 22:02:05.620409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:02:05.627181"], ["updated_at", "2018-06-13 22:02:05.627181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:02:05.628214"], ["updated_at", "2018-06-13 22:02:05.628214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:02:05.630446"], ["updated_at", "2018-06-13 22:02:05.630446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:02:05.631583"], ["updated_at", "2018-06-13 22:02:05.631583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.637104"], ["updated_at", "2018-06-13 22:02:05.637104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:02:05.638665"], ["updated_at", "2018-06-13 22:02:05.638665"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.641970"], ["updated_at", "2018-06-13 22:02:05.641970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.648010"], ["updated_at", "2018-06-13 22:02:05.648010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.656211"], ["updated_at", "2018-06-13 22:02:05.656211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.657414"], ["updated_at", "2018-06-13 22:02:05.657414"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.660660"], ["updated_at", "2018-06-13 22:02:05.660660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.667493"], ["updated_at", "2018-06-13 22:02:05.667493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.671764"], ["updated_at", "2018-06-13 22:02:05.671764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.676281"], ["updated_at", "2018-06-13 22:02:05.676281"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.681838"], ["updated_at", "2018-06-13 22:02:05.681838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.682983"], ["updated_at", "2018-06-13 22:02:05.682983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.691877"], ["updated_at", "2018-06-13 22:02:05.691877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.692989"], ["updated_at", "2018-06-13 22:02:05.692989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.696494"], ["updated_at", "2018-06-13 22:02:05.696494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.706940"], ["updated_at", "2018-06-13 22:02:05.706940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.717516"], ["updated_at", "2018-06-13 22:02:05.717516"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.727739"], ["updated_at", "2018-06-13 22:02:05.727739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:02:05.740735"], ["updated_at", "2018-06-13 22:02:05.740735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.743870"], ["updated_at", "2018-06-13 22:02:05.743870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.749367"], ["updated_at", "2018-06-13 22:02:05.749367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.757160"], ["updated_at", "2018-06-13 22:02:05.757160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.758469"], ["updated_at", "2018-06-13 22:02:05.758469"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.761292"], ["updated_at", "2018-06-13 22:02:05.761292"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:02:05.768253"], ["updated_at", "2018-06-13 22:02:05.768253"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 22:02:05.772428"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:02:05.774651"], ["updated_at", "2018-06-13 22:02:05.774651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:02:05.775873"], ["updated_at", "2018-06-13 22:02:05.775873"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.794723"], ["updated_at", "2018-06-13 22:02:05.794723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.795783"], ["updated_at", "2018-06-13 22:02:05.795783"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.798976"], ["updated_at", "2018-06-13 22:02:05.798976"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.807564"], ["updated_at", "2018-06-13 22:02:05.807564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.808825"], ["updated_at", "2018-06-13 22:02:05.808825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.809934"], ["updated_at", "2018-06-13 22:02:05.809934"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.813026"], ["updated_at", "2018-06-13 22:02:05.813026"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.814385"], ["updated_at", "2018-06-13 22:02:05.814385"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:02:05.832401"], ["updated_at", "2018-06-13 22:02:05.832401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.846140"], ["updated_at", "2018-06-13 22:02:05.846140"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.847474"], ["updated_at", "2018-06-13 22:02:05.847474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.851091"], ["updated_at", "2018-06-13 22:02:05.851091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.857237"], ["updated_at", "2018-06-13 22:02:05.857237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.858318"], ["updated_at", "2018-06-13 22:02:05.858318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:05.877063"], ["updated_at", "2018-06-13 22:02:05.877063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:02:06.085713"], ["updated_at", "2018-06-13 22:02:06.085713"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:02:06.120200"], ["updated_at", "2018-06-13 22:02:06.120200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:02:06.121700"], ["updated_at", "2018-06-13 22:02:06.121700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:06.142611"], ["updated_at", "2018-06-13 22:02:06.142611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:06.155078"], ["updated_at", "2018-06-13 22:02:06.155078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:06.159026"], ["updated_at", "2018-06-13 22:02:06.159026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:02:06.166991"], ["updated_at", "2018-06-13 22:02:06.166991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:09.840591"], ["updated_at", "2018-06-13 22:03:09.840591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:09.851960"], ["updated_at", "2018-06-13 22:03:09.851960"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:09.855667"], ["updated_at", "2018-06-13 22:03:09.855667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:09.863149"], ["updated_at", "2018-06-13 22:03:09.863149"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:03:09.872787"], ["updated_at", "2018-06-13 22:03:09.872787"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:03:09.896523"], ["updated_at", "2018-06-13 22:03:09.896523"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:03:09.898725"], ["updated_at", "2018-06-13 22:03:09.898725"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.016827"], ["updated_at", "2018-06-13 22:03:10.016827"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.018265"], ["updated_at", "2018-06-13 22:03:10.018265"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.019465"], ["updated_at", "2018-06-13 22:03:10.019465"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.025736"], ["updated_at", "2018-06-13 22:03:10.025736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.029579"], ["updated_at", "2018-06-13 22:03:10.029579"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:03:10.035882"], ["updated_at", "2018-06-13 22:03:10.035882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:03:10.037275"], ["updated_at", "2018-06-13 22:03:10.037275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:03:10.040182"], ["updated_at", "2018-06-13 22:03:10.040182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:03:10.041227"], ["updated_at", "2018-06-13 22:03:10.041227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.051362"], ["updated_at", "2018-06-13 22:03:10.051362"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.052602"], ["updated_at", "2018-06-13 22:03:10.052602"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.059809"], ["updated_at", "2018-06-13 22:03:10.059809"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.063140"], ["updated_at", "2018-06-13 22:03:10.063140"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.064987"], ["updated_at", "2018-06-13 22:03:10.064987"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.076994"], ["updated_at", "2018-06-13 22:03:10.076994"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.081525"], ["updated_at", "2018-06-13 22:03:10.081525"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.085458"], ["updated_at", "2018-06-13 22:03:10.085458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.090489"], ["updated_at", "2018-06-13 22:03:10.090489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.093242"], ["updated_at", "2018-06-13 22:03:10.093242"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.100679"], ["updated_at", "2018-06-13 22:03:10.100679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.107498"], ["updated_at", "2018-06-13 22:03:10.107498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.108472"], ["updated_at", "2018-06-13 22:03:10.108472"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.110777"], ["updated_at", "2018-06-13 22:03:10.110777"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.112027"], ["updated_at", "2018-06-13 22:03:10.112027"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:03:10.116737"], ["updated_at", "2018-06-13 22:03:10.116737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:03:10.120529"], ["updated_at", "2018-06-13 22:03:10.120529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.135352"], ["updated_at", "2018-06-13 22:03:10.135352"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:03:10.161527"], ["updated_at", "2018-06-13 22:03:10.161527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:03:10.163072"], ["updated_at", "2018-06-13 22:03:10.163072"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.164688"], ["updated_at", "2018-06-13 22:03:10.164688"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.168583"], ["updated_at", "2018-06-13 22:03:10.168583"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.169699"], ["updated_at", "2018-06-13 22:03:10.169699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.172413"], ["updated_at", "2018-06-13 22:03:10.172413"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.177101"], ["updated_at", "2018-06-13 22:03:10.177101"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.178956"], ["updated_at", "2018-06-13 22:03:10.178956"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.195105"], ["updated_at", "2018-06-13 22:03:10.195105"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.204844"], ["updated_at", "2018-06-13 22:03:10.204844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:03:10.206138"], ["updated_at", "2018-06-13 22:03:10.206138"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:03:10.212248"], ["updated_at", "2018-06-13 22:03:10.212248"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:03:10.213802"], ["updated_at", "2018-06-13 22:03:10.213802"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:03:10.216796"], ["updated_at", "2018-06-13 22:03:10.216796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:03:10.218085"], ["updated_at", "2018-06-13 22:03:10.218085"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:03:10.228522"], ["updated_at", "2018-06-13 22:03:10.228522"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:03:10.248742"], ["updated_at", "2018-06-13 22:03:10.248742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 22:03:10.250834"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:03:10.252224"], ["updated_at", "2018-06-13 22:03:10.252224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:03:10.253259"], ["updated_at", "2018-06-13 22:03:10.253259"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.258323"], ["updated_at", "2018-06-13 22:03:10.258323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:03:10.271850"], ["updated_at", "2018-06-13 22:03:10.271850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.276501"], ["updated_at", "2018-06-13 22:03:10.276501"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.286348"], ["updated_at", "2018-06-13 22:03:10.286348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.287591"], ["updated_at", "2018-06-13 22:03:10.287591"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.290162"], ["updated_at", "2018-06-13 22:03:10.290162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.296190"], ["updated_at", "2018-06-13 22:03:10.296190"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.297846"], ["updated_at", "2018-06-13 22:03:10.297846"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.301115"], ["updated_at", "2018-06-13 22:03:10.301115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.302307"], ["updated_at", "2018-06-13 22:03:10.302307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.318729"], ["updated_at", "2018-06-13 22:03:10.318729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.319876"], ["updated_at", "2018-06-13 22:03:10.319876"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.328226"], ["updated_at", "2018-06-13 22:03:10.328226"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.329656"], ["updated_at", "2018-06-13 22:03:10.329656"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.333754"], ["updated_at", "2018-06-13 22:03:10.333754"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.338694"], ["updated_at", "2018-06-13 22:03:10.338694"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.339756"], ["updated_at", "2018-06-13 22:03:10.339756"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.343575"], ["updated_at", "2018-06-13 22:03:10.343575"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.353465"], ["updated_at", "2018-06-13 22:03:10.353465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.360976"], ["updated_at", "2018-06-13 22:03:10.360976"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:03:10.367582"], ["updated_at", "2018-06-13 22:03:10.367582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.370983"], ["updated_at", "2018-06-13 22:03:10.370983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.376048"], ["updated_at", "2018-06-13 22:03:10.376048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.377149"], ["updated_at", "2018-06-13 22:03:10.377149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.378810"], ["updated_at", "2018-06-13 22:03:10.378810"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.384139"], ["updated_at", "2018-06-13 22:03:10.384139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.385354"], ["updated_at", "2018-06-13 22:03:10.385354"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.388484"], ["updated_at", "2018-06-13 22:03:10.388484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.391307"], ["updated_at", "2018-06-13 22:03:10.391307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.403361"], ["updated_at", "2018-06-13 22:03:10.403361"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.404408"], ["updated_at", "2018-06-13 22:03:10.404408"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:10.410331"], ["updated_at", "2018-06-13 22:03:10.410331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.4ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.8ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 2]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 9ms (Views: 0.5ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 2]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.434096"], ["updated_at", "2018-06-13 22:03:29.434096"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.441219"], ["updated_at", "2018-06-13 22:03:29.441219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.3ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.472050"], ["updated_at", "2018-06-13 22:03:29.472050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.476163"], ["updated_at", "2018-06-13 22:03:29.476163"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:03:29.480487"], ["updated_at", "2018-06-13 22:03:29.480487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:03:29.481801"], ["updated_at", "2018-06-13 22:03:29.481801"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.482921"], ["updated_at", "2018-06-13 22:03:29.482921"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.485591"], ["updated_at", "2018-06-13 22:03:29.485591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.487022"], ["updated_at", "2018-06-13 22:03:29.487022"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.495915"], ["updated_at", "2018-06-13 22:03:29.495915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.498818"], ["updated_at", "2018-06-13 22:03:29.498818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.502189"], ["updated_at", "2018-06-13 22:03:29.502189"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.509225"], ["updated_at", "2018-06-13 22:03:29.509225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.510600"], ["updated_at", "2018-06-13 22:03:29.510600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.512123"], ["updated_at", "2018-06-13 22:03:29.512123"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:03:29.516336"], ["updated_at", "2018-06-13 22:03:29.516336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.519989"], ["updated_at", "2018-06-13 22:03:29.519989"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.527266"], ["updated_at", "2018-06-13 22:03:29.527266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.528530"], ["updated_at", "2018-06-13 22:03:29.528530"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:03:29.531861"], ["updated_at", "2018-06-13 22:03:29.531861"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:03:29.533360"], ["updated_at", "2018-06-13 22:03:29.533360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:03:29.536487"], ["updated_at", "2018-06-13 22:03:29.536487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:03:29.537994"], ["updated_at", "2018-06-13 22:03:29.537994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.544578"], ["updated_at", "2018-06-13 22:03:29.544578"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.545803"], ["updated_at", "2018-06-13 22:03:29.545803"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.561509"], ["updated_at", "2018-06-13 22:03:29.561509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.562959"], ["updated_at", "2018-06-13 22:03:29.562959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.564027"], ["updated_at", "2018-06-13 22:03:29.564027"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.567685"], ["updated_at", "2018-06-13 22:03:29.567685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.568946"], ["updated_at", "2018-06-13 22:03:29.568946"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.573014"], ["updated_at", "2018-06-13 22:03:29.573014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.579703"], ["updated_at", "2018-06-13 22:03:29.579703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.580836"], ["updated_at", "2018-06-13 22:03:29.580836"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.583703"], ["updated_at", "2018-06-13 22:03:29.583703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.599019"], ["updated_at", "2018-06-13 22:03:29.599019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.607832"], ["updated_at", "2018-06-13 22:03:29.607832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.618879"], ["updated_at", "2018-06-13 22:03:29.618879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.629623"], ["updated_at", "2018-06-13 22:03:29.629623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.630634"], ["updated_at", "2018-06-13 22:03:29.630634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.633722"], ["updated_at", "2018-06-13 22:03:29.633722"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:03:29.638593"], ["updated_at", "2018-06-13 22:03:29.638593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:03:29.640218"], ["updated_at", "2018-06-13 22:03:29.640218"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:03:29.642551"], ["updated_at", "2018-06-13 22:03:29.642551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:03:29.643513"], ["updated_at", "2018-06-13 22:03:29.643513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.651983"], ["updated_at", "2018-06-13 22:03:29.651983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.653598"], ["updated_at", "2018-06-13 22:03:29.653598"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.657442"], ["updated_at", "2018-06-13 22:03:29.657442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.663075"], ["updated_at", "2018-06-13 22:03:29.663075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.664046"], ["updated_at", "2018-06-13 22:03:29.664046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:03:29.674249"], ["updated_at", "2018-06-13 22:03:29.674249"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:03:29.683227"], ["updated_at", "2018-06-13 22:03:29.683227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 22:03:29.685695"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:03:29.687492"], ["updated_at", "2018-06-13 22:03:29.687492"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:03:29.688935"], ["updated_at", "2018-06-13 22:03:29.688935"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.694295"], ["updated_at", "2018-06-13 22:03:29.694295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.695599"], ["updated_at", "2018-06-13 22:03:29.695599"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.711751"], ["updated_at", "2018-06-13 22:03:29.711751"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.718206"], ["updated_at", "2018-06-13 22:03:29.718206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:03:29.724877"], ["updated_at", "2018-06-13 22:03:29.724877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:03:29.728174"], ["updated_at", "2018-06-13 22:03:29.728174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.740666"], ["updated_at", "2018-06-13 22:03:29.740666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.741964"], ["updated_at", "2018-06-13 22:03:29.741964"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.744778"], ["updated_at", "2018-06-13 22:03:29.744778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.745679"], ["updated_at", "2018-06-13 22:03:29.745679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.754360"], ["updated_at", "2018-06-13 22:03:29.754360"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.762284"], ["updated_at", "2018-06-13 22:03:29.762284"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.763460"], ["updated_at", "2018-06-13 22:03:29.763460"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.765787"], ["updated_at", "2018-06-13 22:03:29.765787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.769080"], ["updated_at", "2018-06-13 22:03:29.769080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.774841"], ["updated_at", "2018-06-13 22:03:29.774841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.775943"], ["updated_at", "2018-06-13 22:03:29.775943"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.779933"], ["updated_at", "2018-06-13 22:03:29.779933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.781014"], ["updated_at", "2018-06-13 22:03:29.781014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.788005"], ["updated_at", "2018-06-13 22:03:29.788005"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:03:29.789555"], ["updated_at", "2018-06-13 22:03:29.789555"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:03:29.794491"], ["updated_at", "2018-06-13 22:03:29.794491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.813647"], ["updated_at", "2018-06-13 22:03:29.813647"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.817209"], ["updated_at", "2018-06-13 22:03:29.817209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.825755"], ["updated_at", "2018-06-13 22:03:29.825755"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.877937"], ["updated_at", "2018-06-13 22:03:29.877937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.884089"], ["updated_at", "2018-06-13 22:03:29.884089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.887326"], ["updated_at", "2018-06-13 22:03:29.887326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:03:29.916132"], ["updated_at", "2018-06-13 22:03:29.916132"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:03:29.919744"], ["updated_at", "2018-06-13 22:03:29.919744"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:03:29.921140"], ["updated_at", "2018-06-13 22:03:29.921140"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:03:29.944286"], ["updated_at", "2018-06-13 22:03:29.944286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 9], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 10ms (Views: 0.3ms | ActiveRecord: 0.2ms) Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.456117"], ["updated_at", "2018-06-13 22:05:35.456117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.457484"], ["updated_at", "2018-06-13 22:05:35.457484"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.516409"], ["updated_at", "2018-06-13 22:05:35.516409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.520952"], ["updated_at", "2018-06-13 22:05:35.520952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.527187"], ["updated_at", "2018-06-13 22:05:35.527187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.528602"], ["updated_at", "2018-06-13 22:05:35.528602"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.531524"], ["updated_at", "2018-06-13 22:05:35.531524"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.532531"], ["updated_at", "2018-06-13 22:05:35.532531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.535570"], ["updated_at", "2018-06-13 22:05:35.535570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.539141"], ["updated_at", "2018-06-13 22:05:35.539141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.541697"], ["updated_at", "2018-06-13 22:05:35.541697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.546896"], ["updated_at", "2018-06-13 22:05:35.546896"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.548067"], ["updated_at", "2018-06-13 22:05:35.548067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.548950"], ["updated_at", "2018-06-13 22:05:35.548950"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:05:35.557915"], ["updated_at", "2018-06-13 22:05:35.557915"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.563723"], ["updated_at", "2018-06-13 22:05:35.563723"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.564821"], ["updated_at", "2018-06-13 22:05:35.564821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.565835"], ["updated_at", "2018-06-13 22:05:35.565835"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:05:35.568317"], ["updated_at", "2018-06-13 22:05:35.568317"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.570697"], ["updated_at", "2018-06-13 22:05:35.570697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.575296"], ["updated_at", "2018-06-13 22:05:35.575296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.576283"], ["updated_at", "2018-06-13 22:05:35.576283"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.579855"], ["updated_at", "2018-06-13 22:05:35.579855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.580814"], ["updated_at", "2018-06-13 22:05:35.580814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.586819"], ["updated_at", "2018-06-13 22:05:35.586819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.587746"], ["updated_at", "2018-06-13 22:05:35.587746"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.605501"], ["updated_at", "2018-06-13 22:05:35.605501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.612550"], ["updated_at", "2018-06-13 22:05:35.612550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.618701"], ["updated_at", "2018-06-13 22:05:35.618701"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.619639"], ["updated_at", "2018-06-13 22:05:35.619639"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.622152"], ["updated_at", "2018-06-13 22:05:35.622152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.630277"], ["updated_at", "2018-06-13 22:05:35.630277"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:05:35.631826"], ["updated_at", "2018-06-13 22:05:35.631826"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.635117"], ["updated_at", "2018-06-13 22:05:35.635117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.636067"], ["updated_at", "2018-06-13 22:05:35.636067"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.640851"], ["updated_at", "2018-06-13 22:05:35.640851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.641993"], ["updated_at", "2018-06-13 22:05:35.641993"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:05:35.662800"], ["updated_at", "2018-06-13 22:05:35.662800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:05:35.674063"], ["updated_at", "2018-06-13 22:05:35.674063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 22:05:35.675560"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:05:35.677601"], ["updated_at", "2018-06-13 22:05:35.677601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:05:35.678781"], ["updated_at", "2018-06-13 22:05:35.678781"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.683674"], ["updated_at", "2018-06-13 22:05:35.683674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.688960"], ["updated_at", "2018-06-13 22:05:35.688960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.689923"], ["updated_at", "2018-06-13 22:05:35.689923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.702128"], ["updated_at", "2018-06-13 22:05:35.702128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.703024"], ["updated_at", "2018-06-13 22:05:35.703024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.708784"], ["updated_at", "2018-06-13 22:05:35.708784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.716209"], ["updated_at", "2018-06-13 22:05:35.716209"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.717057"], ["updated_at", "2018-06-13 22:05:35.717057"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.718970"], ["updated_at", "2018-06-13 22:05:35.718970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.721426"], ["updated_at", "2018-06-13 22:05:35.721426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:05:35.724817"], ["updated_at", "2018-06-13 22:05:35.724817"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:05:35.730444"], ["updated_at", "2018-06-13 22:05:35.730444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:05:35.732786"], ["updated_at", "2018-06-13 22:05:35.732786"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:05:35.733778"], ["updated_at", "2018-06-13 22:05:35.733778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.737147"], ["updated_at", "2018-06-13 22:05:35.737147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.739240"], ["updated_at", "2018-06-13 22:05:35.739240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:05:35.742831"], ["updated_at", "2018-06-13 22:05:35.742831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:05:35.745904"], ["updated_at", "2018-06-13 22:05:35.745904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:05:35.755631"], ["updated_at", "2018-06-13 22:05:35.755631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:05:35.756531"], ["updated_at", "2018-06-13 22:05:35.756531"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.757495"], ["updated_at", "2018-06-13 22:05:35.757495"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:05:35.760034"], ["updated_at", "2018-06-13 22:05:35.760034"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:05:35.761769"], ["updated_at", "2018-06-13 22:05:35.761769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:05:35.763785"], ["updated_at", "2018-06-13 22:05:35.763785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:05:35.764658"], ["updated_at", "2018-06-13 22:05:35.764658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.772428"], ["updated_at", "2018-06-13 22:05:35.772428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.773368"], ["updated_at", "2018-06-13 22:05:35.773368"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.775525"], ["updated_at", "2018-06-13 22:05:35.775525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.778494"], ["updated_at", "2018-06-13 22:05:35.778494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.781139"], ["updated_at", "2018-06-13 22:05:35.781139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.785819"], ["updated_at", "2018-06-13 22:05:35.785819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.792862"], ["updated_at", "2018-06-13 22:05:35.792862"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.800910"], ["updated_at", "2018-06-13 22:05:35.800910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.802077"], ["updated_at", "2018-06-13 22:05:35.802077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.804749"], ["updated_at", "2018-06-13 22:05:35.804749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.813189"], ["updated_at", "2018-06-13 22:05:35.813189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.818641"], ["updated_at", "2018-06-13 22:05:35.818641"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:05:35.888055"], ["updated_at", "2018-06-13 22:05:35.888055"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.901432"], ["updated_at", "2018-06-13 22:05:35.901432"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.927811"], ["updated_at", "2018-06-13 22:05:35.927811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.934214"], ["updated_at", "2018-06-13 22:05:35.934214"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:05:35.937744"], ["updated_at", "2018-06-13 22:05:35.937744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:05:35.954193"], ["updated_at", "2018-06-13 22:05:35.954193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:05:35.955041"], ["updated_at", "2018-06-13 22:05:35.955041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.2ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.7ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 0.4ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 4], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.286010"], ["updated_at", "2018-06-13 22:09:56.286010"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.318379"], ["updated_at", "2018-06-13 22:09:56.318379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.335658"], ["updated_at", "2018-06-13 22:09:56.335658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:09:56.337410"], ["updated_at", "2018-06-13 22:09:56.337410"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:09:56.346748"], ["updated_at", "2018-06-13 22:09:56.346748"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:09:56.400163"], ["updated_at", "2018-06-13 22:09:56.400163"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:09:56.404926"], ["updated_at", "2018-06-13 22:09:56.404926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.420927"], ["updated_at", "2018-06-13 22:09:56.420927"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:09:56.433291"], ["updated_at", "2018-06-13 22:09:56.433291"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.444749"], ["updated_at", "2018-06-13 22:09:56.444749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.445657"], ["updated_at", "2018-06-13 22:09:56.445657"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.447982"], ["updated_at", "2018-06-13 22:09:56.447982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.455465"], ["updated_at", "2018-06-13 22:09:56.455465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.458442"], ["updated_at", "2018-06-13 22:09:56.458442"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.460560"], ["updated_at", "2018-06-13 22:09:56.460560"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.463940"], ["updated_at", "2018-06-13 22:09:56.463940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.464958"], ["updated_at", "2018-06-13 22:09:56.464958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.465919"], ["updated_at", "2018-06-13 22:09:56.465919"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.469323"], ["updated_at", "2018-06-13 22:09:56.469323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.472733"], ["updated_at", "2018-06-13 22:09:56.472733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.477117"], ["updated_at", "2018-06-13 22:09:56.477117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.478074"], ["updated_at", "2018-06-13 22:09:56.478074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:09:56.483735"], ["updated_at", "2018-06-13 22:09:56.483735"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:09:56.484629"], ["updated_at", "2018-06-13 22:09:56.484629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.485701"], ["updated_at", "2018-06-13 22:09:56.485701"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.488024"], ["updated_at", "2018-06-13 22:09:56.488024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.488925"], ["updated_at", "2018-06-13 22:09:56.488925"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.492096"], ["updated_at", "2018-06-13 22:09:56.492096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.493176"], ["updated_at", "2018-06-13 22:09:56.493176"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:09:56.495857"], ["updated_at", "2018-06-13 22:09:56.495857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:09:56.496703"], ["updated_at", "2018-06-13 22:09:56.496703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:09:56.499076"], ["updated_at", "2018-06-13 22:09:56.499076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:09:56.500024"], ["updated_at", "2018-06-13 22:09:56.500024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.508724"], ["updated_at", "2018-06-13 22:09:56.508724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.509728"], ["updated_at", "2018-06-13 22:09:56.509728"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.512645"], ["updated_at", "2018-06-13 22:09:56.512645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.513457"], ["updated_at", "2018-06-13 22:09:56.513457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.515826"], ["updated_at", "2018-06-13 22:09:56.515826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.520415"], ["updated_at", "2018-06-13 22:09:56.520415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.521670"], ["updated_at", "2018-06-13 22:09:56.521670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.533540"], ["updated_at", "2018-06-13 22:09:56.533540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.534609"], ["updated_at", "2018-06-13 22:09:56.534609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.543725"], ["updated_at", "2018-06-13 22:09:56.543725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.544953"], ["updated_at", "2018-06-13 22:09:56.544953"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.548064"], ["updated_at", "2018-06-13 22:09:56.548064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.549172"], ["updated_at", "2018-06-13 22:09:56.549172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.560959"], ["updated_at", "2018-06-13 22:09:56.560959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.566530"], ["updated_at", "2018-06-13 22:09:56.566530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.573450"], ["updated_at", "2018-06-13 22:09:56.573450"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.574532"], ["updated_at", "2018-06-13 22:09:56.574532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.580249"], ["updated_at", "2018-06-13 22:09:56.580249"]]  (0.0ms)[0m commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.583053"], ["updated_at", "2018-06-13 22:09:56.583053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.588293"], ["updated_at", "2018-06-13 22:09:56.588293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.594870"], ["updated_at", "2018-06-13 22:09:56.594870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:09:56.604994"], ["updated_at", "2018-06-13 22:09:56.604994"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.611703"], ["updated_at", "2018-06-13 22:09:56.611703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.632905"], ["updated_at", "2018-06-13 22:09:56.632905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.634069"], ["updated_at", "2018-06-13 22:09:56.634069"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.637564"], ["updated_at", "2018-06-13 22:09:56.637564"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.642738"], ["updated_at", "2018-06-13 22:09:56.642738"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.643824"], ["updated_at", "2018-06-13 22:09:56.643824"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:09:56.646031"], ["updated_at", "2018-06-13 22:09:56.646031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:09:56.647023"], ["updated_at", "2018-06-13 22:09:56.647023"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:09:56.649520"], ["updated_at", "2018-06-13 22:09:56.649520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:09:56.650647"], ["updated_at", "2018-06-13 22:09:56.650647"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.655651"], ["updated_at", "2018-06-13 22:09:56.655651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.656749"], ["updated_at", "2018-06-13 22:09:56.656749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.657767"], ["updated_at", "2018-06-13 22:09:56.657767"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.660651"], ["updated_at", "2018-06-13 22:09:56.660651"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.662700"], ["updated_at", "2018-06-13 22:09:56.662700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.665400"], ["updated_at", "2018-06-13 22:09:56.665400"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.673641"], ["updated_at", "2018-06-13 22:09:56.673641"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.679806"], ["updated_at", "2018-06-13 22:09:56.679806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.680764"], ["updated_at", "2018-06-13 22:09:56.680764"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:09:56.684083"], ["updated_at", "2018-06-13 22:09:56.684083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 22:09:56.686554"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:09:56.688604"], ["updated_at", "2018-06-13 22:09:56.688604"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:09:56.689733"], ["updated_at", "2018-06-13 22:09:56.689733"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.694131"], ["updated_at", "2018-06-13 22:09:56.694131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:09:56.809068"], ["updated_at", "2018-06-13 22:09:56.809068"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.858360"], ["updated_at", "2018-06-13 22:09:56.858360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.864479"], ["updated_at", "2018-06-13 22:09:56.864479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.868999"], ["updated_at", "2018-06-13 22:09:56.868999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:09:56.887769"], ["updated_at", "2018-06-13 22:09:56.887769"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:09:56.889456"], ["updated_at", "2018-06-13 22:09:56.889456"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:09:56.922226"], ["updated_at", "2018-06-13 22:09:56.922226"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.254324"], ["updated_at", "2018-06-13 22:10:44.254324"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:10:44.268012"], ["updated_at", "2018-06-13 22:10:44.268012"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.272695"], ["updated_at", "2018-06-13 22:10:44.272695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.282464"], ["updated_at", "2018-06-13 22:10:44.282464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.286705"], ["updated_at", "2018-06-13 22:10:44.286705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 2], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:10:44.378417"], ["updated_at", "2018-06-13 22:10:44.378417"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:10:44.380450"], ["updated_at", "2018-06-13 22:10:44.380450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.552200"], ["updated_at", "2018-06-13 22:10:44.552200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.560744"], ["updated_at", "2018-06-13 22:10:44.560744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.562427"], ["updated_at", "2018-06-13 22:10:44.562427"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.565315"], ["updated_at", "2018-06-13 22:10:44.565315"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:10:44.567816"], ["updated_at", "2018-06-13 22:10:44.567816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:10:44.568890"], ["updated_at", "2018-06-13 22:10:44.568890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:10:44.571112"], ["updated_at", "2018-06-13 22:10:44.571112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:10:44.572157"], ["updated_at", "2018-06-13 22:10:44.572157"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.579019"], ["updated_at", "2018-06-13 22:10:44.579019"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.580474"], ["updated_at", "2018-06-13 22:10:44.580474"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.583500"], ["updated_at", "2018-06-13 22:10:44.583500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:10:44.584448"], ["updated_at", "2018-06-13 22:10:44.584448"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.587396"], ["updated_at", "2018-06-13 22:10:44.587396"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.588383"], ["updated_at", "2018-06-13 22:10:44.588383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.589512"], ["updated_at", "2018-06-13 22:10:44.589512"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.598395"], ["updated_at", "2018-06-13 22:10:44.598395"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.601889"], ["updated_at", "2018-06-13 22:10:44.601889"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.604898"], ["updated_at", "2018-06-13 22:10:44.604898"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.610557"], ["updated_at", "2018-06-13 22:10:44.610557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.611801"], ["updated_at", "2018-06-13 22:10:44.611801"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.666025"], ["updated_at", "2018-06-13 22:10:44.666025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.667374"], ["updated_at", "2018-06-13 22:10:44.667374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.679863"], ["updated_at", "2018-06-13 22:10:44.679863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.683214"], ["updated_at", "2018-06-13 22:10:44.683214"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.695879"], ["updated_at", "2018-06-13 22:10:44.695879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:10:44.704242"], ["updated_at", "2018-06-13 22:10:44.704242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.709503"], ["updated_at", "2018-06-13 22:10:44.709503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.716158"], ["updated_at", "2018-06-13 22:10:44.716158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.722711"], ["updated_at", "2018-06-13 22:10:44.722711"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:10:44.732720"], ["updated_at", "2018-06-13 22:10:44.732720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:10:44.736479"], ["updated_at", "2018-06-13 22:10:44.736479"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.752104"], ["updated_at", "2018-06-13 22:10:44.752104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.753205"], ["updated_at", "2018-06-13 22:10:44.753205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:10:44.768904"], ["updated_at", "2018-06-13 22:10:44.768904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:10:44.769997"], ["updated_at", "2018-06-13 22:10:44.769997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:10:44.772780"], ["updated_at", "2018-06-13 22:10:44.772780"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:10:44.774809"], ["updated_at", "2018-06-13 22:10:44.774809"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.788184"], ["updated_at", "2018-06-13 22:10:44.788184"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.789843"], ["updated_at", "2018-06-13 22:10:44.789843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.794409"], ["updated_at", "2018-06-13 22:10:44.794409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.799699"], ["updated_at", "2018-06-13 22:10:44.799699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.800845"], ["updated_at", "2018-06-13 22:10:44.800845"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.804182"], ["updated_at", "2018-06-13 22:10:44.804182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.812825"], ["updated_at", "2018-06-13 22:10:44.812825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.814093"], ["updated_at", "2018-06-13 22:10:44.814093"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.820839"], ["updated_at", "2018-06-13 22:10:44.820839"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.822288"], ["updated_at", "2018-06-13 22:10:44.822288"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.825881"], ["updated_at", "2018-06-13 22:10:44.825881"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.834824"], ["updated_at", "2018-06-13 22:10:44.834824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.835980"], ["updated_at", "2018-06-13 22:10:44.835980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.837014"], ["updated_at", "2018-06-13 22:10:44.837014"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:10:44.845840"], ["updated_at", "2018-06-13 22:10:44.845840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 22:10:44.848567"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:10:44.850248"], ["updated_at", "2018-06-13 22:10:44.850248"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:10:44.851499"], ["updated_at", "2018-06-13 22:10:44.851499"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.857433"], ["updated_at", "2018-06-13 22:10:44.857433"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.862627"], ["updated_at", "2018-06-13 22:10:44.862627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.867221"], ["updated_at", "2018-06-13 22:10:44.867221"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.868297"], ["updated_at", "2018-06-13 22:10:44.868297"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.875795"], ["updated_at", "2018-06-13 22:10:44.875795"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.877983"], ["updated_at", "2018-06-13 22:10:44.877983"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:10:44.882420"], ["updated_at", "2018-06-13 22:10:44.882420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:10:44.883589"], ["updated_at", "2018-06-13 22:10:44.883589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.884580"], ["updated_at", "2018-06-13 22:10:44.884580"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.886925"], ["updated_at", "2018-06-13 22:10:44.886925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.894124"], ["updated_at", "2018-06-13 22:10:44.894124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.898049"], ["updated_at", "2018-06-13 22:10:44.898049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.902527"], ["updated_at", "2018-06-13 22:10:44.902527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.903718"], ["updated_at", "2018-06-13 22:10:44.903718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.907253"], ["updated_at", "2018-06-13 22:10:44.907253"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:10:44.915253"], ["updated_at", "2018-06-13 22:10:44.915253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.930278"], ["updated_at", "2018-06-13 22:10:44.930278"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.938027"], ["updated_at", "2018-06-13 22:10:44.938027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (3.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.952405"], ["updated_at", "2018-06-13 22:10:44.952405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.960040"], ["updated_at", "2018-06-13 22:10:44.960040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.961383"], ["updated_at", "2018-06-13 22:10:44.961383"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.964591"], ["updated_at", "2018-06-13 22:10:44.964591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:44.965717"], ["updated_at", "2018-06-13 22:10:44.965717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:10:44.977776"], ["updated_at", "2018-06-13 22:10:44.977776"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.4ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.6ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:58.448054"], ["updated_at", "2018-06-13 22:10:58.448054"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:58.485036"], ["updated_at", "2018-06-13 22:10:58.485036"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:58.489821"], ["updated_at", "2018-06-13 22:10:58.489821"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:10:58.510303"], ["updated_at", "2018-06-13 22:10:58.510303"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.9ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:10:58.529620"], ["updated_at", "2018-06-13 22:10:58.529620"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:10:58.532200"], ["updated_at", "2018-06-13 22:10:58.532200"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.2ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:58.573967"], ["updated_at", "2018-06-13 22:10:58.573967"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.5ms | ActiveRecord: 0.3ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.2ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 4], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.2ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:58.978957"], ["updated_at", "2018-06-13 22:10:58.978957"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:58.982972"], ["updated_at", "2018-06-13 22:10:58.982972"]]  (0.4ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:58.992260"], ["updated_at", "2018-06-13 22:10:58.992260"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:58.994033"], ["updated_at", "2018-06-13 22:10:58.994033"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:10:59.000990"], ["updated_at", "2018-06-13 22:10:59.000990"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.005789"], ["updated_at", "2018-06-13 22:10:59.005789"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:10:59.027500"], ["updated_at", "2018-06-13 22:10:59.027500"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.036991"], ["updated_at", "2018-06-13 22:10:59.036991"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (1.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:10:59.046655"], ["updated_at", "2018-06-13 22:10:59.046655"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:10:59.048575"], ["updated_at", "2018-06-13 22:10:59.048575"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.050440"], ["updated_at", "2018-06-13 22:10:59.050440"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.054931"], ["updated_at", "2018-06-13 22:10:59.054931"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.070805"], ["updated_at", "2018-06-13 22:10:59.070805"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.072555"], ["updated_at", "2018-06-13 22:10:59.072555"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.082335"], ["updated_at", "2018-06-13 22:10:59.082335"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:10:59.093252"], ["updated_at", "2018-06-13 22:10:59.093252"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 22:10:59.096780"], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:10:59.098765"], ["updated_at", "2018-06-13 22:10:59.098765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:10:59.100309"], ["updated_at", "2018-06-13 22:10:59.100309"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.105251"], ["updated_at", "2018-06-13 22:10:59.105251"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.106736"], ["updated_at", "2018-06-13 22:10:59.106736"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.111183"], ["updated_at", "2018-06-13 22:10:59.111183"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.118554"], ["updated_at", "2018-06-13 22:10:59.118554"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.120042"], ["updated_at", "2018-06-13 22:10:59.120042"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:10:59.141937"], ["updated_at", "2018-06-13 22:10:59.141937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:10:59.145167"], ["updated_at", "2018-06-13 22:10:59.145167"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.160954"], ["updated_at", "2018-06-13 22:10:59.160954"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.170282"], ["updated_at", "2018-06-13 22:10:59.170282"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.179431"], ["updated_at", "2018-06-13 22:10:59.179431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.181331"], ["updated_at", "2018-06-13 22:10:59.181331"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.183267"], ["updated_at", "2018-06-13 22:10:59.183267"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.187936"], ["updated_at", "2018-06-13 22:10:59.187936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.198858"], ["updated_at", "2018-06-13 22:10:59.198858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.200097"], ["updated_at", "2018-06-13 22:10:59.200097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.203858"], ["updated_at", "2018-06-13 22:10:59.203858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.211428"], ["updated_at", "2018-06-13 22:10:59.211428"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.216233"], ["updated_at", "2018-06-13 22:10:59.216233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.221092"], ["updated_at", "2018-06-13 22:10:59.221092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.222381"], ["updated_at", "2018-06-13 22:10:59.222381"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.249003"], ["updated_at", "2018-06-13 22:10:59.249003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.257025"], ["updated_at", "2018-06-13 22:10:59.257025"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.259024"], ["updated_at", "2018-06-13 22:10:59.259024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.260780"], ["updated_at", "2018-06-13 22:10:59.260780"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.266150"], ["updated_at", "2018-06-13 22:10:59.266150"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.276405"], ["updated_at", "2018-06-13 22:10:59.276405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.280601"], ["updated_at", "2018-06-13 22:10:59.280601"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.287479"], ["updated_at", "2018-06-13 22:10:59.287479"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.291411"], ["updated_at", "2018-06-13 22:10:59.291411"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:10:59.292994"], ["updated_at", "2018-06-13 22:10:59.292994"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.298445"], ["updated_at", "2018-06-13 22:10:59.298445"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.300056"], ["updated_at", "2018-06-13 22:10:59.300056"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.4ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.335797"], ["updated_at", "2018-06-13 22:10:59.335797"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.339776"], ["updated_at", "2018-06-13 22:10:59.339776"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.346290"], ["updated_at", "2018-06-13 22:10:59.346290"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.348277"], ["updated_at", "2018-06-13 22:10:59.348277"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.358346"], ["updated_at", "2018-06-13 22:10:59.358346"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:10:59.372584"], ["updated_at", "2018-06-13 22:10:59.372584"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.390224"], ["updated_at", "2018-06-13 22:10:59.390224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.391617"], ["updated_at", "2018-06-13 22:10:59.391617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (1.8ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:10:59.408399"], ["updated_at", "2018-06-13 22:10:59.408399"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:10:59.410648"], ["updated_at", "2018-06-13 22:10:59.410648"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:10:59.416935"], ["updated_at", "2018-06-13 22:10:59.416935"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:10:59.419041"], ["updated_at", "2018-06-13 22:10:59.419041"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.2ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.425492"], ["updated_at", "2018-06-13 22:10:59.425492"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.427385"], ["updated_at", "2018-06-13 22:10:59.427385"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.433601"], ["updated_at", "2018-06-13 22:10:59.433601"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.435492"], ["updated_at", "2018-06-13 22:10:59.435492"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.440167"], ["updated_at", "2018-06-13 22:10:59.440167"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:10:59.449907"], ["updated_at", "2018-06-13 22:10:59.449907"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:10:59.452041"], ["updated_at", "2018-06-13 22:10:59.452041"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:10:59.456716"], ["updated_at", "2018-06-13 22:10:59.456716"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:10:59.458994"], ["updated_at", "2018-06-13 22:10:59.458994"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.7ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.475108"], ["updated_at", "2018-06-13 22:10:59.475108"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.476791"], ["updated_at", "2018-06-13 22:10:59.476791"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.493182"], ["updated_at", "2018-06-13 22:10:59.493182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.6ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.499312"], ["updated_at", "2018-06-13 22:10:59.499312"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.504524"], ["updated_at", "2018-06-13 22:10:59.504524"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.512397"], ["updated_at", "2018-06-13 22:10:59.512397"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:10:59.514273"], ["updated_at", "2018-06-13 22:10:59.514273"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.198497"], ["updated_at", "2018-06-13 22:11:24.198497"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:11:24.308473"], ["updated_at", "2018-06-13 22:11:24.308473"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.314372"], ["updated_at", "2018-06-13 22:11:24.314372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.323675"], ["updated_at", "2018-06-13 22:11:24.323675"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.328512"], ["updated_at", "2018-06-13 22:11:24.328512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:11:24.361208"], ["updated_at", "2018-06-13 22:11:24.361208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:11:24.363154"], ["updated_at", "2018-06-13 22:11:24.363154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs" ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.639066"], ["updated_at", "2018-06-13 22:11:24.639066"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.647908"], ["updated_at", "2018-06-13 22:11:24.647908"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.651076"], ["updated_at", "2018-06-13 22:11:24.651076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.652349"], ["updated_at", "2018-06-13 22:11:24.652349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.659730"], ["updated_at", "2018-06-13 22:11:24.659730"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.661080"], ["updated_at", "2018-06-13 22:11:24.661080"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.664730"], ["updated_at", "2018-06-13 22:11:24.664730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:11:24.665826"], ["updated_at", "2018-06-13 22:11:24.665826"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.669040"], ["updated_at", "2018-06-13 22:11:24.669040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.670053"], ["updated_at", "2018-06-13 22:11:24.670053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:11:24.704643"], ["updated_at", "2018-06-13 22:11:24.704643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:11:24.705753"], ["updated_at", "2018-06-13 22:11:24.705753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.707283"], ["updated_at", "2018-06-13 22:11:24.707283"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.710500"], ["updated_at", "2018-06-13 22:11:24.710500"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.711901"], ["updated_at", "2018-06-13 22:11:24.711901"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:11:24.719969"], ["updated_at", "2018-06-13 22:11:24.719969"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.726744"], ["updated_at", "2018-06-13 22:11:24.726744"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.736204"], ["updated_at", "2018-06-13 22:11:24.736204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.746238"], ["updated_at", "2018-06-13 22:11:24.746238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.747780"], ["updated_at", "2018-06-13 22:11:24.747780"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.751086"], ["updated_at", "2018-06-13 22:11:24.751086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.752536"], ["updated_at", "2018-06-13 22:11:24.752536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.756276"], ["updated_at", "2018-06-13 22:11:24.756276"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.763170"], ["updated_at", "2018-06-13 22:11:24.763170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.774166"], ["updated_at", "2018-06-13 22:11:24.774166"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.775950"], ["updated_at", "2018-06-13 22:11:24.775950"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.777403"], ["updated_at", "2018-06-13 22:11:24.777403"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.781504"], ["updated_at", "2018-06-13 22:11:24.781504"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.782697"], ["updated_at", "2018-06-13 22:11:24.782697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.784058"], ["updated_at", "2018-06-13 22:11:24.784058"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:11:24.788172"], ["updated_at", "2018-06-13 22:11:24.788172"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:11:24.791670"], ["updated_at", "2018-06-13 22:11:24.791670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:11:24.810141"], ["updated_at", "2018-06-13 22:11:24.810141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.6ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.826027"], ["updated_at", "2018-06-13 22:11:24.826027"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.827736"], ["updated_at", "2018-06-13 22:11:24.827736"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.831253"], ["updated_at", "2018-06-13 22:11:24.831253"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.839735"], ["updated_at", "2018-06-13 22:11:24.839735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.847654"], ["updated_at", "2018-06-13 22:11:24.847654"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.848900"], ["updated_at", "2018-06-13 22:11:24.848900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.857079"], ["updated_at", "2018-06-13 22:11:24.857079"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.864299"], ["updated_at", "2018-06-13 22:11:24.864299"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.885815"], ["updated_at", "2018-06-13 22:11:24.885815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.889886"], ["updated_at", "2018-06-13 22:11:24.889886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.894597"], ["updated_at", "2018-06-13 22:11:24.894597"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.895644"], ["updated_at", "2018-06-13 22:11:24.895644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:11:24.908725"], ["updated_at", "2018-06-13 22:11:24.908725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:11:24.910300"], ["updated_at", "2018-06-13 22:11:24.910300"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:11:24.913434"], ["updated_at", "2018-06-13 22:11:24.913434"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:11:24.914684"], ["updated_at", "2018-06-13 22:11:24.914684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.925086"], ["updated_at", "2018-06-13 22:11:24.925086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.928831"], ["updated_at", "2018-06-13 22:11:24.928831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.932389"], ["updated_at", "2018-06-13 22:11:24.932389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:11:24.937941"], ["updated_at", "2018-06-13 22:11:24.937941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.941738"], ["updated_at", "2018-06-13 22:11:24.941738"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.953735"], ["updated_at", "2018-06-13 22:11:24.953735"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.954925"], ["updated_at", "2018-06-13 22:11:24.954925"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.958400"], ["updated_at", "2018-06-13 22:11:24.958400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.963984"], ["updated_at", "2018-06-13 22:11:24.963984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.965241"], ["updated_at", "2018-06-13 22:11:24.965241"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.969002"], ["updated_at", "2018-06-13 22:11:24.969002"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.981424"], ["updated_at", "2018-06-13 22:11:24.981424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.982576"], ["updated_at", "2018-06-13 22:11:24.982576"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.985327"], ["updated_at", "2018-06-13 22:11:24.985327"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:24.986719"], ["updated_at", "2018-06-13 22:11:24.986719"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:11:24.990458"], ["updated_at", "2018-06-13 22:11:24.990458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:11:24.991939"], ["updated_at", "2018-06-13 22:11:24.991939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:11:24.994497"], ["updated_at", "2018-06-13 22:11:24.994497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:11:24.995750"], ["updated_at", "2018-06-13 22:11:24.995750"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:25.000757"], ["updated_at", "2018-06-13 22:11:25.000757"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:25.004400"], ["updated_at", "2018-06-13 22:11:25.004400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:25.009020"], ["updated_at", "2018-06-13 22:11:25.009020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:25.010217"], ["updated_at", "2018-06-13 22:11:25.010217"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:11:25.025137"], ["updated_at", "2018-06-13 22:11:25.025137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 22:11:25.026797"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:11:25.028272"], ["updated_at", "2018-06-13 22:11:25.028272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:11:25.029429"], ["updated_at", "2018-06-13 22:11:25.029429"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:25.039469"], ["updated_at", "2018-06-13 22:11:25.039469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:25.043663"], ["updated_at", "2018-06-13 22:11:25.043663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:11:25.048932"], ["updated_at", "2018-06-13 22:11:25.048932"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:12:10.924480"], ["updated_at", "2018-06-13 22:12:10.924480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:10.930345"], ["updated_at", "2018-06-13 22:12:10.930345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:12:10.945313"], ["updated_at", "2018-06-13 22:12:10.945313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 22:12:10.948178"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:12:10.949984"], ["updated_at", "2018-06-13 22:12:10.949984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:12:10.951144"], ["updated_at", "2018-06-13 22:12:10.951144"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:10.956174"], ["updated_at", "2018-06-13 22:12:10.956174"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:10.957458"], ["updated_at", "2018-06-13 22:12:10.957458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:10.966203"], ["updated_at", "2018-06-13 22:12:10.966203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:10.967559"], ["updated_at", "2018-06-13 22:12:10.967559"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:10.971292"], ["updated_at", "2018-06-13 22:12:10.971292"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:10.979187"], ["updated_at", "2018-06-13 22:12:10.979187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:10.980308"], ["updated_at", "2018-06-13 22:12:10.980308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:10.982837"], ["updated_at", "2018-06-13 22:12:10.982837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.002652"], ["updated_at", "2018-06-13 22:12:11.002652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.005921"], ["updated_at", "2018-06-13 22:12:11.005921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.011092"], ["updated_at", "2018-06-13 22:12:11.011092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.012570"], ["updated_at", "2018-06-13 22:12:11.012570"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.016353"], ["updated_at", "2018-06-13 22:12:11.016353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.017539"], ["updated_at", "2018-06-13 22:12:11.017539"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.022328"], ["updated_at", "2018-06-13 22:12:11.022328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.023725"], ["updated_at", "2018-06-13 22:12:11.023725"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.026833"], ["updated_at", "2018-06-13 22:12:11.026833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.030575"], ["updated_at", "2018-06-13 22:12:11.030575"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.033474"], ["updated_at", "2018-06-13 22:12:11.033474"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.2ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.038709"], ["updated_at", "2018-06-13 22:12:11.038709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.047925"], ["updated_at", "2018-06-13 22:12:11.047925"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.049359"], ["updated_at", "2018-06-13 22:12:11.049359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.059123"], ["updated_at", "2018-06-13 22:12:11.059123"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.060520"], ["updated_at", "2018-06-13 22:12:11.060520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.072805"], ["updated_at", "2018-06-13 22:12:11.072805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.081464"], ["updated_at", "2018-06-13 22:12:11.081464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.082745"], ["updated_at", "2018-06-13 22:12:11.082745"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.097009"], ["updated_at", "2018-06-13 22:12:11.097009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.104076"], ["updated_at", "2018-06-13 22:12:11.104076"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.111199"], ["updated_at", "2018-06-13 22:12:11.111199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.118343"], ["updated_at", "2018-06-13 22:12:11.118343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.119534"], ["updated_at", "2018-06-13 22:12:11.119534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:12:11.138942"], ["updated_at", "2018-06-13 22:12:11.138942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.145528"], ["updated_at", "2018-06-13 22:12:11.145528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:12:11.147166"], ["updated_at", "2018-06-13 22:12:11.147166"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.150384"], ["updated_at", "2018-06-13 22:12:11.150384"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.156035"], ["updated_at", "2018-06-13 22:12:11.156035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.159020"], ["updated_at", "2018-06-13 22:12:11.159020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.164559"], ["updated_at", "2018-06-13 22:12:11.164559"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.165660"], ["updated_at", "2018-06-13 22:12:11.165660"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.168806"], ["updated_at", "2018-06-13 22:12:11.168806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.174599"], ["updated_at", "2018-06-13 22:12:11.174599"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.183886"], ["updated_at", "2018-06-13 22:12:11.183886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:12:11.192202"], ["updated_at", "2018-06-13 22:12:11.192202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:12:11.193638"], ["updated_at", "2018-06-13 22:12:11.193638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.194936"], ["updated_at", "2018-06-13 22:12:11.194936"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:12:11.197892"], ["updated_at", "2018-06-13 22:12:11.197892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:12:11.202329"], ["updated_at", "2018-06-13 22:12:11.202329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.216195"], ["updated_at", "2018-06-13 22:12:11.216195"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.222398"], ["updated_at", "2018-06-13 22:12:11.222398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.223498"], ["updated_at", "2018-06-13 22:12:11.223498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.224372"], ["updated_at", "2018-06-13 22:12:11.224372"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:12:11.228919"], ["updated_at", "2018-06-13 22:12:11.228919"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:12:11.230334"], ["updated_at", "2018-06-13 22:12:11.230334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:12:11.233009"], ["updated_at", "2018-06-13 22:12:11.233009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:12:11.234158"], ["updated_at", "2018-06-13 22:12:11.234158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:12:11.243081"], ["updated_at", "2018-06-13 22:12:11.243081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:12:11.244841"], ["updated_at", "2018-06-13 22:12:11.244841"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:12:11.247920"], ["updated_at", "2018-06-13 22:12:11.247920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:12:11.249103"], ["updated_at", "2018-06-13 22:12:11.249103"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.260168"], ["updated_at", "2018-06-13 22:12:11.260168"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.261378"], ["updated_at", "2018-06-13 22:12:11.261378"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:12:11.276768"], ["updated_at", "2018-06-13 22:12:11.276768"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.295208"], ["updated_at", "2018-06-13 22:12:11.295208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.296664"], ["updated_at", "2018-06-13 22:12:11.296664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.297927"], ["updated_at", "2018-06-13 22:12:11.297927"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.301651"], ["updated_at", "2018-06-13 22:12:11.301651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.304938"], ["updated_at", "2018-06-13 22:12:11.304938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.309866"], ["updated_at", "2018-06-13 22:12:11.309866"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.312771"], ["updated_at", "2018-06-13 22:12:11.312771"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.314122"], ["updated_at", "2018-06-13 22:12:11.314122"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.320457"], ["updated_at", "2018-06-13 22:12:11.320457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.321512"], ["updated_at", "2018-06-13 22:12:11.321512"]]  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_models" ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.350258"], ["updated_at", "2018-06-13 22:12:11.350258"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.358908"], ["updated_at", "2018-06-13 22:12:11.358908"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.370672"], ["updated_at", "2018-06-13 22:12:11.370672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:12:11.374698"], ["updated_at", "2018-06-13 22:12:11.374698"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:12:11.402586"], ["updated_at", "2018-06-13 22:12:11.402586"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:12:11.404065"], ["updated_at", "2018-06-13 22:12:11.404065"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:12:11.457408"], ["updated_at", "2018-06-13 22:12:11.457408"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.3ms | ActiveRecord: 0.3ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (1.9ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.637158"], ["updated_at", "2018-06-13 22:14:36.637158"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:14:36.723817"], ["updated_at", "2018-06-13 22:14:36.723817"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.730311"], ["updated_at", "2018-06-13 22:14:36.730311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.736686"], ["updated_at", "2018-06-13 22:14:36.736686"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.741260"], ["updated_at", "2018-06-13 22:14:36.741260"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:14:36.750875"], ["updated_at", "2018-06-13 22:14:36.750875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:14:36.752215"], ["updated_at", "2018-06-13 22:14:36.752215"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.854696"], ["updated_at", "2018-06-13 22:14:36.854696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.866905"], ["updated_at", "2018-06-13 22:14:36.866905"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.878147"], ["updated_at", "2018-06-13 22:14:36.878147"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.879858"], ["updated_at", "2018-06-13 22:14:36.879858"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.881331"], ["updated_at", "2018-06-13 22:14:36.881331"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.896446"], ["updated_at", "2018-06-13 22:14:36.896446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.898036"], ["updated_at", "2018-06-13 22:14:36.898036"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:14:36.904788"], ["updated_at", "2018-06-13 22:14:36.904788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.918212"], ["updated_at", "2018-06-13 22:14:36.918212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.919318"], ["updated_at", "2018-06-13 22:14:36.919318"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.921957"], ["updated_at", "2018-06-13 22:14:36.921957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.923028"], ["updated_at", "2018-06-13 22:14:36.923028"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:14:36.931914"], ["updated_at", "2018-06-13 22:14:36.931914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.936962"], ["updated_at", "2018-06-13 22:14:36.936962"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.938093"], ["updated_at", "2018-06-13 22:14:36.938093"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.953186"], ["updated_at", "2018-06-13 22:14:36.953186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.960463"], ["updated_at", "2018-06-13 22:14:36.960463"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.961731"], ["updated_at", "2018-06-13 22:14:36.961731"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.964989"], ["updated_at", "2018-06-13 22:14:36.964989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:14:36.966053"], ["updated_at", "2018-06-13 22:14:36.966053"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.969464"], ["updated_at", "2018-06-13 22:14:36.969464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.970526"], ["updated_at", "2018-06-13 22:14:36.970526"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.973089"], ["updated_at", "2018-06-13 22:14:36.973089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.974407"], ["updated_at", "2018-06-13 22:14:36.974407"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.982489"], ["updated_at", "2018-06-13 22:14:36.982489"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.983565"], ["updated_at", "2018-06-13 22:14:36.983565"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.984573"], ["updated_at", "2018-06-13 22:14:36.984573"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.987644"], ["updated_at", "2018-06-13 22:14:36.987644"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:36.988869"], ["updated_at", "2018-06-13 22:14:36.988869"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.003424"], ["updated_at", "2018-06-13 22:14:37.003424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:14:37.011311"], ["updated_at", "2018-06-13 22:14:37.011311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:14:37.012636"], ["updated_at", "2018-06-13 22:14:37.012636"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.013950"], ["updated_at", "2018-06-13 22:14:37.013950"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.016302"], ["updated_at", "2018-06-13 22:14:37.016302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:14:37.021086"], ["updated_at", "2018-06-13 22:14:37.021086"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:14:37.022608"], ["updated_at", "2018-06-13 22:14:37.022608"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:14:37.025203"], ["updated_at", "2018-06-13 22:14:37.025203"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:14:37.026715"], ["updated_at", "2018-06-13 22:14:37.026715"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.037340"], ["updated_at", "2018-06-13 22:14:37.037340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.048706"], ["updated_at", "2018-06-13 22:14:37.048706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.054969"], ["updated_at", "2018-06-13 22:14:37.054969"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.1ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.076709"], ["updated_at", "2018-06-13 22:14:37.076709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.080411"], ["updated_at", "2018-06-13 22:14:37.080411"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:14:37.085322"], ["updated_at", "2018-06-13 22:14:37.085322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.088235"], ["updated_at", "2018-06-13 22:14:37.088235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.093420"], ["updated_at", "2018-06-13 22:14:37.093420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.094428"], ["updated_at", "2018-06-13 22:14:37.094428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.108335"], ["updated_at", "2018-06-13 22:14:37.108335"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.110011"], ["updated_at", "2018-06-13 22:14:37.110011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.113585"], ["updated_at", "2018-06-13 22:14:37.113585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.118074"], ["updated_at", "2018-06-13 22:14:37.118074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.120419"], ["updated_at", "2018-06-13 22:14:37.120419"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.123093"], ["updated_at", "2018-06-13 22:14:37.123093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.127393"], ["updated_at", "2018-06-13 22:14:37.127393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.130840"], ["updated_at", "2018-06-13 22:14:37.130840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.135931"], ["updated_at", "2018-06-13 22:14:37.135931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.142988"], ["updated_at", "2018-06-13 22:14:37.142988"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.151678"], ["updated_at", "2018-06-13 22:14:37.151678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.152999"], ["updated_at", "2018-06-13 22:14:37.152999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.162638"], ["updated_at", "2018-06-13 22:14:37.162638"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.164213"], ["updated_at", "2018-06-13 22:14:37.164213"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.167945"], ["updated_at", "2018-06-13 22:14:37.167945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.174011"], ["updated_at", "2018-06-13 22:14:37.174011"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.175181"], ["updated_at", "2018-06-13 22:14:37.175181"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.178974"], ["updated_at", "2018-06-13 22:14:37.178974"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.183353"], ["updated_at", "2018-06-13 22:14:37.183353"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.184475"], ["updated_at", "2018-06-13 22:14:37.184475"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:14:37.187307"], ["updated_at", "2018-06-13 22:14:37.187307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:14:37.188609"], ["updated_at", "2018-06-13 22:14:37.188609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:14:37.191319"], ["updated_at", "2018-06-13 22:14:37.191319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:14:37.193117"], ["updated_at", "2018-06-13 22:14:37.193117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:14:37.201555"], ["updated_at", "2018-06-13 22:14:37.201555"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:14:37.205053"], ["updated_at", "2018-06-13 22:14:37.205053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:14:37.219622"], ["updated_at", "2018-06-13 22:14:37.219622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-06-13 22:14:37.221727"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:14:37.222974"], ["updated_at", "2018-06-13 22:14:37.222974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:14:37.224192"], ["updated_at", "2018-06-13 22:14:37.224192"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.229366"], ["updated_at", "2018-06-13 22:14:37.229366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:37.232625"], ["updated_at", "2018-06-13 22:14:37.232625"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.4ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.076890"], ["updated_at", "2018-06-13 22:14:53.076890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.126562"], ["updated_at", "2018-06-13 22:14:53.126562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.127646"], ["updated_at", "2018-06-13 22:14:53.127646"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.130806"], ["updated_at", "2018-06-13 22:14:53.130806"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:14:53.132907"], ["updated_at", "2018-06-13 22:14:53.132907"]]  (0.2ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.137171"], ["updated_at", "2018-06-13 22:14:53.137171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.138398"], ["updated_at", "2018-06-13 22:14:53.138398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:14:53.151940"], ["updated_at", "2018-06-13 22:14:53.151940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:14:53.154088"], ["updated_at", "2018-06-13 22:14:53.154088"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.155804"], ["updated_at", "2018-06-13 22:14:53.155804"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.158273"], ["updated_at", "2018-06-13 22:14:53.158273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.161086"], ["updated_at", "2018-06-13 22:14:53.161086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.167255"], ["updated_at", "2018-06-13 22:14:53.167255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.170140"], ["updated_at", "2018-06-13 22:14:53.170140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.207784"], ["updated_at", "2018-06-13 22:14:53.207784"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.212492"], ["updated_at", "2018-06-13 22:14:53.212492"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.214053"], ["updated_at", "2018-06-13 22:14:53.214053"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.221490"], ["updated_at", "2018-06-13 22:14:53.221490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:14:53.230346"], ["updated_at", "2018-06-13 22:14:53.230346"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 22:14:53.233760"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:14:53.235697"], ["updated_at", "2018-06-13 22:14:53.235697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:14:53.236620"], ["updated_at", "2018-06-13 22:14:53.236620"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.241909"], ["updated_at", "2018-06-13 22:14:53.241909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.252009"], ["updated_at", "2018-06-13 22:14:53.252009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.260246"], ["updated_at", "2018-06-13 22:14:53.260246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.261234"], ["updated_at", "2018-06-13 22:14:53.261234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.274274"], ["updated_at", "2018-06-13 22:14:53.274274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.276537"], ["updated_at", "2018-06-13 22:14:53.276537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.278628"], ["updated_at", "2018-06-13 22:14:53.278628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.284224"], ["updated_at", "2018-06-13 22:14:53.284224"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.285282"], ["updated_at", "2018-06-13 22:14:53.285282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.287915"], ["updated_at", "2018-06-13 22:14:53.287915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.291847"], ["updated_at", "2018-06-13 22:14:53.291847"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:14:53.299905"], ["updated_at", "2018-06-13 22:14:53.299905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:14:53.301503"], ["updated_at", "2018-06-13 22:14:53.301503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:14:53.303782"], ["updated_at", "2018-06-13 22:14:53.303782"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:14:53.305063"], ["updated_at", "2018-06-13 22:14:53.305063"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.308460"], ["updated_at", "2018-06-13 22:14:53.308460"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.309244"], ["updated_at", "2018-06-13 22:14:53.309244"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.311642"], ["updated_at", "2018-06-13 22:14:53.311642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.312517"], ["updated_at", "2018-06-13 22:14:53.312517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.325227"], ["updated_at", "2018-06-13 22:14:53.325227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.326101"], ["updated_at", "2018-06-13 22:14:53.326101"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.328634"], ["updated_at", "2018-06-13 22:14:53.328634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.333271"], ["updated_at", "2018-06-13 22:14:53.333271"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.334173"], ["updated_at", "2018-06-13 22:14:53.334173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.341560"], ["updated_at", "2018-06-13 22:14:53.341560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.342518"], ["updated_at", "2018-06-13 22:14:53.342518"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:14:53.344618"], ["updated_at", "2018-06-13 22:14:53.344618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:14:53.347857"], ["updated_at", "2018-06-13 22:14:53.347857"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.358690"], ["updated_at", "2018-06-13 22:14:53.358690"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.359518"], ["updated_at", "2018-06-13 22:14:53.359518"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:14:53.361414"], ["updated_at", "2018-06-13 22:14:53.361414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:14:53.362307"], ["updated_at", "2018-06-13 22:14:53.362307"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:14:53.364669"], ["updated_at", "2018-06-13 22:14:53.364669"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:14:53.365880"], ["updated_at", "2018-06-13 22:14:53.365880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:14:53.377722"], ["updated_at", "2018-06-13 22:14:53.377722"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.382227"], ["updated_at", "2018-06-13 22:14:53.382227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.383363"], ["updated_at", "2018-06-13 22:14:53.383363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:14:53.409970"], ["updated_at", "2018-06-13 22:14:53.409970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.422525"], ["updated_at", "2018-06-13 22:14:53.422525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.423491"], ["updated_at", "2018-06-13 22:14:53.423491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.424284"], ["updated_at", "2018-06-13 22:14:53.424284"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.426884"], ["updated_at", "2018-06-13 22:14:53.426884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.432506"], ["updated_at", "2018-06-13 22:14:53.432506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.442831"], ["updated_at", "2018-06-13 22:14:53.442831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.448085"], ["updated_at", "2018-06-13 22:14:53.448085"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:14:53.450453"], ["updated_at", "2018-06-13 22:14:53.450453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.453110"], ["updated_at", "2018-06-13 22:14:53.453110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.457801"], ["updated_at", "2018-06-13 22:14:53.457801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.458641"], ["updated_at", "2018-06-13 22:14:53.458641"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.460955"], ["updated_at", "2018-06-13 22:14:53.460955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.461836"], ["updated_at", "2018-06-13 22:14:53.461836"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.464768"], ["updated_at", "2018-06-13 22:14:53.464768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.471275"], ["updated_at", "2018-06-13 22:14:53.471275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.472252"], ["updated_at", "2018-06-13 22:14:53.472252"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.473014"], ["updated_at", "2018-06-13 22:14:53.473014"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.475399"], ["updated_at", "2018-06-13 22:14:53.475399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.477872"], ["updated_at", "2018-06-13 22:14:53.477872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.4ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.5ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 4], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.619811"], ["updated_at", "2018-06-13 22:14:53.619811"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:14:53.643892"], ["updated_at", "2018-06-13 22:14:53.643892"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:14:53.659025"], ["updated_at", "2018-06-13 22:14:53.659025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:14:53.660070"], ["updated_at", "2018-06-13 22:14:53.660070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.675041"], ["updated_at", "2018-06-13 22:14:53.675041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.681076"], ["updated_at", "2018-06-13 22:14:53.681076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:14:53.685058"], ["updated_at", "2018-06-13 22:14:53.685058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-13 22:18:21.817902"], ["updated_at", "2018-06-13 22:18:21.817902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-13 22:18:21.833286"], ["updated_at", "2018-06-13 22:18:21.833286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.853372"], ["updated_at", "2018-06-13 22:18:21.853372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.854829"], ["updated_at", "2018-06-13 22:18:21.854829"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.857392"], ["updated_at", "2018-06-13 22:18:21.857392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.862802"], ["updated_at", "2018-06-13 22:18:21.862802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.869577"], ["updated_at", "2018-06-13 22:18:21.869577"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.871456"], ["updated_at", "2018-06-13 22:18:21.871456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.872666"], ["updated_at", "2018-06-13 22:18:21.872666"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.875649"], ["updated_at", "2018-06-13 22:18:21.875649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-13 22:18:21.876588"], ["updated_at", "2018-06-13 22:18:21.876588"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:18:21.879297"], ["updated_at", "2018-06-13 22:18:21.879297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:18:21.880145"], ["updated_at", "2018-06-13 22:18:21.880145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:18:21.881775"], ["updated_at", "2018-06-13 22:18:21.881775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:18:21.882545"], ["updated_at", "2018-06-13 22:18:21.882545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.896833"], ["updated_at", "2018-06-13 22:18:21.896833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.898117"], ["updated_at", "2018-06-13 22:18:21.898117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.905671"], ["updated_at", "2018-06-13 22:18:21.905671"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.906870"], ["updated_at", "2018-06-13 22:18:21.906870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.909479"], ["updated_at", "2018-06-13 22:18:21.909479"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-06-13 22:18:21.916584"], ["updated_at", "2018-06-13 22:18:21.916584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-06-13 22:18:21.919792"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:18:21.922427"], ["updated_at", "2018-06-13 22:18:21.922427"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-06-13 22:18:21.923636"], ["updated_at", "2018-06-13 22:18:21.923636"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-13 22:18:21.930495"], ["updated_at", "2018-06-13 22:18:21.930495"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.971941"], ["updated_at", "2018-06-13 22:18:21.971941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.979530"], ["updated_at", "2018-06-13 22:18:21.979530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.980550"], ["updated_at", "2018-06-13 22:18:21.980550"]]  (0.2ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-13 22:18:21.990132"], ["updated_at", "2018-06-13 22:18:21.990132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.996066"], ["updated_at", "2018-06-13 22:18:21.996066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:21.997149"], ["updated_at", "2018-06-13 22:18:21.997149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.011707"], ["updated_at", "2018-06-13 22:18:22.011707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.012965"], ["updated_at", "2018-06-13 22:18:22.012965"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.2ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:18:22.015477"], ["updated_at", "2018-06-13 22:18:22.015477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-13 22:18:22.016522"], ["updated_at", "2018-06-13 22:18:22.016522"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.017908"], ["updated_at", "2018-06-13 22:18:22.017908"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.021191"], ["updated_at", "2018-06-13 22:18:22.021191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.030188"], ["updated_at", "2018-06-13 22:18:22.030188"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.033090"], ["updated_at", "2018-06-13 22:18:22.033090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.040236"], ["updated_at", "2018-06-13 22:18:22.040236"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.045463"], ["updated_at", "2018-06-13 22:18:22.045463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.048159"], ["updated_at", "2018-06-13 22:18:22.048159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.053208"], ["updated_at", "2018-06-13 22:18:22.053208"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.061004"], ["updated_at", "2018-06-13 22:18:22.061004"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.069276"], ["updated_at", "2018-06-13 22:18:22.069276"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.070922"], ["updated_at", "2018-06-13 22:18:22.070922"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.078501"], ["updated_at", "2018-06-13 22:18:22.078501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.079402"], ["updated_at", "2018-06-13 22:18:22.079402"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.081997"], ["updated_at", "2018-06-13 22:18:22.081997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.089003"], ["updated_at", "2018-06-13 22:18:22.089003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.092035"], ["updated_at", "2018-06-13 22:18:22.092035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.096311"], ["updated_at", "2018-06-13 22:18:22.096311"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.098624"], ["updated_at", "2018-06-13 22:18:22.098624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.099471"], ["updated_at", "2018-06-13 22:18:22.099471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.106444"], ["updated_at", "2018-06-13 22:18:22.106444"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.107318"], ["updated_at", "2018-06-13 22:18:22.107318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.109316"], ["updated_at", "2018-06-13 22:18:22.109316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.112956"], ["updated_at", "2018-06-13 22:18:22.112956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.113763"], ["updated_at", "2018-06-13 22:18:22.113763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.125103"], ["updated_at", "2018-06-13 22:18:22.125103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.127411"], ["updated_at", "2018-06-13 22:18:22.127411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.131077"], ["updated_at", "2018-06-13 22:18:22.131077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.131906"], ["updated_at", "2018-06-13 22:18:22.131906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.132649"], ["updated_at", "2018-06-13 22:18:22.132649"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.136009"], ["updated_at", "2018-06-13 22:18:22.136009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.141325"], ["updated_at", "2018-06-13 22:18:22.141325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.142246"], ["updated_at", "2018-06-13 22:18:22.142246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.150850"], ["updated_at", "2018-06-13 22:18:22.150850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.168109"], ["updated_at", "2018-06-13 22:18:22.168109"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.172051"], ["updated_at", "2018-06-13 22:18:22.172051"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.174601"], ["updated_at", "2018-06-13 22:18:22.174601"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.178390"], ["updated_at", "2018-06-13 22:18:22.178390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.179559"], ["updated_at", "2018-06-13 22:18:22.179559"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-13 22:18:22.182225"], ["updated_at", "2018-06-13 22:18:22.182225"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-06-13 22:18:22.183057"], ["updated_at", "2018-06-13 22:18:22.183057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-06-13 22:18:22.185114"], ["updated_at", "2018-06-13 22:18:22.185114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-13 22:18:22.186759"], ["updated_at", "2018-06-13 22:18:22.186759"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-13 22:18:22.192187"], ["updated_at", "2018-06-13 22:18:22.192187"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.195403"], ["updated_at", "2018-06-13 22:18:22.195403"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-13 22:18:22.247421"], ["updated_at", "2018-06-13 22:18:22.247421"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.252027"], ["updated_at", "2018-06-13 22:18:22.252027"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.269980"], ["updated_at", "2018-06-13 22:18:22.269980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.281617"], ["updated_at", "2018-06-13 22:18:22.281617"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-13 22:18:22.285429"], ["updated_at", "2018-06-13 22:18:22.285429"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-13 22:18:22.309381"], ["updated_at", "2018-06-13 22:18:22.309381"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-06-13 22:18:22.310363"], ["updated_at", "2018-06-13 22:18:22.310363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)